/* ============================================================
   GENTIUM ABOGADOS — Stylesheet
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --color-dark:       #2A2D30;
  --color-dark-alt:   #1E2124;
  --color-yellow:     #F5C400;
  --color-yellow-dark:#D4A900;
  --color-white:      #FFFFFF;
  --color-gray-light: #F4F4F4;
  --color-gray-mid:   #E0E0E0;
  --color-gray-text:  #555555;
  --color-gray-muted: #888888;

  --font-title: 'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --transition: 0.3s ease;

  --container: 1160px;
  --navbar-h:  72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--yellow {
  background: var(--color-yellow);
  color: var(--color-dark);
}
.btn--yellow:hover {
  background: var(--color-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,196,0,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.navbar__logotipo img {
  height: 48px;
  width: auto;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__link {
  color: var(--color-white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
  position: relative;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-yellow);
  transition: width var(--transition);
}
.navbar__link:hover { opacity: 1; }
.navbar__link:hover::after { width: 100%; }
.navbar__cta { margin-left: 8px; }
.navbar__link.active { opacity: 1; color: var(--color-yellow); }
.navbar__link.active::after { width: 100%; }

/* Hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.navbar__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../img/hero.jpg') center center / cover no-repeat;
  color: var(--color-white);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,33,36,0.90) 0%, rgba(42,45,48,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 120px 24px 80px;
  margin: 0 auto;
  width: 100%;
}
.hero__pretitle {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-hint span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-yellow), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding: 96px 0; }
.section--light { background: var(--color-gray-light); }
.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section__header--light .section__title { color: var(--color-white); }
.section__label {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-dark);
  background: rgba(245,196,0,0.18);
  padding: 4px 14px;
  border-radius: 40px;
  margin-bottom: 16px;
}
.section__label--yellow { color: var(--color-yellow); background: rgba(245,196,0,0.12); }
.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-dark);
}
.section__title--left { text-align: left; }
.section__subtitle {
  font-size: 1rem;
  color: var(--color-gray-text);
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* Centra la última tarjeta cuando queda sola en su fila (ej: 7 tarjetas → 3+3+1) */
.services__grid > .service-card:last-child:nth-child(3n+1) {
  grid-column: 2;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--color-yellow);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 52px; height: 52px;
  background: rgba(245,196,0,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.service-card__icon svg {
  width: 28px; height: 28px;
  color: var(--color-dark);
}
.service-card__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-dark);
}
.service-card__text {
  font-size: 0.92rem;
  color: var(--color-gray-text);
  line-height: 1.65;
  flex: 1;
}
.service-card__link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  transition: color var(--transition), letter-spacing var(--transition);
}
.service-card:hover .service-card__link {
  color: var(--color-yellow-dark);
  letter-spacing: 0.05em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__content { max-width: 520px; }
.about__text {
  font-size: 1rem;
  color: var(--color-gray-text);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--color-gray-mid);
}
.stat__number {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.82rem;
  color: var(--color-gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about__image:hover img { transform: scale(1.03); }

.about__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.gallery__item:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .about__gallery { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
}
@media (max-width: 480px) {
  .about__gallery { gap: 12px; }
}

/* ============================================================
   FEATURES (Por qué elegirnos)
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), transform var(--transition);
}
.feature:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}
.feature__icon {
  width: 56px; height: 56px;
  background: rgba(245,196,0,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.feature__icon svg {
  width: 26px; height: 26px;
  color: var(--color-yellow);
}
.feature__title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}
.feature__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  text-transform: uppercase;
}
.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-gray-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form__input::placeholder { color: var(--color-gray-muted); }
.form__input:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(245,196,0,0.20);
}
.form__input.error { border-color: #e53e3e; }
.form__select { cursor: pointer; }
.form__textarea { resize: vertical; min-height: 140px; }

.form__check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form__check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--color-yellow);
  flex-shrink: 0;
  cursor: pointer;
}
.form__check-label { font-size: 0.88rem; color: var(--color-gray-text); }
.form__link { color: var(--color-dark); font-weight: 600; text-decoration: underline; }

.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 28px;
  background: rgba(245,196,0,0.08);
  border: 2px solid var(--color-yellow);
  border-radius: var(--radius-lg);
}
.form__success svg { width: 52px; height: 52px; }
.form__success p { font-size: 1rem; color: var(--color-dark); font-weight: 600; }
.form__success.visible { display: flex; }

/* Contact info sidebar */
.contact__info {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact__info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact__info-icon {
  width: 44px; height: 44px;
  background: rgba(245,196,0,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact__info-icon svg {
  width: 22px; height: 22px;
  color: var(--color-yellow);
}
.contact__info-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 4px;
}
.contact__info-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}
.contact__link {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.contact__link:hover { color: var(--color-yellow); }

/* ============================================================
   SERVICE CARD ACTIONS + FAQ BUTTON
   ============================================================ */
.services__faq-cta {
  text-align: center;
  margin-top: 48px;
}
.faq-section {
  margin-bottom: 4px;
}
.faq-section + .faq-section .faq-section__label {
  border-top: 2px solid var(--color-light);
  padding-top: 20px;
  margin-top: 8px;
}
.faq-section__label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-dark-alt);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

/* ============================================================
   MODAL FAQ
   ============================================================ */
.faq-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.faq-modal.is-open { display: flex; }
.faq-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}
.faq-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 40px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.faq-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.faq-modal__close:hover {
  background: var(--color-light);
  color: var(--color-dark);
}
.faq-modal__close svg { width: 22px; height: 22px; display: block; }
.faq-modal__header { margin-bottom: 32px; }
.faq-modal__header .section__label { display: inline-block; margin-bottom: 8px; }
.faq-modal__header h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}
.faq-item {
  border-bottom: 1px solid var(--color-light);
}
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-title);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-item__question:hover { color: var(--color-dark-alt); }
.faq-item__question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%232A2D30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-item__question::after { transform: rotate(180deg); }
.faq-item.is-open .faq-item__question { color: var(--color-dark-alt); }
.faq-item__answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.93rem;
  color: var(--color-gray);
  line-height: 1.7;
}
.faq-item.is-open .faq-item__answer { display: block; }
.faq-item__answer ul {
  margin: 8px 0 8px 20px;
  list-style: disc;
}
.faq-item__answer li { margin-bottom: 4px; }
.faq-item__answer p { margin-bottom: 8px; }
.faq-modal__cta {
  display: inline-block;
  margin-top: 32px;
  text-decoration: none;
}
.faq-extra {
  margin-top: 32px;
  background: var(--color-light);
  border-radius: 10px;
  padding: 24px 28px;
}
.faq-extra__title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.faq-extra__subtitle {
  font-size: 0.88rem;
  color: var(--color-gray);
  margin-bottom: 16px;
}
.faq-extra__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-extra__list li {
  font-size: 0.9rem;
  color: var(--color-dark);
  padding-left: 20px;
  position: relative;
}
.faq-extra__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-yellow);
  font-weight: 700;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--color-yellow);
  padding: 28px 0;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner__text {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
}
.cta-banner .btn--yellow {
  background: var(--color-dark);
  color: var(--color-white);
  flex-shrink: 0;
}
.cta-banner .btn--yellow:hover {
  background: var(--color-dark-alt);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark-alt);
  color: var(--color-white);
  padding-top: 60px;
}
.footer__container {
  display: grid;
  grid-template-columns: 1fr auto auto 210px;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__map-col {
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__map-col:hover { opacity: 1; }
.footer__map-col iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}
.footer__logotipo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  max-width: 280px;
  line-height: 1.55;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__link {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--color-yellow); }
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__legal-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer__legal-link:hover { color: rgba(255,255,255,0.8); }
.footer__bottom {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-fade-in,
.animate-slide-up,
.animate-fade-left,
.animate-fade-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-fade-in { transform: translateY(20px); }
.animate-slide-up { transform: translateY(40px); }
.animate-fade-left { transform: translateX(-40px); }
.animate-fade-right { transform: translateX(40px); }

.animate-fade-in.is-visible,
.animate-slide-up.is-visible,
.animate-fade-left.is-visible,
.animate-fade-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* stagger for cards */
.animate-slide-up:nth-child(2) { transition-delay: 0.10s; }
.animate-slide-up:nth-child(3) { transition-delay: 0.20s; }
.animate-slide-up:nth-child(4) { transition-delay: 0.30s; }
.animate-slide-up:nth-child(5) { transition-delay: 0.40s; }

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .contact__info-item { flex: 1 1 200px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Navbar */
  .navbar__nav {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .navbar__nav.open { transform: translateX(0); }
  .navbar__link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }
  .navbar__link::after { display: none; }
  .navbar__cta { margin: 20px 0 0; width: 100%; text-align: center; }
  .navbar__burger { display: flex; }

  /* Hero */
  .hero__content { padding: 100px 24px 60px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  /* Services */
  .services__grid { grid-template-columns: 1fr 1fr; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__content { max-width: 100%; }
  .about__stats { gap: 24px; }

  /* Features */
  .features__grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Form */
  .form__row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__container { grid-template-columns: 1fr; gap: 32px; }
  .footer__map-col { height: 220px; }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .about__stats { flex-direction: column; gap: 20px; }
  .hero__title { font-size: 1.8rem; }
}
/* Contenedor principal del banner */
.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
}

.cookie-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left; /* Aquí no justificamos para facilitar lectura rápida */
}

.cookie-content a {
    color: #d4af37; /* Dorado para el enlace */
    text-decoration: underline;
}

/* Botones */
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept {
    background-color: #d4af37; /* Dorado corporativo */
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-accept:hover {
    background-color: #f1c40f;
}

.btn-settings {
    background-color: transparent;
    color: #bbb;
    border: 1px solid #444;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-settings:hover {
    background-color: #333;
    color: #fff;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content p { text-align: center; }
}

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-header {
  padding: 120px 24px 56px;
  background: linear-gradient(135deg, var(--color-dark-alt) 0%, var(--color-dark) 100%);
  color: var(--color-white);
  text-align: center;
}
.legal-header__label {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 16px;
}
.legal-header__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.legal-header__date {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}
.legal-content { padding: 80px 0 100px; }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 44px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.legal-back:hover { color: var(--color-yellow-dark); }
.legal-back svg { width: 16px; height: 16px; }
.legal-body h2 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gray-mid);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p {
  font-size: 0.96rem;
  color: var(--color-gray-text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-body ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}
.legal-body ul li {
  font-size: 0.96rem;
  color: var(--color-gray-text);
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.legal-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-yellow-dark);
  font-weight: 700;
}
.legal-body a { color: var(--color-dark); text-decoration: underline; font-weight: 600; }
.legal-body a:hover { color: var(--color-yellow-dark); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.88rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-table th {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-gray-mid);
  color: var(--color-gray-text);
  line-height: 1.55;
  vertical-align: top;
}
.legal-table tr:nth-child(even) td { background: var(--color-gray-light); }
@media (max-width: 768px) {
  .legal-header { padding: 100px 24px 48px; }
  .legal-content { padding: 56px 0 72px; }
  .legal-table { font-size: 0.82rem; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
}

/* ============================================================
   RESERVAR CITA (BOOKING)
   ============================================================ */
.booking__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.booking__sidebar {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: var(--color-white);
  position: sticky;
  top: calc(var(--navbar-h) + 20px);
}
.booking__sidebar-title {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 24px;
}
.booking__schedule { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.schedule__item {}
.schedule__day-name {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 7px;
}
.schedule__slots { display: flex; gap: 8px; flex-wrap: wrap; }
.schedule__slot {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(245,196,0,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245,196,0,0.22);
}
.schedule__slot--closed {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.28);
  font-style: italic;
}
.booking__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(245,196,0,0.07);
  border: 1px solid rgba(245,196,0,0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 28px;
}
.booking__note svg { width: 18px; height: 18px; color: var(--color-yellow); flex-shrink: 0; margin-top: 2px; }
.booking__note p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.55; }
.booking__alt-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.booking__alt-links { display: flex; flex-direction: column; gap: 10px; }
.booking__alt-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: all var(--transition);
}
.booking__alt-link:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }
.booking__alt-link svg { width: 18px; height: 18px; color: var(--color-yellow); flex-shrink: 0; }
.booking__alt-link--wa svg { color: #25D366; }
.booking__alt-link--wa:hover { border-color: rgba(37,211,102,0.35); }

.booking__main {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid var(--color-gray-mid);
}
.booking__main-head {
  background: var(--color-dark);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.booking__main-head svg { width: 20px; height: 20px; color: var(--color-yellow); }
.booking__main-head span {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
}
.booking__iframe {
  width: 100%;
  height: 660px;
  border: none;
  display: block;
}
/* Calendly inline widget */
.calendly-inline-widget {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.booking__setup {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 40px;
  text-align: center;
  background: var(--color-gray-light);
}
.booking__setup-icon { width: 72px; height: 72px; color: var(--color-gray-mid); margin-bottom: 4px; }
.booking__setup h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
}
.booking__setup p {
  font-size: 0.92rem;
  color: var(--color-gray-text);
  max-width: 380px;
  line-height: 1.65;
}
.booking__setup .btn { margin-top: 4px; }

@media (max-width: 1024px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking__sidebar { position: static; }
}
@media (max-width: 768px) {
  .booking__sidebar { padding: 28px 20px; }
  .booking__setup { padding: 36px 24px; min-height: 320px; }
  .booking__iframe { height: 520px; }
}