:root {
  --bg: #faf4ea;
  --bg-alt: #fff8ee;
  --primary: #f08c3c;
  --primary-dark: #d77427;
  --accent: #5b7c4d;
  --text: #3c342e;
  --muted: #7a6f66;
  --card-bg: #ffffff;
  --border-soft: #e7d9c7;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 14px 35px rgba(40, 26, 7, 0.12);
  --shadow-subtle: 0 6px 18px rgba(40, 26, 7, 0.08);
}

*, 
*::before, 
*::after {
  box-sizing: border-box;
}

html, 
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fff3de 0, #faf4ea 50%, #f8efe4 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 244, 234, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 194, 167, 0.6);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #ffe7bd 0, #f08c3c 40%, #d77427 100%);
  box-shadow: 0 8px 18px rgba(208, 124, 40, 0.45);
  font-size: 22px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
}

.nav a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.nav a:hover {
  background: rgba(240, 140, 60, 0.12);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(234, 211, 185, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  margin: 2px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.3rem 1.2rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  line-height: 1.03;
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.hero-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(240, 140, 60, 0.08);
  border: 1px solid rgba(240, 140, 60, 0.25);
  color: var(--primary-dark);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.hero-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-media {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.6rem;
  align-items: stretch;
}

.hero-main-image,
.hero-secondary img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-secondary img {
  height: 56%;
  object-fit: cover;
}

.hero-stats {
  flex: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7eb, #fbe0c0);
  padding: 0.7rem 0.7rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  font-size: 0.74rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.05rem;
}

/* Sections */

.section {
  padding: 1.8rem 1.2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  max-width: 680px;
  margin-bottom: 1.4rem;
}

.section-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Content layouts */

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.text-block p {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text);
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* Cards */

.card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  padding: 1rem 0.9rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(214, 191, 162, 0.7);
}

/* Misión & Visión */

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.mv-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.mv-card p {
  margin: 0 0 0.6rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text);
}

/* Servicios */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
}

.service-image img {
  border-radius: var(--radius-md);
  height: 160px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 0.7rem;
}

.service-content h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.service-content p {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--text);
}

.service-content ul {
  padding-left: 1rem;
  margin: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.service-content li::before {
  content: "•";
  margin-right: 0.3rem;
  color: var(--primary);
}

/* Galería */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.gallery-item img {
  height: 110px;
  width: 100%;
  object-fit: cover;
}

/* Testimonios */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  font-size: 0.8rem;
}

.testimonial-text {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.testimonial-author {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* Contacto */

.contact-section {
  background: radial-gradient(circle at top, #fff0d9 0, #fff8ee 40%, #faf4ea 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  align-items: flex-start;
}

.contact-info h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.contact-info p {
  font-size: 0.84rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.82rem;
}

.contact-details h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.contact-form-wrapper h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.field label {
  font-size: 0.78rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(209, 188, 160, 0.9);
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: #fffdf9;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(240, 140, 60, 0.3);
}

.field textarea {
  resize: vertical;
}

.full-width {
  width: 100%;
}

.form-feedback {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: var(--accent);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f89f4f, #f08c3c);
  color: #fff;
  box-shadow: 0 10px 22px rgba(212, 121, 38, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(212, 121, 38, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  color: var(--primary-dark);
  border: 1px solid rgba(240, 140, 60, 0.35);
}

.btn-ghost:hover {
  background: rgba(240, 140, 60, 0.08);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(217, 194, 167, 0.7);
  background: rgba(250, 244, 234, 0.98);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-small {
  margin-top: 0.15rem;
}

/* Responsive */

@media (max-width: 840px) {
  .header-inner {
    padding-inline: 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0.75rem;
    top: 55px;
    background: rgba(255, 248, 238, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(214, 191, 162, 0.7);
    box-shadow: 0 20px 30px rgba(40, 26, 7, 0.16);
    padding: 0.6rem;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.82rem;
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav a {
    padding: 0.45rem 0.55rem;
  }

  .nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .hero {
    padding-inline: 0.85rem;
    padding-top: 1rem;
    grid-template-columns: minmax(0, 1.05fr);
  }

  .hero-media {
    order: -1;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-main-image {
    height: 210px;
  }

  .hero-main-image img {
    height: 100%;
  }

  .section {
    padding-inline: 0.85rem;
    padding-block: 1.4rem;
  }

  .two-column,
  .mv-grid,
  .services-grid,
  .gallery-grid,
  .testimonial-grid,
  .contact-inner,
  .contact-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-item img {
    height: 140px;
  }

  .service-image img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 0.9rem;
  }

  .section {
    padding-block: 1.2rem;
  }

  .card {
    padding: 0.85rem;
  }

  .contact-form-wrapper {
    margin-top: 0.3rem;
  }
}