/* ==========================================
   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,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, 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;
}

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

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 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle .bar {
  width: 28px;
  height: 2px;
  background: #f9fafb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 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: 10rem 0 4rem;
  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;
  width: fit-content;
  margin-bottom: 1rem;
}

.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(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

.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.1rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.8);
  max-width: 550px;
  margin: 0;
}

.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: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  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;
  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;
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.audio-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: rgba(42, 106, 138, 0.9);
  border: 2px solid rgba(167, 213, 243, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.audio-toggle:hover {
  background: var(--primary);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(42, 106, 138, 0.4);
}

.audio-toggle .ico {
  color: #fff;
  transition: opacity 0.3s ease;
}

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

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

.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: 5rem 0;
  position: relative;
}

.section-blue {
  background: linear-gradient(135deg, var(--primary), #1e5366);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

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

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

.title-with-bg {
  font-family: "Montserrat", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  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;
}

.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;
}

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

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

/* === 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: 2rem;
  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 1rem 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.7;
  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: 900px;
  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.7;
  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(3rem, 8vw, 5rem);
  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;
}

/* === ALIANZAS === */
.ally-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: 2rem 0;
}

.ally-track {
  display: flex;
  width: max-content;
  animation: ally-scroll 30s linear infinite;
}

.ally-group {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 2rem;
}

.ally-group img {
  height: clamp(40px, 6vw, 60px);
  width: auto;
  filter: brightness(0) invert(1) opacity(0.8);
  transition: all 0.3s ease;
}

.ally-group img:hover {
  filter: brightness(0) invert(1) opacity(1);
  transform: translateY(-5px);
}

@keyframes ally-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ally-marquee:hover .ally-track {
  animation-play-state: paused;
}

/* === 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;
  }

  .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: 3rem 0;
  }

  .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(2.5rem, 12vw, 4rem);
  }

  .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: 45px;
    height: 45px;
  }

  .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;
}



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