/* EDA Clínica Dental — estilos base (todas las páginas) */

:root {
  --eda-teal: #4ab7c3;
  --eda-teal-dark: #77c8bf;
  --eda-beige: #f0efe6;
  --eda-navy: #004365;
  --eda-white: #ffffff;
  --eda-black: #000000;
  --eda-text: #333333;
  --eda-header-top-h: 40px;
  --eda-header-main-h: 100px;
  --eda-header-h: calc(var(--eda-header-top-h) + var(--eda-header-main-h));
  --eda-container: 1300px;
  --eda-font-heading: "Bree Serif", Georgia, "Times New Roman", serif;
  --eda-font-body: "Merriweather", Georgia, "Times New Roman", serif;
  /* Cabecera de sección (h6 teal + h2) — repetible en toda la web */
  --eda-panel-overlap: 100px;
  --eda-section-head-gap-after-panel: 80px;
  --eda-section-head-gap-top: 50px;
  --eda-section-head-gap-between: 0.2rem;
  --eda-section-head-gap-bottom: 30px;
  --eda-section-kicker-color: #2195b7;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--eda-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--eda-text);
  background: var(--eda-white);
}

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

a {
  color: var(--eda-teal);
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--eda-font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.eda-container {
  width: 100%;
  max-width: var(--eda-container);
  margin: 0 auto;
  padding-left: clamp(1rem, 5%, 2.5rem);
  padding-right: clamp(1rem, 5%, 2.5rem);
}

.eda-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--eda-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.eda-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--eda-header-main-h);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.eda-site-header .eda-header {
  position: relative;
  top: auto;
  height: var(--eda-header-main-h);
  box-shadow: none;
}

.eda-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--eda-header-main-h);
  max-width: var(--eda-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3%, 2rem);
}

.eda-header__logo img {
  height: 90px;
  width: auto;
}

.eda-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.eda-nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--eda-navy);
}

.eda-nav {
  font-family: var(--eda-font-heading);
}

.eda-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eda-nav__item {
  position: relative;
}

.eda-nav__link {
  display: block;
  padding: 0 1rem;
  line-height: var(--eda-header-main-h);
  color: var(--eda-text);
  text-decoration: none;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.eda-nav__link:hover,
.eda-nav__link--active {
  color: var(--eda-teal);
}

.eda-nav__item--has-sub:hover > .eda-nav__sub,
.eda-nav__item--has-sub:focus-within > .eda-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.eda-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--eda-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.eda-nav__sub .eda-nav__link {
  line-height: 1.4;
  padding: 0.5rem 1.25rem;
}

.eda-main {
  padding-top: var(--eda-header-h);
  overflow: visible;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eda-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-family: var(--eda-font-body);
  font-size: 0.9375rem;
  line-height: 2.5;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.eda-btn--primary {
  background: var(--eda-teal);
  color: var(--eda-white);
}

.eda-btn--primary:hover {
  filter: brightness(1.12);
  text-decoration: none;
}

.eda-btn--secondary {
  background: var(--eda-white);
  color: var(--eda-teal);
}

.eda-btn--secondary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.eda-btn--outline {
  background: transparent;
  color: var(--eda-teal);
  border: 1px solid var(--eda-teal);
  border-radius: 0;
}

.eda-btn--outline:hover {
  background: var(--eda-teal);
  color: var(--eda-white);
  text-decoration: none;
}

/*
 * Cabecera de sección centrada (referencia: «Trabajamos…» + «Seguros dentales»).
 * Uso: <header class="eda-section-head"> con h6 + h2; añadir --below-panel si va tras el panel blanco de portada.
 */
.eda-section-head {
  text-align: center;
}

.eda-section-head--left {
  text-align: left;
}

.eda-section-head__kicker {
  margin: 0;
  color: var(--eda-section-kicker-color);
  font-family: var(--eda-font-heading);
  font-size: 17px;
  line-height: 28px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.25px;
  text-transform: none;
}

.eda-section-head__title {
  margin: var(--eda-section-head-gap-between) 0 0;
  font-family: var(--eda-font-heading);
  font-size: 40px;
  line-height: 40px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1px;
  text-transform: none;
  color: var(--eda-text);
}

.eda-section-head--below-panel {
  padding-top: calc(
    var(--eda-panel-overlap) + var(--eda-section-head-gap-after-panel) +
      var(--eda-section-head-gap-top)
  );
}

.eda-section-head__content,
.eda-section-head + .eda-section-head__content {
  margin-top: var(--eda-section-head-gap-bottom);
}

.eda-prose {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--eda-text);
}

.eda-prose p {
  margin: 0;
}

.eda-prose p + p {
  margin-top: 2rem;
}

.eda-prose a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.eda-prose strong {
  font-weight: 700;
}

/* Franja CTA centrada (reserva cita, etc.) — fondo beige, reutilizable */
.eda-cta-band {
  padding: 50px clamp(1.25rem, 4.5%, 3.5rem) 50px;
  background-color: var(--eda-beige, #f0efe6);
  text-align: center;
}

.eda-cta-band__inner {
  max-width: var(--eda-container, 1300px);
  margin: 0 auto;
}

.eda-cta-band__logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.eda-cta-band .eda-section-head__title,
.eda-cta-band__hablamos {
  margin-top: 0.75rem;
}

.eda-cta-band__phones {
  margin: 1.25rem 0 0;
  font-family: var(--eda-font-body);
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
}

.eda-cta-band__phones a {
  color: var(--eda-teal);
  text-decoration: none;
}

.eda-cta-band__phones a:hover {
  text-decoration: underline;
}

.eda-cta-band__phones-sep {
  margin: 0 0.65rem;
  color: var(--eda-teal);
  font-weight: 700;
}

.eda-cta-band__closing {
  margin: 1.25rem 0 0;
  font-family: var(--eda-font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--eda-text);
}

.eda-cta-band__closing a {
  color: inherit;
  text-decoration: none;
}

.eda-cta-band__closing a:hover {
  text-decoration: underline;
}

.eda-cta-band--white {
  padding: 75px clamp(1.25rem, 4.5%, 3.5rem) 75px;
  background-color: var(--eda-white);
}

.eda-cta-band__intro {
  margin: 0 auto 1.75rem;
  max-width: 42rem;
  font-family: var(--eda-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--eda-teal);
}

.eda-cta-band__intro a {
  color: inherit;
  text-decoration: none;
}

.eda-cta-band__intro a:hover {
  text-decoration: underline;
}

.eda-cta-band__subtitle {
  margin: 1rem 0 0;
  font-family: var(--eda-font-heading);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.25px;
  color: var(--eda-section-kicker-color, #2195b7);
}

.eda-cta-band__subtitle a {
  color: inherit;
  text-decoration: none;
}

.eda-cta-band__subtitle a:hover {
  text-decoration: underline;
}

.eda-cta-band__tel-label {
  color: var(--eda-teal);
  font-weight: 700;
}

/* Sección parallax (fondo fijo + overlay + contenido centrado) */
.eda-parallax {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 55vh, 620px);
  padding: 50px clamp(1.25rem, 4.5%, 3.5rem);
  background-color: var(--eda-beige, #f0efe6);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.eda-parallax__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.eda-parallax__badge {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1.25rem;
}

.eda-parallax .eda-section-head__title {
  margin-top: 0.5rem;
}

.eda-parallax .eda-cta-band__phones {
  margin-top: 1.25rem;
}

@media (max-width: 778px) {
  .eda-parallax {
    background-attachment: scroll;
    min-height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eda-parallax {
    background-attachment: scroll;
  }
}

.eda-prose a:hover {
  text-decoration: underline;
}

@media (max-width: 778px) {
  :root {
    --eda-panel-overlap: 60px;
    --eda-section-head-gap-after-panel: 40px;
    --eda-section-head-gap-top: 40px;
  }
}

@media (max-width: 1024px) {
  .eda-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow: visible;
  }

  .eda-header__logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
  }

  .eda-header__logo img {
    height: clamp(52px, 14vw, 72px);
    max-width: min(150px, 44vw);
  }

  .eda-nav-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin-left: auto;
    position: relative;
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #eda-nav,
  .eda-nav {
    position: fixed;
    top: var(--eda-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--eda-white);
    padding: 1rem 0 2rem;
    box-shadow: -8px 0 32px rgba(0, 67, 101, 0.12);
  }

  #eda-nav.is-open,
  .eda-nav.is-open {
    transform: translateX(0) !important;
  }

  .eda-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .eda-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    line-height: 1.35;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--eda-navy, #004365);
    padding: 0.9rem 1.25rem;
    white-space: normal;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .eda-nav__item--has-sub > .eda-nav__link--label {
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
  }

  .eda-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 0;
    padding: 0.35rem 0 0.5rem;
    display: none;
    background: var(--eda-beige, #f0efe6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .eda-nav__sub .eda-nav__link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--eda-text, #333);
    padding: 0.7rem 1.25rem 0.7rem 2rem;
    border-bottom: none;
  }

  .eda-nav__sub .eda-nav__link:last-child {
    padding-bottom: 0.85rem;
  }

  .eda-nav__item--open > .eda-nav__sub {
    display: block;
  }

  .eda-nav__item--has-sub > .eda-nav__link::after,
  .eda-nav__item--has-sub > .eda-nav__link--label::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: auto;
    border-right: 2px solid var(--eda-teal, #4ab7c3);
    border-bottom: 2px solid var(--eda-teal, #4ab7c3);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    float: none;
  }

  .eda-nav__item--open > .eda-nav__link::after,
  .eda-nav__item--open > .eda-nav__link--label::after {
    transform: rotate(-135deg);
  }

  body.eda-nav-open {
    overflow: hidden;
  }

  body.eda-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 67, 101, 0.35);
    z-index: 1190;
    pointer-events: none;
  }

  body.eda-nav-open .eda-site-header {
    z-index: 1201;
  }

  body.eda-nav-open .eda-nav-toggle {
    z-index: 1202;
  }
}
