/* ==========================================
   ANCHOR - CSS CON EFECTOS DE REVOLUTION
   Colores: #2a6a8a (primary), #a7d5f3 (accent)
   ========================================== */

/* === VARIABLES === */
:root {
  --bg: #f7fbff;
  --bg-dark: #0a1929;
  --ink: #0f172a;
  --ink-light: #fff;
  --muted: #64748b;
  --primary: #2a6a8a;
  --accent: #a7d5f3;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-weight: 300;
}

/* Justificar todos los párrafos y textos */
p {
  text-align: justify;
  text-justify: inter-word;
  font-weight: 300;
}

/* Títulos con Montserrat Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========================================
   HEADER / NAVBAR - Anchor Colors
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(42, 106, 138, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  padding: 1rem 2rem;
  background: rgba(42, 106, 138, 0.95);
}

.brand img {
  height: 42px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover img {
  transform: scale(1.05);
}

.desktop-nav {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.desktop-nav button {
  margin-left: 0.5rem;
}

.desktop-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  color: rgba(249, 250, 251, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f9fafb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #f9fafb;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

/* Menu toggle styles moved to base.css for consistency */
/* Styles are now controlled globally from base.css */

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 79, 106, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__list {
  list-style: none;
  text-align: center;
}

.menu-overlay__list li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay[aria-hidden="false"] .menu-overlay__list li {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay__list li:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-overlay__list li:nth-child(2) {
  transition-delay: 0.2s;
}
.menu-overlay__list li:nth-child(3) {
  transition-delay: 0.3s;
}
.menu-overlay__list li:nth-child(4) {
  transition-delay: 0.4s;
}

.menu-overlay__list a {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(249, 250, 251, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay__list a:hover,
.menu-overlay__list a.active {
  color: #f9fafb;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 0 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, #e1f0f7 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent), transparent);
  bottom: -150px;
  right: -50px;
  animation-delay: -4s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(42, 106, 138, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(42, 106, 138, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-logo img {
  height: 100px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(42, 106, 138, 0.4));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary), transparent);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: pulseGlowLarge 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulseGlowLarge {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1.25rem;
  background: rgba(42, 106, 138, 0.1);
  border: 1px solid rgba(42, 106, 138, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.hero-title {
  font-family: "Montserrat", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1.5rem 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.title-highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  animation: expandWidth 1.5s ease-out;
}

@keyframes expandWidth {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.8);
  max-width: 650px;
  margin: 0 0 2rem 0;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), #1e5366);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(42, 106, 138, 0.4);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-hero-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42, 106, 138, 0.6);
}

.btn-hero-primary:hover::before {
  opacity: 1;
}

.btn-hero-primary span,
.btn-hero-primary svg {
  position: relative;
  z-index: 1;
}

.btn-hero-primary svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
  transform: translateX(5px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(42, 106, 138, 0.05);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(42, 106, 138, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(42, 106, 138, 0.1);
  border-color: rgba(42, 106, 138, 0.4);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(42, 106, 138, 0.15);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(42, 106, 138, 0.3),
    transparent
  );
}

.hero-media {
  position: relative;
}

.video-container {
  position: relative;
}

.video-frame {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(42, 106, 138, 0.2);
  background: #000;
  max-height: 70vh;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audio-toggle {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(42, 106, 138, 0.4) 0%, rgba(42, 106, 138, 0.2) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167, 213, 243, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(167, 213, 243, 0.1) inset;
  overflow: hidden;
}

.audio-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary, #2a6a8a) 0%, var(--accent, #a7d5f3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.audio-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(167, 213, 243, 0.5);
  box-shadow:
    0 8px 24px rgba(42, 106, 138, 0.3),
    0 0 0 1px rgba(167, 213, 243, 0.15) inset,
    0 0 20px rgba(42, 106, 138, 0.2);
}

.audio-toggle:hover::before {
  opacity: 0.2;
}

.audio-toggle:active {
  transform: translateY(0) scale(0.98);
}

.audio-toggle .ico {
  position: relative;
  z-index: 1;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.audio-toggle .ico-off {
  display: block;
}

.audio-toggle .ico-on {
  display: none;
}

.audio-toggle[data-state="muted"] .ico-on {
  display: none;
}

.audio-toggle[data-state="playing"] {
  background: linear-gradient(135deg, rgba(42, 106, 138, 0.5) 0%, rgba(167, 213, 243, 0.3) 100%);
  border-color: rgba(167, 213, 243, 0.5);
  box-shadow:
    0 4px 16px rgba(42, 106, 138, 0.35),
    0 0 0 1px rgba(167, 213, 243, 0.15) inset;
  animation: audio-pulse-anchor 2s ease-in-out infinite;
}

.audio-toggle[data-state="playing"] .ico-off {
  display: none;
}

.audio-toggle[data-state="playing"] .ico-on {
  display: block;
  animation: sound-wave-anchor 1s ease-in-out infinite;
}

@keyframes audio-pulse-anchor {
  0%, 100% {
    box-shadow:
      0 4px 16px rgba(42, 106, 138, 0.35),
      0 0 0 1px rgba(167, 213, 243, 0.15) inset;
  }
  50% {
    box-shadow:
      0 4px 24px rgba(42, 106, 138, 0.5),
      0 0 0 1px rgba(167, 213, 243, 0.2) inset,
      0 0 30px rgba(42, 106, 138, 0.25);
  }
}

@keyframes sound-wave-anchor {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.video-decoration {
  position: absolute;
  border-radius: 24px;
  border: 2px solid rgba(42, 106, 138, 0.2);
  z-index: -1;
}

.video-decoration-1 {
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  animation: floatDecor1 4s ease-in-out infinite;
}

.video-decoration-2 {
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  animation: floatDecor2 5s ease-in-out infinite;
}

@keyframes floatDecor1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-5px, -5px);
  }
}

@keyframes floatDecor2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(5px, 5px);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(42, 106, 138, 0.5);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 0;
  }
}

.hero-scroll p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === SHARED STYLES === */
.section {
  padding: 3rem 2rem;
  position: relative;
}

/* Espaciado superior reducido para secciones después del hero */
#identidad {
  padding-top: 3rem;
}

/* Espaciado extra para secciones destacadas */
.section-identity-ultra {
  padding: 3rem 2rem;
}

#encuesta {
  padding: 3rem 0;
  margin: 0;
}

#alianzas {
  margin-top: 0;
}

#equipo {
  padding: 3rem 2rem;
  margin-top: 0;
}

.section-blue {
  background: linear-gradient(
      rgba(30, 83, 102, 0.90),
      rgba(30, 83, 102, 0.85)
    ),
    url('../media/img/anchor/galeria/foto4.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(30, 83, 102, 0.3) 0%,
    transparent 70%
  );
  opacity: 0.5;
  pointer-events: none;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.title-with-bg {
  font-family: "Montserrat", Inter, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-blue .title-with-bg {
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === TYPEWRITER EFFECT === */

/* Contenedor del título typewriter */
.typewriter-title {
  display: inline-block;
  position: relative;
}

/* Texto que se va escribiendo */
.typewriter-text {
  display: inline;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: inherit;
  opacity: 0;
}

/* Estado activo (después de trigger) */
.typewriter-text.typing {
  opacity: 1;
}

/* Cursor parpadeante */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  opacity: 0;
  animation: none;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}

/* Cursor activo durante escritura */
.typewriter-cursor.active {
  opacity: 1;
  animation: cursorBlink 0.8s step-end infinite;
}

/* Animación de parpadeo del cursor */
@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Estado inicial antes de animación */
.typewriter-title[data-animate]:not(.in) .typewriter-text {
  opacity: 0;
}

.typewriter-title[data-animate]:not(.in) .typewriter-cursor {
  opacity: 0;
}

/* Responsive: mantener funcionalidad en móvil */
@media (max-width: 768px) {
  .typewriter-cursor {
    height: 0.9em;
    width: 2px;
  }
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 3rem 0;
  font-weight: 400;
}

.section-blue .subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Alternancia de títulos: izquierda y derecha */
.section-header-left {
  text-align: left;
}

.section-header-left .title-with-bg {
  text-align: left;
  display: inline-block;
  position: relative;
}

.section-header-left .title-with-bg::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-header-left .subtitle {
  text-align: left;
  margin-left: 0;
}

.section-header-right {
  text-align: right;
}

.section-header-right .title-with-bg {
  text-align: right;
  display: inline-block;
  position: relative;
}

.section-header-right .title-with-bg::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}

.section-header-right .subtitle {
  text-align: right;
  margin-right: 0;
}

/* === SOBRE ANCHOR === */
.sobre-container {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 4rem;
  max-width: 1300px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  align-items: center;
}

.sobre-images {
  position: relative;
  height: 600px;
}

.images-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-wrapper {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover::after {
  opacity: 1;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 106, 138, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.img-1 {
  width: 280px;
  height: 350px;
  top: 0;
  left: 0;
  z-index: 3;
  animation: float1 6s ease-in-out infinite;
}

.img-2 {
  width: 300px;
  height: 380px;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  animation: float2 7s ease-in-out infinite;
}

.img-3 {
  width: 250px;
  height: 300px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: float3 8s ease-in-out infinite;
}

@keyframes float1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translateY(-50%) rotate(0deg);
  }
  50% {
    transform: translateY(calc(-50% + 15px)) rotate(-2deg);
  }
}

@keyframes float3 {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(1deg);
  }
}

.images-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(42, 106, 138, 0.15), transparent);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulseGlowLarge 4s ease-in-out infinite;
  z-index: 0;
}

.sobre-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sobre-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85)
  );
  border: 1px solid rgba(42, 106, 138, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sobre-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transition: height 0.4s ease;
}

.sobre-card:hover {
  border-color: rgba(42, 106, 138, 0.4);
  transform: translateX(10px);
  box-shadow: -10px 10px 30px rgba(42, 106, 138, 0.2);
}

.sobre-card:hover::before {
  height: 100%;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(42, 106, 138, 0.3);
}

.sobre-card:hover .card-icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(42, 106, 138, 0.5);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.sobre-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.sobre-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.85);
}

/* === PRINCIPIOS === */
.principios-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.valor-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.valor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.valor-card:hover::before {
  opacity: 1;
}

.card-icon-small {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.valor-card:hover .card-icon-small {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.25);
}

.card-icon-small svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.valor-card h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* === PILARES === */
.pilares-grid {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pilar-card {
  position: relative;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(42, 106, 138, 0.15);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.pilar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.pilar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(42, 106, 138, 0.2);
  border-color: rgba(42, 106, 138, 0.3);
}

.pilar-card:hover::before {
  transform: scaleX(1);
}

.pilar-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(42, 106, 138, 0.08);
  line-height: 1;
}

.pilar-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(42, 106, 138, 0.3);
  transition: all 0.3s ease;
}

.pilar-card:hover .pilar-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 15px 40px rgba(42, 106, 138, 0.5);
}

.pilar-icon svg {
  width: 36px;
  height: 36px;
}

.pilar-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.pilar-card p {
  margin: 0;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.8);
}

/* === ENCUESTA === */
.enc-face-grid {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.enc-face-card {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.5s ease;
}

.enc-face-card:hover {
  transform: scale(1.02);
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.face1 {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  transform: rotateY(180deg);
  z-index: 2;
}

.enc-face-card:hover .face1,
.enc-face-card:focus-within .face1 {
  transform: rotateY(0);
}

.face-content {
  max-width: 500px;
  text-align: center;
}

.face-content h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.face-content p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(15, 23, 42, 0.8);
}

.btn-enc {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(42, 106, 138, 0.3);
  border: none;
  cursor: pointer;
}

.btn-enc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42, 106, 138, 0.5);
}

.btn-enc svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-enc:hover svg {
  transform: translateX(5px);
}

.face2 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: rotateY(0);
  z-index: 1;
  position: relative;
}

.enc-face-card:hover .face2,
.enc-face-card:focus-within .face2 {
  transform: rotateY(180deg);
}

.face2-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.face2-title {
  margin: 0;
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* === ALIANZAS === */
.ally-static {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 8vw, 6rem);
  margin-top: 3rem;
  padding: 2rem 0;
}

.ally-static a {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ally-static img {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: all 0.3s ease;
}

/* LIRA logo específico - más grande */
.ally-static a[href*="librerazon"] img {
  height: 110px;
  max-width: 250px;
}

.ally-static a:hover {
  transform: translateY(-8px) scale(1.05);
}

.ally-static a:hover img {
  filter: brightness(0) invert(1) opacity(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ally-static {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .ally-static img {
    height: 60px;
    max-width: 150px;
  }
}

/* === EQUIPO === */
.team-grid {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.team-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(42, 106, 138, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(42, 106, 138, 0.2);
  border-color: rgba(42, 106, 138, 0.3);
}

.team-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(42, 106, 138, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.team-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

/* === GALERÍA === */
.gallery-modern {
  max-width: 1300px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 106, 138, 0.8),
    rgba(167, 213, 243, 0.6)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  font-size: 3rem;
  animation: zoomIcon 0.5s ease-out;
}

@keyframes zoomIcon {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* === FOOTER === */
.site-footer {
  background: linear-gradient(135deg, #0a1929, #1e3a5f);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 0.5rem 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(167, 213, 243, 0.9);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact ul li {
  color: rgba(255, 255, 255, 0.7);
}

.social {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    order: 3;
  }

  /* Logo first - pull out of hero-content */
  .hero-logo {
    order: -2;
    align-self: center;
    margin-bottom: 1.5rem;
  }

  .hero-logo img {
    height: 70px;
  }

  /* Video second */
  .hero-media {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  /* Content third (badge, title, description, buttons) - inside hero-content with order: 3 */
  .hero-badge,
  .hero-title,
  .hero-description,
  .hero-cta {
    order: 0;
  }

  .sobre-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sobre-images {
    height: 500px;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Timeline responsive for tablets - mantener horizontal pero más compacto */
  .reconquista-timeline {
    gap: 1rem;
  }

  .timeline-connector {
    width: 50px;
  }

  /* Timeline moderno para tablets - 2 columnas */
  .reconquista-timeline-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .timeline-card-modern:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .timeline-item {
    padding: 0 0.5rem;
  }

  .timeline-item h3 {
    font-size: 1.2rem;
  }

  .timeline-item p {
    font-size: 0.95rem;
  }

  .pilares-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-container {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  /* Logo arriba del todo sin interferir con navbar */
  .hero-logo {
    order: -2;
    margin-bottom: 1rem;
  }

  .hero-logo img {
    height: 60px;
  }

  /* Video después del logo */
  .hero-media {
    order: -1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.5rem;
  }

  .video-container {
    width: 100%;
  }

  .video-frame {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 640px;
  }

  .video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Contenido después del video */
  .hero-content {
    order: 1;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    min-width: 100px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-divider {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .section,
  .section-blue {
    padding: 4rem 0;
  }

  .section-identity-ultra {
    padding: 5rem 0;
  }

  #encuesta {
    padding: 4rem 0;
    margin: 2rem 0;
  }

  #alianzas {
    margin-top: 2rem;
  }

  #equipo {
    padding: 4rem 0;
    margin-top: 1rem;
  }

  .section-blue {
    background-attachment: scroll;
  }

  .sobre-images {
    height: 400px;
  }

  .img-1,
  .img-2,
  .img-3 {
    width: 200px !important;
    height: 250px !important;
  }

  .principios-grid {
    grid-template-columns: 1fr;
  }

  .pilares-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .enc-face-card {
    height: 450px;
  }

  .face-content h2 {
    font-size: 1.75rem;
  }

  .face2-title {
    font-size: clamp(3.5rem, 15vw, 6rem);
  }

  .gallery-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-logo img {
    height: 70px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .video-frame {
    border-radius: 16px;
  }

  .audio-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    bottom: 1rem;
    right: 1rem;
  }

  .sobre-images {
    height: 350px;
  }

  .img-1,
  .img-2,
  .img-3 {
    width: 180px !important;
    height: 220px !important;
  }

  .sobre-card,
  .pilar-card {
    padding: 1.5rem;
  }

  .gallery-modern {
    grid-template-columns: 1fr;
  }

  .social a {
    width: 36px;
    height: 36px;
  }

  .social svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ========================================
   ANCHOR - MENÚ (basado en index.html)
   Color: #2a6a8a (Azul Anchor)
   ======================================== */

:root {
  --anchor-primary: #2a6a8a;
  --anchor-accent: #a7d5f3;
  --anchor-dark: #1e4f6a;
}

/* ========================================
   IDENTIDAD - NUEVO DISEÑO CON TABS
   ======================================== */

/* ============================
   NUEVA IDENTIDAD - DISEÑO ULTRA MODERNO
   ============================ */

/* Hero Cards Grid */
.identity-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.identity-hero-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border: 1px solid rgba(42, 106, 138, 0.1);
}

.identity-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.identity-hero-card:hover::before {
  transform: scaleX(1);
}

.identity-hero-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(42, 106, 138, 0.15);
  border-color: var(--primary);
}

.identity-hero-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(42, 106, 138, 0.05);
  line-height: 1;
  transition: all 0.5s ease;
}

.identity-hero-card:hover .identity-hero-number {
  color: rgba(42, 106, 138, 0.12);
  transform: scale(1.1);
}

.identity-hero-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(42, 106, 138, 0.12) 0%, rgba(167, 213, 243, 0.08) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: var(--primary);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(42, 106, 138, 0.1);
}

.identity-hero-icon svg {
  width: 30px;
  height: 30px;
  transition: all 0.5s ease;
}

.identity-hero-card:hover .identity-hero-icon {
  background: var(--gradient);
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(42, 106, 138, 0.3);
}

.identity-hero-card:hover .identity-hero-icon svg {
  color: white;
  transform: scale(1.1);
}

.identity-hero-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.identity-hero-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
  margin: 0;
}

/* Estilos específicos para slides del slider */
.identity-slide h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
}

.identity-slide p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.8);
  margin: 0;
}

.identity-slide .identity-hero-icon {
  box-shadow: 0 6px 20px rgba(42, 106, 138, 0.15);
}

.identity-slide.active .identity-hero-icon {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 25px rgba(42, 106, 138, 0.25);
}

.identity-slide.active .identity-hero-number {
  color: rgba(42, 106, 138, 0.08);
  font-size: 4rem;
}

.identity-hero-gradient {
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(42, 106, 138, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.8s ease;
}

.identity-hero-card:hover .identity-hero-gradient {
  bottom: -30%;
  right: -10%;
  opacity: 1;
}

/* Divisor Moderno */
.identity-divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 4rem 0 3rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(42, 106, 138, 0.3) 50%, transparent 100%);
}

.divider-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  white-space: nowrap;
  position: relative;
  padding: 0 1rem;
}

.divider-text::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  animation: scaleXIn 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes scaleXIn {
  to {
    transform: scaleX(1);
  }
}

/* Principios Compactos */
.identity-principles-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.principle-compact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(42, 106, 138, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  animation: fadeInScale 0.5s ease forwards;
}

.principle-compact-item:nth-child(1) { animation-delay: 0.1s; }
.principle-compact-item:nth-child(2) { animation-delay: 0.2s; }
.principle-compact-item:nth-child(3) { animation-delay: 0.3s; }
.principle-compact-item:nth-child(4) { animation-delay: 0.4s; }
.principle-compact-item:nth-child(5) { animation-delay: 0.5s; }
.principle-compact-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.principle-compact-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(42, 106, 138, 0.12);
  border-color: var(--primary);
}

.principle-compact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, rgba(42, 106, 138, 0.1) 0%, rgba(42, 106, 138, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.4s ease;
}

.principle-compact-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.4s ease;
}

.principle-compact-item:hover .principle-compact-icon {
  background: var(--gradient);
  transform: rotate(10deg);
}

.principle-compact-item:hover .principle-compact-icon svg {
  color: white;
}

.principle-compact-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s ease;
}

/* ===================================
   DISEÑO DOS COLUMNAS: SLIDER + GRID
   =================================== */

.identity-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* === COLUMNA IZQUIERDA: SLIDER === */
.identity-slider-column {
  position: relative;
  display: flex;
  flex-direction: column;
}

.identity-slider-wrapper {
  position: relative;
  perspective: 1000px;
  flex: 1;
}

.identity-slider {
  position: relative;
  min-height: 350px;
  height: 100%;
}

.identity-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(-100%) scale(0.9);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Reutilizar estilos de identity-hero-card */
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(42, 106, 138, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.identity-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.identity-slide::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(42, 106, 138, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: all 0.8s ease;
}

.identity-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  animation: slideInIdentity 0.6s ease-out;
  background: linear-gradient(135deg, #ffffff 0%, rgba(247, 251, 255, 0.98) 100%);
  border: 2px solid rgba(42, 106, 138, 0.15);
  box-shadow: 0 8px 30px rgba(42, 106, 138, 0.12), 0 0 0 1px rgba(42, 106, 138, 0.05);
}

.identity-slide.active::before {
  transform: scaleX(1);
}

.identity-slide.active::after {
  opacity: 1;
  right: -50px;
}

@keyframes slideInIdentity {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.identity-slide:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(42, 106, 138, 0.15);
  border-color: var(--primary);
}

/* Controles del slider de identidad */
.identity-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.identity-slider-dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.identity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(42, 106, 138, 0.2);
  border: 2px solid rgba(42, 106, 138, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.identity-dot:hover {
  background: rgba(42, 106, 138, 0.4);
  transform: scale(1.2);
}

.identity-dot.active {
  width: 30px;
  border-radius: 5px;
  background: var(--gradient);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(42, 106, 138, 0.5);
}

/* === COLUMNA DERECHA: GRID DE PRINCIPIOS === */
.identity-principles-column {
  display: flex;
  flex-direction: column;
}

.principles-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.principles-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.identity-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.2rem;
  flex: 1;
}

.identity-principles-grid .principle-compact-item {
  margin: 0;
  flex-direction: column;
  text-align: center;
  padding: 1.5rem 1rem;
  gap: 0.8rem;
}

.identity-principles-grid .principle-compact-icon {
  margin: 0 auto;
}

.identity-principles-grid .principle-compact-item span {
  font-size: 0.9rem;
}

/* Responsive para dos columnas */
@media (max-width: 1024px) {
  .identity-two-columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .identity-slider {
    min-height: 400px;
  }

  .identity-principles-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .identity-slider {
    min-height: 500px;
  }

  .identity-slide {
    padding: 2rem;
  }

  .identity-principles-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
  }

  .identity-principles-grid .principle-compact-item {
    padding: 1.2rem 0.8rem;
  }
}

.principle-compact-item:hover span {
  color: var(--primary);
}

/* Pilares Timeline */
.identity-pillars-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.identity-pillars-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.3;
}

.pillar-timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  animation: slideInLeft 0.6s ease forwards;
}

.pillar-timeline-item:nth-child(1) { animation-delay: 0.2s; }
.pillar-timeline-item:nth-child(2) { animation-delay: 0.4s; }
.pillar-timeline-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pillar-timeline-dot {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 15px rgba(42, 106, 138, 0.2);
  transition: all 0.4s ease;
}

.pillar-timeline-dot::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--gradient);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.pillar-timeline-item:hover .pillar-timeline-dot {
  transform: scale(1.15);
  border-width: 6px;
  box-shadow: 0 8px 25px rgba(42, 106, 138, 0.35);
}

.pillar-timeline-content {
  flex: 1;
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(42, 106, 138, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.pillar-timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 106, 138, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pillar-timeline-item:hover .pillar-timeline-content {
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(42, 106, 138, 0.1);
  border-color: var(--primary);
}

.pillar-timeline-item:hover .pillar-timeline-content::before {
  opacity: 1;
}

.pillar-timeline-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.pillar-timeline-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.pillar-timeline-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .identity-hero-grid {
    grid-template-columns: 1fr;
  }

  .identity-principles-compact {
    grid-template-columns: 1fr;
  }

  .identity-pillars-timeline::before {
    left: 20px;
  }

  .pillar-timeline-item {
    gap: 1rem;
  }

  .pillar-timeline-dot {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

.pillar-modern-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.pillar-line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.pillar-modern-card:hover .pillar-line {
  width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .identity-tabs {
    flex-direction: column;
  }

  .identity-tab {
    width: 100%;
    justify-content: center;
  }

  .glass-cards-grid,
  .principles-circle-grid,
  .pillars-modern-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   BOTÓN FLOTANTE DE ENCUESTA
   ========================================== */
.floating-survey-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(42, 106, 138, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  text-decoration: none;
}

.floating-survey-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 106, 138, 0.4);
}

.floating-survey-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .floating-survey-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .floating-survey-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================
   MEJORAS DE DISEÑO MODERNO Y ELEGANTE
   ========================================== */

/* Mejoras para las secciones */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(42, 106, 138, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section-white {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.section-gray {
  background: linear-gradient(180deg, #f7fbff 0%, #eef6fb 100%);
  border-top: 1px solid rgba(42, 106, 138, 0.08);
  border-bottom: 1px solid rgba(42, 106, 138, 0.08);
}

/* Sombras sutiles para cards */
.identity-slide,
.pillar-timeline-content,
.principle-compact-item {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.identity-slide:hover,
.principle-compact-item:hover {
  box-shadow: 0 8px 24px rgba(42, 106, 138, 0.12);
  transform: translateY(-2px);
}

/* ==========================================
   RECONQUISTA - LÍNEA DE TIEMPO HORIZONTAL
   ========================================== */
.reconquista-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.timeline-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(42, 106, 138, 0.3);
  z-index: 2;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  margin: 2rem auto 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(42, 106, 138, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.timeline-icon svg {
  width: 40px;
  height: 40px;
}

.timeline-item:hover .timeline-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(42, 106, 138, 0.3);
}

.timeline-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.timeline-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.timeline-item strong {
  color: var(--primary);
  font-weight: 700;
}

/* Conectores entre items */
.timeline-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 55px;
  flex-shrink: 0;
  position: relative;
}

.timeline-connector::before,
.timeline-connector::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-connector::before {
  left: 0;
}

.timeline-connector::after {
  right: 0;
}

/* ==========================================
   RECONQUISTA - TIMELINE MODERNO CON CARDS VERTICALES
   ========================================== */
.reconquista-timeline-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline-card-modern {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 20px rgba(42, 106, 138, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.timeline-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-card-modern:hover {
  transform: translateY(-12px);
  box-shadow:
    0 20px 60px rgba(42, 106, 138, 0.18),
    0 8px 24px rgba(167, 213, 243, 0.25);
}

.timeline-card-modern:hover::before {
  opacity: 1;
}

/* Header with badge and icon */
.timeline-card-header {
  position: relative;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg,
    rgba(42, 106, 138, 0.03) 0%,
    rgba(167, 213, 243, 0.05) 100%);
  border-bottom: 1px solid rgba(42, 106, 138, 0.08);
}

.timeline-card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow:
    0 4px 12px rgba(42, 106, 138, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.timeline-card-modern:hover .timeline-card-badge {
  transform: rotate(5deg) scale(1.1);
  box-shadow:
    0 6px 20px rgba(42, 106, 138, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.timeline-card-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-card-icon {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow:
    0 8px 24px rgba(42, 106, 138, 0.12),
    inset 0 0 0 3px rgba(42, 106, 138, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.timeline-card-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.timeline-card-icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.timeline-card-modern:hover .timeline-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  transform: scale(1.05) rotate(-5deg);
  box-shadow:
    0 12px 32px rgba(42, 106, 138, 0.25),
    inset 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.timeline-card-modern:hover .timeline-card-icon::before {
  opacity: 0.6;
}

.timeline-card-modern:hover .timeline-card-icon svg {
  transform: scale(1.1);
}

/* Content area */
.timeline-card-content {
  padding: 2rem;
  text-align: left;
}

.timeline-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.timeline-card-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: height 0.3s ease;
}

.timeline-card-modern:hover .timeline-card-content h3::before {
  height: 100%;
}

.timeline-card-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.timeline-card-content strong {
  color: var(--primary);
  font-weight: 700;
}

/* Animaciones de entrada */
.timeline-card-modern[data-animate] {
  opacity: 0;
  transform: translateY(40px);
}

.timeline-card-modern[data-animate].in {
  animation: timelineCardSlideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes timelineCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejora para la sección de encuesta */
.section#encuesta .inner {
  max-width: 1000px;
  padding: 4rem 2rem;
}

.btn-enc {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(42, 106, 138, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-enc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-enc:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(42, 106, 138, 0.35);
}

.btn-enc:hover::before {
  opacity: 1;
}

.btn-enc span,
.btn-enc svg {
  position: relative;
  z-index: 1;
}

/* Mejora de espaciado en secciones */
.section {
  padding: 6rem 0;
}

.section-identity-ultra {
  padding: 7rem 0;
}

.section-pillars {
  padding: 4rem 0;
}

/* ==========================================
   FONDO BLANCO PARA PILARES DE ACCIÓN
   ========================================== */
.section-pillars {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.section-pillars .inner {
  position: relative;
  z-index: 1;
}

/* ==========================================
   SECCIÓN DE ENCUESTA MEJORADA - FONDO AZUL
   ========================================== */
.section-encuesta {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

.section-encuesta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 213, 243, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Header centrado para encuesta */
.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-encuesta .title-with-bg {
  color: white;
}

.section-encuesta .subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

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

  .section-identity-ultra,
  .section-pillars {
    padding: 4rem 0;
  }

  .inner {
    padding: 0 1.5rem;
  }

  /* Timeline responsivo - columna única */
  .reconquista-timeline {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-connector {
    display: none;
  }

  .timeline-item {
    padding: 0;
  }

  .timeline-number {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
  }

  .timeline-icon {
    margin: 1rem auto 1.5rem;
  }

  /* Timeline moderno responsivo - columna única */
  .reconquista-timeline-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .timeline-card-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .timeline-card-badge {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    top: 1.25rem;
    right: 1.25rem;
  }

  .timeline-card-icon {
    width: 75px;
    height: 75px;
  }

  .timeline-card-icon svg {
    width: 36px;
    height: 36px;
  }

  .timeline-card-content {
    padding: 1.5rem;
  }

  .timeline-card-content h3 {
    font-size: 1.3rem;
  }

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

  .title-with-bg {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
  }
}

/* ==========================================
   SECCIÓN IDENTIDAD - FORMATO SOBRE LOVE ON
   ADAPTADO A COLORES DE ANCHOR
   ========================================== */
.section-about-anchor {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
  padding: 6rem 0 !important;
  overflow: hidden;
  position: relative;
}

.section-about-anchor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(42, 106, 138, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(167, 213, 243, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.section-about-anchor .about-header {
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

.section-about-anchor .title-with-bg {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #a7d5f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
}

/* Grid de dos columnas */
.about-two-column-grid-anchor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.about-principles-column-anchor,
.about-identity-column-anchor {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2rem;
  backdrop-filter: none;
}

.column-title-anchor {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.column-title-anchor::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #2a6a8a 0%, #a7d5f3 100%);
  border-radius: 2px;
}

/* Estilos para principios */
.principles-static-grid-anchor {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.principle-item-anchor {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  cursor: default;
}

/* Colores específicos de iconos para Anchor */
.principle-item-anchor[data-color="anchor-blue"] .principle-icon-anchor {
  background: linear-gradient(135deg, #2a6a8a 0%, #3d8fb3 100%);
}

.principle-item-anchor[data-color="anchor-teal"] .principle-icon-anchor {
  background: linear-gradient(135deg, #1e5366 0%, #2a6a8a 100%);
}

.principle-item-anchor[data-color="anchor-red"] .principle-icon-anchor {
  background: linear-gradient(135deg, #c34359 0%, #d55a3e 100%);
}

.principle-item-anchor[data-color="anchor-dark"] .principle-icon-anchor {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.principle-icon-anchor {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(42, 106, 138, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.principle-icon-anchor::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: inherit;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s ease;
}

.principle-item-anchor:hover .principle-icon-anchor {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(42, 106, 138, 0.5);
}

.principle-item-anchor:hover .principle-icon-anchor::after {
  opacity: 0.6;
  animation: iconPulseAnchor 1.5s ease-in-out infinite;
}

@keyframes iconPulseAnchor {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.principle-icon-anchor svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.principle-item-anchor:hover .principle-icon-anchor svg {
  transform: scale(1.1);
}

.principle-text-anchor {
  position: relative;
  z-index: 2;
}

.principle-text-anchor h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.principle-text-anchor p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Estilos para la columna de identidad */
.identity-content-anchor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.identity-block-anchor h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.identity-block-anchor p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Botones de identidad */
.identity-buttons-anchor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-identity-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-identity-anchor:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(167, 213, 243, 0.3);
}

.btn-identity-anchor svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
}

/* Modales */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  display: none;
  background: white;
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.active {
  display: block;
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: #333;
}

.modal-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.modal-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* ==========================================
   PILARES HORIZONTALES - 3 CARDS
   ========================================== */
.pillars-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card-horizontal {
  /* Glassmorphism base */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* Borde y forma */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  text-align: center;

  /* Transiciones suaves */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  will-change: transform;

  /* Sombra base colorida */
  box-shadow:
    0 8px 32px rgba(42, 106, 138, 0.1),
    0 2px 8px rgba(167, 213, 243, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Borde gradiente con pseudo-elemento */
.pillar-card-horizontal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(42, 106, 138, 0.4) 0%,
    rgba(167, 213, 243, 0.6) 50%,
    rgba(42, 106, 138, 0.3) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

/* Efecto shimmer/brillo */
.pillar-card-horizontal::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.pillar-card-horizontal:hover {
  transform: translateY(-12px) scale(1.02);

  /* Sombras coloridas intensas */
  box-shadow:
    0 20px 60px rgba(42, 106, 138, 0.25),
    0 8px 24px rgba(167, 213, 243, 0.3),
    0 0 0 1px rgba(42, 106, 138, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Intensificar borde en hover */
.pillar-card-horizontal:hover::before {
  opacity: 1;
  animation: borderGlow 2s ease-in-out infinite;
}

/* Activar shimmer en hover */
.pillar-card-horizontal:hover::after {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.pillar-card-horizontal:not(:hover) {
  will-change: auto;
}

.pillar-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(42, 106, 138, 0.25);
  transition: all 0.4s ease;
  position: relative;
}

/* Glow del icono */
.pillar-card-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.pillar-card-horizontal:hover .pillar-card-icon {
  transform: scale(1.15) rotate(8deg);
  box-shadow:
    0 12px 32px rgba(42, 106, 138, 0.4),
    0 0 0 8px rgba(42, 106, 138, 0.1);
  animation: iconPulse 1.5s ease-in-out infinite;
}

.pillar-card-horizontal:hover .pillar-card-icon::before {
  opacity: 0.6;
}

.pillar-card-icon svg {
  width: 35px;
  height: 35px;
  color: white;
}

.pillar-card-horizontal h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.pillar-card-horizontal p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* === ANIMACIONES GLASSMORPHISM PILARES === */

/* Glow de borde pulsante */
@keyframes borderGlow {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.2) saturate(1.3);
  }
}

/* Entrada desde abajo con fade */
@keyframes pillarSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulso suave en el icono */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1.15) rotate(8deg);
  }
  50% {
    transform: scale(1.2) rotate(8deg);
  }
}

/* Animación on-scroll para pilares */
.pillar-card-horizontal[data-animate] {
  opacity: 0;
  transform: translateY(40px);
}

.pillar-card-horizontal[data-animate].in {
  animation: pillarSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 968px) {
  .about-two-column-grid-anchor {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pillars-horizontal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-about-anchor {
    padding: 4rem 0 !important;
  }

  .about-principles-column-anchor,
  .about-identity-column-anchor {
    padding: 1rem;
  }

  .identity-buttons-anchor {
    grid-template-columns: 1fr;
  }

  .btn-identity-anchor {
    padding: 1rem 1.25rem;
  }
}

/* === MENÚ CSS CONSOLIDADO AGREGADO ===
