/* ==========================================
   REVOLUTION - CSS MODERNIZADO
   ========================================== */

/* === VARIABLES === */
:root {
  --bg: #0b0b0c;
  --ink: #ffffff;
  --muted: #8a8c8f;
  --primary: #ed3c51;
  --accent: #221f1f;
  --gradient: linear-gradient(135deg, var(--primary), #b82e3f);
}

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

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

a {
  color: #fff;
  text-decoration: none;
}

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

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

/* ========================================
   HEADER / NAVBAR - Revolution 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(225, 29, 72, 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(225, 29, 72, 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(190, 18, 60, 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;
}

/* Desktop: Show desktop nav, hide menu toggle */
@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;
}

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  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, #ff5a6f, transparent);
  bottom: -150px;
  right: -50px;
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(237, 60, 81, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(237, 60, 81, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.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: 80px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 5px 15px rgba(237, 60, 81, 0.4));
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1.25rem;
  background: rgba(237, 60, 81, 0.1);
  border: 1px solid rgba(237, 60, 81, 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;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}

.title-highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #ff5a6f);
  -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), #ff5a6f);
  border-radius: 2px;
  animation: expandWidth 1.5s ease-out;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 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), #b82e3f);
  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(237, 60, 81, 0.4);
  position: relative;
  overflow: hidden;
  border: none;
}

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

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(237, 60, 81, 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(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(237, 60, 81, 0.5);
  transform: translateY(-2px);
}

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

.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(255, 255, 255, 0.2),
    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.5);
  border: 2px solid rgba(237, 60, 81, 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(0, 0, 0, 0.7);
  border: 2px solid rgba(237, 60, 81, 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: rgba(237, 60, 81, 0.8);
  border-color: var(--primary);
  transform: scale(1.1);
}

.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(237, 60, 81, 0.3);
  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;
}

.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(237, 60, 81, 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;
}

.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(
    180deg,
    rgba(34, 31, 31, 0.5),
    rgba(11, 11, 12, 0.8)
  );
  padding: 5rem 0;
  position: relative;
}

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

.title-with-bg {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -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;
}

.subtitle-timeline {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0.5rem 0 2rem 0;
}

/* === SOBRE REVOLUTION === */
.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.3);
}

.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(237, 60, 81, 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;
}

.images-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(237, 60, 81, 0.2), 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(34, 31, 31, 0.9),
    rgba(34, 31, 31, 0.6)
  );
  border: 1px solid rgba(237, 60, 81, 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), #ff5a6f);
  transition: height 0.4s ease;
}

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

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

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  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(237, 60, 81, 0.3);
}

.sobre-card:hover .card-icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(237, 60, 81, 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: #fff;
  line-height: 1.3;
}

.sobre-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

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

.enc-face-card {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  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(237, 60, 81, 0.95),
    rgba(184, 46, 63, 0.95)
  );
  transform: rotateY(180deg);
}

.face2 {
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.95),
    rgba(11, 11, 12, 0.95)
  );
  backdrop-filter: blur(20px);
}

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

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

.face1 .content {
  max-width: 600px;
  text-align: center;
}

.face1 p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
  margin: 0 0 2rem 0;
}

.btn-enc {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-enc:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  transform: translateY(-2px);
}

.enc-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

.enc-title .muted {
  display: block;
  color: var(--muted);
  font-size: 0.7em;
  margin-top: 0.5rem;
}

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

.pillar-card {
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.8),
    rgba(34, 31, 31, 0.6)
  );
  border: 1px solid rgba(237, 60, 81, 0.15);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff5a6f);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-10px);
  border-color: rgba(237, 60, 81, 0.4);
  box-shadow: 0 20px 40px rgba(237, 60, 81, 0.3);
}

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

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

.pc-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(237, 60, 81, 0.4);
  transition: all 0.3s ease;
}

.pillar-card:hover .pc-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(237, 60, 81, 0.6);
}

.pc-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.pillar-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* === PROYECTOS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  max-width: 1200px;
}

.project-card {
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.9),
    rgba(34, 31, 31, 0.7)
  );
  border: 1px solid rgba(237, 60, 81, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff5a6f);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(237, 60, 81, 0.3);
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card .pc-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(237, 60, 81, 0.4);
  transition: all 0.3s ease;
}

.project-card:hover .pc-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(237, 60, 81, 0.6);
}

.project-card .pc-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.project-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 90%;
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.95),
    rgba(11, 11, 12, 0.95)
  );
  border: 1px solid rgba(237, 60, 81, 0.3);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  animation: modalSlideUp 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* === TESTIMONIOS === */
.testimonios-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0.5rem 0 2rem 0;
}

.testimonios-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem;
}

.testimonio-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.9),
    rgba(34, 31, 31, 0.7)
  );
  border: 1px solid rgba(237, 60, 81, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0;
  animation: fadeInScale 0.6s ease forwards;
}

.testimonio-card:nth-child(1) {
  animation-delay: 0.1s;
}
.testimonio-card:nth-child(2) {
  animation-delay: 0.2s;
}
.testimonio-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #ff5a6f, var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(237, 60, 81, 0.3);
}

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

.testimonio-decoration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(237, 60, 81, 0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.5s ease;
}

.testimonio-card:hover .testimonio-decoration {
  transform: scale(1.3);
}

.testimonio-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonio-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(237, 60, 81, 0.4);
  transition: transform 0.3s ease;
}

.testimonio-card:hover .avatar-circle {
  transform: scale(1.1) rotate(5deg);
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(15px);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

.testimonio-author {
  flex: 1;
}

.testimonio-author h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.testimonio-author p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.testimonio-quote-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.testimonio-card:hover .testimonio-quote-icon {
  opacity: 0.6;
  transform: rotate(5deg) scale(1.1);
}

.testimonio-quote-icon svg {
  width: 100%;
  height: 100%;
}

.testimonio-content {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonio-content::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: -10px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* === LÍNEA DE TIEMPO === */
.timeline-modern {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem 1rem;
}

.timeline-modern::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 1;
  grid-row: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 3;
  grid-row: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
  grid-column: 2;
  grid-row: 1;
}

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

.timeline-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  z-index: 2;
}

.marker-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.marker-dot {
  position: relative;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(237, 60, 81, 0.5);
  transition: transform 0.3s ease;
}

.timeline-item:hover .marker-dot {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(237, 60, 81, 0.7);
}

.marker-dot svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-year {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-card {
  background: rgba(34, 31, 31, 0.8);
  border: 1px solid rgba(237, 60, 81, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(237, 60, 81, 0.3);
}

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

.timeline-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

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

.timeline-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.progress-label span:first-child {
  color: var(--primary);
}

.progress-label span:last-child {
  color: var(--muted);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff5a6f);
  border-radius: 10px;
  position: relative;
  transition: width 1s ease;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer 2s infinite;
}

/* === VOLUNTARIADO === */
.vol-wrap {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.vol-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.6),
    rgba(34, 31, 31, 0.4)
  );
  border-radius: 16px;
  border: 1px solid rgba(237, 60, 81, 0.15);
}

.vm-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.vm-item svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  flex-shrink: 0;
}

.vol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}

.vol-card {
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.9),
    rgba(34, 31, 31, 0.7)
  );
  border: 1px solid rgba(237, 60, 81, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.vol-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(237, 60, 81, 0.3);
}

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

.vol-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.v-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(237, 60, 81, 0.4);
  transition: all 0.3s ease;
}

.vol-card:hover .v-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(237, 60, 81, 0.6);
}

.v-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.vol-head h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.v-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem 0;
}

.vol-toggle {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(237, 60, 81, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(237, 60, 81, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vol-toggle:hover {
  background: rgba(237, 60, 81, 0.2);
  border-color: var(--primary);
}

.vol-roles {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chip {
  padding: 0.4rem 1rem;
  background: rgba(237, 60, 81, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(237, 60, 81, 0.25);
}

.vol-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(237, 60, 81, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(237, 60, 81, 0.6);
}

/* === MODAL VOLUNTARIADO === */
.modal-vol {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-vol[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.modal-content-wrap {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(
    135deg,
    rgba(34, 31, 31, 0.98),
    rgba(11, 11, 12, 0.98)
  );
  border: 1px solid rgba(237, 60, 81, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  animation: modalSlideUp 0.4s ease;
}

.vol-form h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.vol-form > p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2rem 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.field input,
.field select,
.field textarea {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

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

.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.field-error {
  font-size: 0.85rem;
  color: #ff5555;
  display: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-secondary {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.success-state {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), #b82e3f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(237, 60, 81, 0.4);
}

.success-state h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
}

.success-state p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem 0;
}

/* === GALERÍA === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-link:hover {
  transform: scale(1.02);
}

.gallery-image {
  margin: 0;
  position: relative;
}

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

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

.gallery-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-link:hover figcaption {
  opacity: 1;
}

.lo-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lo-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.lo-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lo-modal__dialog {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lo-modal__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lo-modal__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lo-modal__btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lo-modal__close {
  top: 1rem;
  right: 1rem;
}

.lo-modal__arrow {
  top: 50%;
  transform: translateY(-50%);
}

.lo-modal__arrow--prev {
  left: 1rem;
}

.lo-modal__arrow--next {
  right: 1rem;
}

.lo-modal__caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* === FOOTER === */
.site-footer {
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0.8),
    rgba(11, 11, 12, 1)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

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

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

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

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin: 0.5rem 0;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}

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

.social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* === ANIMATIONS === */
@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

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

@keyframes pulseGlowLarge {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

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

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

@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(-15px) rotate(1deg);
  }
}

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

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

@keyframes shimmer {
  0% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(100px);
  }
}

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

/* === ANIMATION UTILS === */
[data-animate] {
  opacity: 0;
}

[data-animate].in {
  animation-name: fadeInUp;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
}

/* === 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, stats) - inside hero-content with order: 3 */
  .hero-badge,
  .hero-title,
  .hero-description,
  .hero-cta,
  .hero-stats {
    order: 0;
  }

  .hero-stats {
    gap: 1.5rem;
  }

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

  .sobre-images {
    height: 500px;
    order: 2;
  }

  .sobre-content {
    order: 1;
  }

  .timeline-modern::before {
    left: 40px;
  }

  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-item:nth-child(even) .timeline-marker,
  .timeline-item:nth-child(odd) .timeline-marker {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-marker {
    width: 60px;
    height: 60px;
  }

  .marker-ring {
    width: 60px;
    height: 60px;
  }

  .marker-dot {
    width: 45px;
    height: 45px;
  }

  .marker-dot svg {
    width: 24px;
    height: 24px;
  }

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

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

  .section-blue {
    padding: 3rem 0;
  }

  .inner {
    padding: 0 1rem;
  }

  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

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

  /* 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-badge {
    justify-content: center;
  }

  .hero-title {
    font-size: 1.75rem;
  }

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

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-divider {
    display: none;
  }

  .video-decoration-1,
  .video-decoration-2 {
    display: none;
  }

  .sobre-images {
    height: 450px;
  }

  .img-1 {
    width: 220px;
    height: 280px;
  }

  .img-2 {
    width: 240px;
    height: 300px;
  }

  .img-3 {
    width: 200px;
    height: 240px;
  }

  .sobre-card {
    padding: 1.5rem;
  }

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

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

  .card-icon {
    width: 45px;
    height: 45px;
  }

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

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

  .face {
    padding: 2rem;
  }

  .face1 p {
    font-size: 1rem;
  }

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

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

  .testimonios-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }

  .testimonio-card {
    padding: 1.5rem;
  }

  .avatar-circle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .avatar-glow {
    width: 60px;
    height: 60px;
  }

  .testimonio-author h4 {
    font-size: 1.1rem;
  }

  .testimonio-author p {
    font-size: 0.85rem;
  }

  .testimonio-content {
    font-size: 0.95rem;
  }

  .testimonio-quote-icon {
    width: 35px;
    height: 35px;
  }

  .timeline-year {
    font-size: 0.8rem;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .timeline-card h4 {
    font-size: 1.2rem;
  }

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

  .vol-meta {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

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

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

  .btn-secondary,
  .btn-primary {
    width: 100%;
  }

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

  .lo-modal__arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .sobre-container {
    padding: 1rem 0.5rem;
  }

  .sobre-images {
    height: 380px;
  }

  .img-1 {
    width: 160px;
    height: 200px;
  }

  .img-2 {
    width: 180px;
    height: 220px;
  }

  .img-3 {
    width: 140px;
    height: 180px;
  }

  .images-glow {
    width: 300px;
    height: 300px;
  }

  .modal-content-wrap {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .testimonios-modern {
    grid-template-columns: repeat(2, 1fr);
  }

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