/* ─── BASE ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--slate);
  font-size: 1.05rem;
}

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

nav.scrolled {
  background: var(--burgundy-dark);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo-img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 12px 26px;
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--burgundy-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--burgundy-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 5, 5, 0.88) 0%, rgba(30, 5, 5, 0.55) 55%, rgba(30, 5, 5, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-counter {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--heading);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-counter b {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 110px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: heroScrollLine 2s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

@media (max-width: 768px) {
  .hero-scroll { display: none; }
  .hero-counter { bottom: 28px; }
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--burgundy-light);
}

.btn-outline {
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--burgundy);
}

/* ─── VALORES / GRID ────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value-card {
  padding: 32px 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.value-card h3 {
  font-size: 1.1rem;
}

.value-card p {
  font-size: 0.95rem;
}

/* ─── AREAS DE PRACTICA GRID ────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.area-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.area-icon-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.area-icon-badge img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.area-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--burgundy);
  transform: translateY(-4px);
}

.area-number {
  font-family: var(--heading);
  font-size: 1.6rem;
  color: var(--burgundy);
  margin-bottom: 14px;
}

.area-card p {
  font-size: 0.95rem;
}

.area-card .area-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--burgundy);
  border-bottom: 1px solid currentColor;
}

/* ─── AREA DETALLE (pagina interna) ─────────────────────────── */
.area-detail {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.area-detail:last-child {
  border-bottom: none;
}

.area-detail h2 {
  color: var(--burgundy);
}

.area-detail-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}

.area-detail-icon {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-detail-icon img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .area-detail-grid {
    grid-template-columns: 1fr;
  }
  .area-detail-icon {
    width: 96px;
    height: 96px;
  }
  .area-detail-icon img {
    width: 60px;
    height: 60px;
  }
}

/* ─── CTA BANDA ─────────────────────────────────────────────── */
.cta-band {
  background: var(--burgundy-dark);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--burgundy);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.98rem;
}

/* ─── CONTACTO ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h3 {
  color: var(--burgundy);
}

.contact-info-item {
  margin-bottom: 24px;
}

.contact-info-item span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.contact-note {
  margin-top: 32px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--slate);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 24px;
}

.form-check input {
  margin-top: 4px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--burgundy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-grid p, .footer-grid a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.55);
}

.footer-credit a {
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.2px;
}

.footer-credit a span {
  color: #1398D5;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 210;
  }

  .nav-toggle span {
    transform-origin: center;
  }

  nav.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  nav.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--burgundy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.4rem;
  }

  .nav-links .nav-cta {
    margin-top: 12px;
  }

  .values-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
