:root {
  /* Paleta basada en la imagen e HSL elegidos */
  --accent: #2B4F57;          /* hsl(190.67deg 34.35% 25.69%) - Verde Petróleo / Bosque */
  --accent-dark: #1F3A41;     /* Tono oscuro para hovers */
  --accent-light: #3D6A74;    /* Tono secundario suave */
  
  --mint: #D7E3D0;            /* hsl(92deg 17.24% 82.94%) - Verde Menta / Pasto suave */
  --mint-light: #DFE8DC;      /* Fondo suavizado con mejor contraste */

  /* Fondo de pantalla ajustado a un tono calido-verde sin deslumbrar */
  --background: #EAEFE8;      
  --background-dark: #DDE5DA; 
  --surface: #F3F7F2;
  
  --text: #1E282A;            /* Texto principal legible */
  --text-light: #4A5B5E;      /* Texto secundario con mayor contraste */
  --border: #C5D2C2;

  --font-body: "DM Sans", sans-serif;
  --font-heading: "Playfair Display", serif;

  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 239, 232, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white !important;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
}

/* GENERAL */

.section {
  padding: 110px 0;
}

.section-light {
  background: var(--surface);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  max-width: 720px;
  font-size: clamp(48px, 7vw, 82px);
  color: var(--text);
}

h1 span, h2 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(38px, 5vw, 58px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 60px;
}

.section-heading p {
  max-width: 680px;
  margin-top: 24px;
  color: var(--text-light);
  font-size: 18px;
}

.section-heading-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-center p {
  margin-right: auto;
  margin-left: auto;
}

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.button-secondary:hover {
  background: var(--mint);
}

.button-full {
  width: 100%;
}

/* HERO */

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 70px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
  margin-top: 28px;
  color: var(--text-light);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
}

.hero-place .icon {
  color: var(--accent);
}

.hero-visual {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  padding: 0 0 70px 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: -34px;
  right: -34px;
  border-radius: 50%;
  background: var(--mint);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 28px;
  border: 6px solid var(--surface);
  box-shadow: 0 30px 80px rgba(43, 79, 87, 0.2);
  aspect-ratio: 3 / 4;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  left: -36px;
  bottom: 0;
  width: min(300px, 82%);
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--accent);
  box-shadow: 0 20px 50px rgba(43, 79, 87, 0.28);
  color: white;
}

.hero-card-small {
  display: block;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-badge p {
  margin: 10px 0 14px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
}

.hero-card-bottom {
  display: block;
  padding-top: 12px;
  border-top: 2px solid var(--mint);
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
}

/* VALUES */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--background);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.value-number {
  margin-bottom: 60px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: bold;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.value-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* LEVELS */

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.level-card {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.level-card-featured {
  border-color: var(--accent);
  background: var(--mint-light);
  box-shadow: 0 20px 50px rgba(43, 79, 87, 0.08);
}

.level-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: bold;
}

.level-card h3 {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 30px;
}

.level-card p {
  margin-bottom: 25px;
  color: var(--text-light);
  font-size: 15px;
}

.level-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 500;
}

.level-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* METHOD */

.method-section {
  background: var(--background-dark);
}

.method-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.method-intro p {
  max-width: 480px;
  margin-top: 26px;
  color: var(--text-light);
  font-size: 17px;
}

.method-list {
  display: flex;
  flex-direction: column;
}

.method-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(43, 79, 87, 0.15);
}

.method-item:first-child {
  padding-top: 0;
}

.method-number {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: bold;
}

.method-item h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.method-item p {
  max-width: 600px;
  color: var(--text-light);
  font-size: 15px;
}

/* GALERÍA DE IMÁGENES DE AULA */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  background: var(--background);
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* PREGUNTAS FRECUENTES */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.faq-intro p {
  max-width: 420px;
  margin-top: 24px;
  color: var(--text-light);
  font-size: 17px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  max-width: 620px;
  padding: 0 48px 26px 0;
  color: var(--text-light);
  font-size: 16px;
}

.faq-item p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CONTACTO */

.contact-section {
  background: var(--background);
}

.contact-box {
  padding: 70px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-header-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px auto;
}

.contact-header-content p {
  margin-top: 18px;
  color: var(--text-light);
  font-size: 17px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}

.contact-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--mint-light);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 18px;
  row-gap: 4px;
  align-items: center;
  min-width: 0;
}

.contact-card > .contact-card-icon {
  grid-row: 1 / span 2;
}

.contact-card > :not(.contact-card-icon) {
  grid-column: 2;
}

.contact-card address {
  font-style: normal;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
}

.contact-label {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 16px;
  line-height: 1.4;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.contact-card a {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.contact-card a:hover {
  opacity: 0.8;
}

.contact-card-social .instagram-button {
  justify-self: start;
}

.instagram-button {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white !important;
  font-weight: 600;
  font-size: 15px;
}

.instagram-button:hover {
  background: var(--accent-dark);
  opacity: 1 !important;
}

.map-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.map-frame {
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--mint-light);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* BOTÓN FLOTANTE LLAMAR (solo móvil) */

.fab-group {
  display: none;
}

/* ACCESIBILIDAD */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] {
  scroll-margin-top: 76px;
}

.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(43, 79, 87, 0.08);
}

.nav a.is-active:not(.nav-cta) {
  color: var(--accent);
  box-shadow: 0 2px 0 var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* FOOTER */

.footer {
  padding: 55px 0;
  background: var(--accent);
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 50px;
  align-items: end;
}

.logo-footer {
  color: white;
}

.footer-inner p {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .nav a.is-active:not(.nav-cta) {
    box-shadow: none;
  }

  .nav-cta {
    text-align: center;
  }

  .menu-button {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    margin: 0 auto 0 0;
    width: min(100%, 400px);
  }

  .values-grid,
  .levels-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .method-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-box {
    padding: 40px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 55px 0;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-visual {
    padding-bottom: 60px;
  }

  .hero-visual::before {
    right: -14px;
  }

  .hero-badge {
    left: -6px;
    padding: 20px;
  }

  .hero-badge p {
    font-size: 19px;
  }

  .value-card,
  .level-card {
    padding: 28px;
  }

  .value-number {
    margin-bottom: 40px;
  }

  .method-item {
    grid-template-columns: 45px 1fr;
    gap: 10px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 300px;
  }

  .map-actions .button {
    width: 100%;
  }

  .faq-item summary {
    font-size: 17px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .fab-group {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .fab-group.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .fab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(31, 58, 65, 0.3);
    font-size: 15px;
    font-weight: 600;
  }

  .fab-call {
    background: var(--accent);
    color: white;
  }

  .fab-call:active {
    background: var(--accent-dark);
  }

  .fab-whatsapp {
    background: var(--mint);
    border: 1px solid var(--accent);
    color: var(--accent);
  }

  .fab-whatsapp:active {
    background: var(--mint-light);
  }

  .footer {
    padding-bottom: 90px;
  }
}
