/**
 * ENTRE HILOS — Estilos Principales de la Plataforma
 * Maquetación editorial, responsive mobile-first y animaciones optimizadas
 */

@import url('./design-tokens.css');

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background-color: var(--color-parchment);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(185, 66, 50, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(8, 84, 102, 0.035) 0%, transparent 45%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Enfoque accesible */
:focus-visible {
  outline: 3px solid var(--color-ocean);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   TIPOGRAFÍA Y ELEMENTOS EDITORIALES
   ========================================================================== */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-ink);
  letter-spacing: -0.015em;
}

.font-script {
  font-family: var(--font-script);
  font-weight: 700;
}

.badge-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.35rem 0.9rem;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-script);
  font-size: var(--text-md);
  line-height: 1;
  box-shadow: 0 3px 10px rgba(185, 66, 50, 0.25);
  transform: rotate(-1.5deg);
  transition: transform var(--transition-smooth);
}

.badge-tagline:hover {
  transform: rotate(0deg) scale(1.03);
}

/* Cinta de pincel artesanal para títulos de sección */
.section-banner-title {
  display: inline-block;
  position: relative;
  padding: 0.5rem 1.6rem 0.6rem;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-radius: 6px 14px 4px 12px;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.1;
  box-shadow: 0 4px 14px rgba(185, 66, 50, 0.28);
  margin-bottom: var(--space-md);
  transform: rotate(-0.8deg);
}

.section-banner-title.teal {
  background-color: var(--color-ocean);
  box-shadow: 0 4px 14px rgba(8, 84, 102, 0.28);
  transform: rotate(0.8deg);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-snug);
}

/* ==========================================================================
   LAYOUT Y CONTENEDORES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-padding {
  padding-block: var(--space-2xl);
  position: relative;
}

@media (min-width: 768px) {
  .section-padding {
    padding-block: var(--space-3xl);
  }
}

/* ==========================================================================
   CABECERA & NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 252, 247, 0.96);
  box-shadow: var(--shadow-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  .header-inner {
    gap: var(--space-md);
  }
}

/* Logotipo */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-icon-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

@media (min-width: 768px) {
  .brand-icon-svg {
    width: 44px;
    height: 44px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  line-height: 1;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }
}

/* Navegación desktop */
.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--space-md);
  }

  .nav-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-ink);
    padding: var(--space-2xs) var(--space-xs);
    position: relative;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: var(--space-xs);
    right: var(--space-xs);
    height: 2px;
    background-color: var(--color-terracotta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
  }

  .nav-link:hover {
    color: var(--color-terracotta);
  }

  .nav-link:hover::after {
    transform: scaleX(1);
  }
}

/* Botones de acción */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .container {
    padding-inline: var(--space-sm);
  }
  .header-actions .btn-primary {
    display: none;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }
  .hero-title {
    font-size: clamp(2rem, 1.75rem + 1.5vw, 2.5rem);
    hyphens: auto;
  }
  .hero-stats {
    gap: var(--space-sm);
    flex-wrap: wrap;
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 400px) {
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-tagline {
    font-size: 0.52rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 4px 12px var(--color-terracotta-glow);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--color-terracotta-glow);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-ocean);
  border: 1.5px solid var(--color-ocean);
}

.btn-secondary:hover {
  background-color: var(--color-ocean);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--color-ocean-glow);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: var(--color-white);
}

/* Botón menú móvil */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--color-ink);
  transition: all var(--transition-normal);
}

.hamburger-line + .hamburger-line {
  margin-top: 5px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Cajón móvil */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 65px 0 0 0;
  background-color: var(--color-linen);
  padding: var(--space-lg);
  overflow-y: auto;
  z-index: 99;
  border-top: 1px solid var(--color-border);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: fadeInDown var(--transition-normal);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-link {
  font-size: var(--text-lg);
  font-weight: 600;
  padding: var(--space-xs) 0;
  border-bottom: 1px dashed var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   HERO EDITORIAL
   ========================================================================== */
.hero-section {
  position: relative;
  padding-block: var(--space-xl) var(--space-2xl);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    padding-block: var(--space-2xl) var(--space-3xl);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-2xl);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: var(--text-hero);
  line-height: 1.08;
  margin-block: var(--space-sm) var(--space-md);
  color: var(--color-ink);
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--color-terracotta);
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-lg);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-terracotta);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 4px;
}

/* Composición visual hero */
.hero-visual-card {
  position: relative;
  padding: var(--space-sm);
  background-color: var(--color-linen);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-visual-art {
  position: relative;
  border-radius: calc(var(--radius-xl) - 8px);
  background: linear-gradient(135deg, #F9EFE6 0%, #E8F2F4 100%);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-badge-stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-script);
  font-size: var(--text-base);
  box-shadow: 0 4px 10px rgba(185, 66, 50, 0.3);
  transform: rotate(4deg);
}

.hero-sun-ovillo {
  width: 180px;
  height: 180px;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 10px 20px rgba(185, 66, 50, 0.2));
  animation: pulseGentle 4s ease-in-out infinite alternate;
}

@keyframes pulseGentle {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.03) translateY(-4px); }
}

/* ==========================================================================
   SECCIÓN 1: ¿QUIÉNES SOMOS?
   ========================================================================== */
.about-section {
  background-color: var(--color-linen);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-card-editorial {
  background-color: var(--color-parchment);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--color-border-warm);
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--color-ink);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.about-pillar-item {
  background-color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-pillar-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-warm);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background-color: var(--color-parchment);
  color: var(--color-terracotta);
  margin-bottom: var(--space-2xs);
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
}

.pillar-desc {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
}

/* ==========================================================================
   SECCIÓN 2: ¿QUÉ GENERAMOS? — LOS 7 OFICIOS TEXTILES
   ========================================================================== */
.crafts-section {
  position: relative;
}

.crafts-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.craft-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.6rem 1.15rem;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-subtle);
}

.craft-pill:hover, .craft-pill.active {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--color-terracotta-glow);
}

.craft-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SECCIÓN 3: EMPRENDIMIENTOS DESTACADOS & 4 LAYOUTS DE PERFIL
   ========================================================================== */
.entrepreneurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--space-lg);
}

.profile-card {
  background-color: var(--color-linen);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border-warm);
}

.profile-cover {
  height: 160px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.profile-layout-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(20, 37, 51, 0.75);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.profile-avatar-wrapper {
  position: absolute;
  bottom: -28px;
  left: 20px;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--color-linen);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.profile-body {
  padding: calc(28px + var(--space-xs)) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.profile-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-artisan {
  font-size: var(--text-sm);
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

.profile-bio {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.profile-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-parchment);
  color: var(--color-ink);
}

.profile-actions {
  display: flex;
  gap: var(--space-2xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border);
}

.profile-actions .btn {
  flex: 1;
  padding: 0.55rem 0.85rem;
  font-size: var(--text-xs);
}

/* ==========================================================================
   SECCIÓN 4: ACTIVIDADES Y ENCUENTROS
   ========================================================================== */
.activities-section {
  background-color: var(--color-parchment-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-md);
}

.activity-card {
  background-color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-ocean);
}

.activity-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-ocean-light);
  color: var(--color-ocean);
}

.activity-content h3 {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  margin-bottom: 4px;
}

.activity-content p {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
}

/* ==========================================================================
   SECCIÓN 5: AGENDA Y PRÓXIMOS EVENTOS
   ========================================================================== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 920px;
  margin-inline: auto;
}

.event-item {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  gap: var(--space-md);
  align-items: center;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

@media (min-width: 640px) {
  .event-item {
    grid-template-columns: auto 1fr auto;
  }
}

.event-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-terracotta);
  box-shadow: var(--shadow-card);
}

.event-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  min-width: 80px;
  text-align: center;
}

.date-day {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.event-details h3 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-bottom: 4px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

.event-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-badge.free {
  background-color: var(--color-sage-light);
  color: var(--color-sage);
}

.event-badge.taller {
  background-color: var(--color-mustard-light);
  color: var(--color-mustard-hover);
}

/* ==========================================================================
   SECCIÓN 6: NUESTRO HORIZONTE
   ========================================================================== */
.horizon-section {
  background: linear-gradient(180deg, var(--color-parchment) 0%, #E6F0F2 100%);
  text-align: center;
  padding-block: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.horizon-card {
  max-width: 860px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.horizon-sun-svg {
  width: 90px;
  height: 90px;
  margin: 0 auto var(--space-md);
}

.horizon-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-ocean);
  margin-bottom: var(--space-md);
}

.horizon-sub {
  font-size: var(--text-md);
  color: var(--color-ink-muted);
  max-width: 620px;
  margin-inline: auto;
}

/* ==========================================================================
   SECCIÓN 7: FORMULARIO «SUMATE»
   ========================================================================== */
.join-section {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.join-card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  background-color: var(--color-linen);
  border: 1px solid var(--color-border-warm);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-card);
}

@media (min-width: 992px) {
  .join-card-container {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.join-intro h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.join-intro p {
  color: var(--color-ink-muted);
  margin-bottom: var(--space-md);
  line-height: var(--leading-normal);
}

.join-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.join-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.join-benefit-icon {
  color: var(--color-terracotta);
  font-size: 1.1rem;
  line-height: 1;
}

/* Campos de formulario */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink);
}

.form-input, .form-select, .form-textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-white);
  transition: all var(--transition-fast);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px var(--color-terracotta-glow);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-feedback {
  margin-top: var(--space-xs);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #E6F9EE;
  color: #116B38;
  border: 1px solid #B8ECCE;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
.site-footer {
  background-color: var(--color-ink);
  color: var(--color-parchment);
  padding-block: var(--space-2xl) var(--space-lg);
  position: relative;
}

.footer-top-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-2xs);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: #A0B2C0;
  max-width: 380px;
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

.footer-social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  transition: all var(--transition-normal);
}

.social-btn:hover {
  background-color: var(--color-terracotta);
  transform: translateY(-3px);
  color: var(--color-white);
}

.footer-column h4 {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--text-sm);
  color: #A0B2C0;
}

.footer-links-list a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #7E909E;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-legal-bar {
    flex-direction: row;
    text-align: left;
  }
}
