/* ==========================================================================
   ANIMAL LIBRE - HOJA DE ESTILOS MAESTRA (CUSTOM)
   Versión: 14.0 (FINAL - Consolidado: Home, Quiénes Somos y Proyectos + Áreas)
   ========================================================================== */

/* === INICIO: SOLUCIÓN GLOBAL DE TIPOGRAFÍA === */

/* --- 1. Definimos Heuvel Grotesk --- */
@font-face {
  font-family: 'Heuvel Grotesk';
  src: url('../fonts/HeuvelGroteskDEMO-Regular-BF674fe9fb56512.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF;
  font-display: swap;
}
@font-face {
  font-family: 'Heuvel Grotesk';
  src: url('../fonts/HeuvelGroteskDEMO-Medium-BF674fe9fb4d257.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF;
  font-display: swap;
}
@font-face {
  font-family: 'Heuvel Grotesk';
  src: url('../fonts/HeuvelGroteskDEMO-MedIta-BF674fe9fb4a852.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF;
  font-display: swap;
}
@font-face {
  font-family: 'Heuvel Grotesk';
  src: url('../fonts/AnyConv.com__HeuvelGroteskDEMO-SemiBold-BF674fe9fb5ce44.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF;
  font-display: swap;
}

/* --- 2. Aplicamos la combinación de fuentes --- */
body, h1, .mil-h1, h2, .mil-h2, h3, .mil-h3, h4, .mil-h4, h5, .mil-h5, h6, .mil-h6 {
  font-family: 'Heuvel Grotesk', 'Outfit', sans-serif;
}

/* --- 3. Asignamos los pesos por defecto --- */
body {
  font-weight: 500;
}
h1, .mil-h1, h2, .mil-h2, h3, .mil-h3, h4, .mil-h4, h5, .mil-h5, h6, .mil-h6 {
  font-weight: 600;
}
/* === FIN: SOLUCIÓN GLOBAL === */


/* === Animal Libre — Overrides de color y Elementos UI === */
:root {
  --al-accent: #7E17BE;
  --al-accent-20: rgba(126, 23, 190, 0.20);
  --al-accent-10: rgba(126, 23, 190, 0.10);
  --al-color-1: #7E17BE;
  --al-color-2: #E93B24;
  --al-purple: #7E17BE;
}
/* Utility para fondo suave (Isla Visual) */
.mil-soft-bg {
    background-color: #f9f9f9 !important;
}
/* Utilities de espaciado custom para dar "aire" */
.mil-p-120-120 { padding-top: 120px; padding-bottom: 120px; }
.mil-p-120-0 { padding-top: 120px; padding-bottom: 0px; }
.mil-p-90-60 { padding-top: 90px; padding-bottom: 60px; }

.mil-button,
.mil-button.mil-icon-button-sm,
.mil-services-button,
.mil-icon-button,
.mil-icon-button-sm {
  background-color: var(--al-accent) !important;
  border-color: var(--al-accent) !important;
  color: #fff !important;
}
.mil-button:hover,
.mil-services-button:hover,
.mil-icon-button:hover,
.mil-icon-button-sm:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.mil-button:focus,
.mil-link:focus,
a:focus {
  outline: 2px solid var(--al-accent) !important;
  outline-offset: 2px;
}
.mil-label.mil-accent,
.mil-accent {
  background-color: var(--al-accent) !important;
  color: #fff !important;
}
.mil-link.mil-dark.mil-arrow-place::after,
.mil-link.mil-muted.mil-arrow-place::after,
.mil-arrow-place::after {
  color: var(--al-accent) !important;
  border-color: var(--al-accent) !important;
}
.mil-progress,
.mil-quote-icon,
.mil-lines .mil-move,
.mil-animation,
.mil-ball svg path {
  stroke: var(--al-accent) !important;
  fill: var(--al-accent) !important;
}
.mil-gradient {
  background: radial-gradient(60% 60% at 70% 30%, var(--al-accent-20) 0%, transparent 60%),
    linear-gradient(180deg, var(--al-accent-10) 0%, transparent 60%);
}
.mil-service-card-sm:hover,
.mil-team-card:hover {
  box-shadow: 0 8px 24px var(--al-accent-20) !important;
  transform: translateY(-2px);
}
.swiper-pagination-bullet-active,
.mil-revi-pagination .swiper-pagination-bullet-active {
  background: var(--al-accent) !important;
}
.mil-slider-arrow,
.mil-reviews-nav .mil-slider-arrow {
  border-color: var(--al-accent) !important;
  color: var(--al-accent) !important;
}
.mil-slider-arrow:hover {
  background: var(--al-accent) !important;
  color: #fff !important;
}
.mil-social-icons a:hover {
  color: var(--al-accent) !important;
}
.mil-label {
  border-color: var(--al-accent) !important;
}
input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--al-accent) !important;
  box-shadow: 0 0 0 3px var(--al-accent-10) !important;
}

/* --- CORRECCIÓN CRÍTICA DE FLECHAS --- */
.mil-arrow path {
  fill: var(--al-accent);
  transition: fill 0.3s ease;
}
.mil-circle-text .mil-arrow,
.mil-circle-text .mil-arrow path {
    fill: #ffffff !important;
    stroke: none !important;
    opacity: 1 !important;
    display: block !important;
}
.mil-button .mil-arrow path,
.mil-icon-button .mil-arrow path {
    fill: #ffffff !important;
    stroke: none !important;
}

.mil-main-menu .mil-active>a,
.mil-footer-menu .mil-active>a {
  color: var(--al-accent) !important;
}
.mil-divider {
  background: var(--al-accent-10) !important;
}
.mil-dark-bg a.mil-link,
.mil-dark-bg .mil-link {
  color: var(--al-accent) !important;
}
.mil-dark-bg .mil-link:hover {
  filter: brightness(1.1);
}
ul li::marker {
  color: var(--al-accent);
}
[class*="accent"],
[class^="accent"] {
  color: var(--al-accent) !important;
}
::selection {
  background: var(--al-accent);
  color: #fff;
}
.mil-progress-track .mil-progress {
  background-color: #7E17BE !important;
}
.mil-service-card-sm::before,
.mil-service-card-sm::after {
  border-color: #7E17BE !important;
  background: #7E17BE !important;
}
.mil-button.mil-icon-button-sm,
.mil-button.mil-icon-button-sm svg,
.mil-button.mil-icon-button-sm svg * {
  background-color: #7E17BE !important;
  fill: #fff !important;
}
.mil-service-card-sm:hover {
  box-shadow: 0 -4px 0 0 #7E17BE inset !important;
}
.fancybox__container .fancybox__nav .fancybox__button,
.fancybox__container .is-closebtn {
  color: #7E17BE !important;
  border-color: #7E17BE !important;
}
.mil-preloader .mil-reveal-frame,
.mil-preloader .mil-reveal-frame::before,
.mil-preloader .mil-reveal-frame::after {
  border-color: #7E17BE !important;
}
.mil-frame {
  z-index: 5 !important;
}

/* --- HEADER Y LOGOS --- */
.mil-logo img {
  filter: none !important;
  mix-blend-mode: normal !important;
}
.mil-frame-top .mil-logo img {
  height: 56px !important;
  width: auto !important;
  display: block;
}
@media (max-width: 1200px) {
  .mil-frame-top .mil-logo img {
    height: 38px !important;
  }
}
.mil-logo {
  font-size: 0 !important;
  line-height: 0 !important;
}
.mil-frame-top .mil-logo {
  color: transparent !important;
}
.mil-frame-top {
  align-items: center;
}
.al-logo {
  display: block;
  height: 44px;
  max-height: 44px;
  width: auto;
}
.al-purple {
  color: var(--al-purple) !important;
}
#hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
}
.mil-menu-btn span,
.mil-menu-btn span::before,
.mil-menu-btn span::after {
  background-color: var(--al-purple) !important;
}
.mil-logo img.al-logo {
  filter: none !important;
  opacity: 1 !important;
}
#about-rotator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .8s ease;
  opacity: 1;
}
#about-rotator.is-fading {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  #about-rotator {
    transition: none;
  }
}
.mil-logo {
  font-size: 0 !important;
  line-height: 1 !important;
  height: auto !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}
.mil-logo img,
.al-logo,
.mil-frame-top .mil-logo img,
.mil-menu-frame .mil-logo img {
  height: 88px !important;
  width: auto !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
}
@media (min-width: 1400px) {
  .mil-logo img,
  .al-logo {
    height: 100px !important;
  }
}
@media (max-width: 767px) {
  .mil-logo img,
  .al-logo {
    height: 64px !important;
  }
}
.mil-frame-top,
.mil-menu-frame .mil-frame-top {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
.mil-img-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 100%;
}
.mil-up h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.mil-up p {
  font-size: 1.2rem;
  line-height: 1.6;
}
@media screen and (max-width: 992px) {
  .mil-up h2 {
    font-size: 3rem;
  }
}
.mil-preloader .mil-preloader-animation .mil-animation-2 {
    transform: none;
    opacity: 1;
    transition: opacity 1s ease-in;
    transition-delay: 2s;
}
.mil-preloader .mil-reveal-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}
.mil-preloader .mil-reveal-box {
    display: none !important;
}
.mil-preloader .mil-reveal-frame p {
    font-size: 2.2rem !important;
    font-weight: 400;
    text-transform: uppercase;
}
.al-golondrina-vuela {
    z-index: 10;
    position: absolute;
    width: 60px;
    opacity: 0;
    animation: flyOverText 2.5s ease-out forwards;
    animation-delay: 2s;
}
@keyframes flyOverText {
    0% { transform: translate(-150px, 30px) scale(0.5); opacity: 0; }
    50% { transform: translate(-30px, -20px) scale(1); opacity: 1; }
    100% { transform: translate(30px, -30px) scale(1); opacity: 1; }
}
@media (max-width: 992px) {
    .al-golondrina-vuela {
        width: 40px;
        animation: flyOverTextMobile 2.5s ease-out forwards;
        animation-delay: 2s;
    }
    @keyframes flyOverTextMobile {
        0% { transform: translate(-80px, 10px) scale(0.5); opacity: 0; }
        50% { transform: translate(-10px, -30px) scale(1); opacity: 1; }
        100% { transform: translate(15px, -20px) scale(1); opacity: 1; }
    }
}
.mil-infinite-show .mil-partner-frame {
    display: flex; justify-content: center; align-items: center; height: 100%;
}
.mil-infinite-show .mil-partner-frame img {
    max-height: 60px; max-width: 180px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease;
}
.mil-infinite-show .mil-partner-frame:hover img {
    filter: grayscale(0%); opacity: 1; transform: scale(1.1);
}
@media (max-width: 767px) {
    .mil-infinite-show .mil-partner-frame img {
        max-height: 40px; max-width: 120px;
    }
}
/* GRADIENTES Y ANIMACIONES DE TEXTO */
.al-gradient-text{
  --g1: var(--al-accent, #7E17BE); --g2: #E93B24; background: linear-gradient(100deg, var(--g1) 0%, var(--g2) 55%, var(--g1) 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent; background-size: 200% 100%; background-position: 0% 0;
}
@keyframes alGradientBreath {
  0%   { background-position:   0% 0; } 50%  { background-position: 100% 0; } 100% { background-position:   0% 0; }
}
.al-gradient-text.is-alive { animation: alGradientBreath 8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){
  .al-gradient-text.is-alive { animation: none; }
}
.al-gradient-text.al-motion-force.is-alive { animation: alGradientBreath 8s ease-in-out infinite !important; }
[data-anim="title"]{
  --al-reveal: 0%; -webkit-mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0) 100%); -webkit-mask-size: 100% var(--al-reveal); mask-size: 100% var(--al-reveal); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; will-change: opacity, transform, -webkit-mask-size, mask-size;
}
[data-anim="title"].al-title-init{
  opacity: 0; transform: translateY(14px); -webkit-mask-size: 100% 0%; mask-size: 100% 0%;
}
[data-anim="title"].al-title-in-slow{
  opacity: 1; transform: translateY(0); -webkit-mask-size: 100% 120%; mask-size: 100% 120%; transition: -webkit-mask-size 1.55s cubic-bezier(.2,.7,.2,1), mask-size 1.55s cubic-bezier(.2,.7,.2,1), opacity .7s ease, transform .7s ease;
}
.mil-counter{ font-variant-numeric: tabular-nums; }

/* === AJUSTES DE CONTRASTE EN HERO BANNER === */
.mil-banner .mil-video-overlay {
    background-color: rgba(0, 0, 0, 0.65) !important;
}
.mil-banner .mil-light-soft {
    color: rgba(255, 255, 255, 0.85);
}

/* === INICIO: Estilos para animación 15 Años (FINAL) === */
#al-15-anos-svg {
  height: 80px;
  width: auto;
  margin-left: -2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: visible;
  transform: translateY(7px);
}
#text-15-anos {
  fill: url(#al-text-gradient);
  clip-path: inset(0 100% 0 0);
}
#text-15-anos tspan:first-child {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 600;
}
#text-15-anos tspan:last-child {
  font-family: 'Heuvel Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
}
@media (max-width: 768px) {
  #al-15-anos-svg {
    display: none;
  }
}

/* === INICIO: Animación Hover para Logo Golondrina (v3 - Partículas) === */
.mil-frame-top .mil-logo,
.mil-menu-frame .mil-logo {
  transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}
.mil-menu-frame .mil-logo:hover {
  filter: drop-shadow(0 0 12px var(--al-accent));
  transform: scale(1.05);
}
.mil-frame-top .mil-logo:hover {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  transform: scale(1.05) translateY(-2px);
}
.mil-logo {
  position: relative;
}
.al-particle {
  position: absolute;
  top: 50%;
  left: 25%; 
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation-duration: 1.6s;
  animation-timing-function: cubic-bezier(0.1, 0.8, 0.7, 1);
  animation-fill-mode: forwards;
}
.al-particle:nth-child(1), .al-particle:nth-child(5) { background-color: #7E17BE; }
.al-particle:nth-child(2), .al-particle:nth-child(6) { background-color: #E93B24; }
.al-particle:nth-child(3), .al-particle:nth-child(7) { background-color: #F3F3F3; }
.al-particle:nth-child(4), .al-particle:nth-child(8) { background-color: #7E17BE; }
.al-particle:nth-child(1) { width: 5px; height: 5px; animation-delay: 0s; }
.al-particle:nth-child(2) { width: 3px; height: 3px; animation-delay: 0.2s; }
.al-particle:nth-child(3) { width: 4px; height: 4px; animation-delay: 0.1s; }
.al-particle:nth-child(4) { width: 5px; height: 5px; animation-delay: 0.3s; }
.al-particle:nth-child(5) { width: 3px; height: 3px; animation-delay: 0.45s; }
.al-particle:nth-child(6) { width: 4px; height: 4px; animation-delay: 0.25s; }
.al-particle:nth-child(7) { width: 3px; height: 3px; animation-delay: 0.35s; }
.al-particle:nth-child(8) { width: 5px; height: 5px; animation-delay: 0.15s; }

.mil-logo:hover .al-particle:nth-child(1) { animation-name: path-1; }
@keyframes path-1 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(-35px, -60px) scale(0); } }
.mil-logo:hover .al-particle:nth-child(2) { animation-name: path-2; }
@keyframes path-2 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(50px, -40px) scale(0); } }
.mil-logo:hover .al-particle:nth-child(3) { animation-name: path-3; }
@keyframes path-3 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(-20px, 50px) scale(0); } }
.mil-logo:hover .al-particle:nth-child(4) { animation-name: path-4; }
@keyframes path-4 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(30px, 60px) scale(0); } }
.mil-logo:hover .al-particle:nth-child(5) { animation-name: path-5; }
@keyframes path-5 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(-60px, 0px) scale(0); } }
.mil-logo:hover .al-particle:nth-child(6) { animation-name: path-6; }
@keyframes path-6 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(60px, 20px) scale(0); } }
.mil-logo:hover .al-particle:nth-child(7) { animation-name: path-7; }
@keyframes path-7 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(-50px, -20px) scale(0); } }
.mil-logo:hover .al-particle:nth-child(8) { animation-name: path-8; }
@keyframes path-8 { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(20px, -50px) scale(0); } }

.skip-link{position:absolute;top:-40px;left:0;background:#000;color:#fff;padding:8px 12px;z-index:1000;clip-path:inset(0 round 4px)}
.skip-link:focus{top:10px;outline:2px solid #fff}

/* === INICIO: Estilos para Showcase Interactivo (TIENDA SOLIDARIA) === */
.al-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.al-showcase__item {
    position: relative;
    display: block;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #e0e0e0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.al-showcase__item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}
.al-showcase__image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.al-showcase__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(126, 23, 190, 0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.al-showcase__item:hover .al-showcase__image-wrapper::after {
    opacity: 1;
}
.al-showcase__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.al-showcase__item:hover .al-showcase__image {
    transform: scale(1);
}
.al-showcase__title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.al-showcase__item:hover .al-showcase__title {
    opacity: 0;
    transform: translateY(10px);
}
.al-showcase__details {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.al-showcase__item:hover .al-showcase__details {
    opacity: 1;
    transform: translateY(0);
}
.al-showcase__details p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
/* --- Badge 'Disponible' mejorado --- */
.al-showcase__details-link {
    display: inline-block;
    background-color: #fff;
    color: var(--al-accent, #7E17BE);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.al-showcase__details-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: var(--al-accent, #7E17BE);
}

.al-showcase__cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    background-color: #fff;
    border: 2px dashed var(--al-accent-20);
    height: 420px;
}
.al-showcase__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: 50px;
    background-color: var(--al-accent, #7E17BE);
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.al-showcase__cta:hover {
    background-color: transparent;
    color: var(--al-accent, #7E17BE) !important;
    border-color: var(--al-accent, #7E17BE);
    transform: translateY(-3px) scale(1.05);
}
@media (max-width: 992px) {
    .al-showcase__item:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
    .al-showcase__title { 
        opacity: 0;
        pointer-events: none;
    }
    .al-showcase__image-wrapper::after {
        opacity: 1;
    }
    .al-showcase__details { 
        opacity: 1; 
        transform: none;
    }
    
    .al-showcase-grid {
        gap: 30px;
    }
}

/* === AJUSTES DE BORDES REDONDEADOS === */
.mil-blog-card .mil-cover-frame,
#acerca-de .mil-img-frame {
    border-radius: 20px;
}

/* === AJUSTES NEWSLETTER Y VIDEO (ACTUALIZADO) === */
#newsletter-section {
    position: relative;
    overflow: hidden;
}
/* Forzamos que el video wrapper se comporte como fondo absoluto */
#newsletter-section .mil-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
/* Overlay para asegurar legibilidad del texto */
#newsletter-section .mil-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65) !important;
    z-index: 1;
    pointer-events: none;
}
/* El contenido debe estar por encima del video y el overlay */
#newsletter-section .container {
    position: relative;
    z-index: 2;
}

#newsletter-section .mil-mb-20 {
    margin-bottom: 30px !important;
}
#newsletter-section .mil-mb-40 {
    margin-bottom: 50px !important;
}
.al-video-container-vertical {
    position: relative;
    width: 100%;
    padding-bottom: 140%; 
    overflow: hidden;
    border-radius: 16px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.al-video-container-vertical iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    height: 140%;
    width: 250%; 
}
.al-video-container-vertical::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: transparent;
}

/* === INICIO: ESTILOS MEJORADOS PARA EL FOOTER === */
footer .mil-footer-menu,
footer .al-social-list-vertical {
    display: none;
}

.al-footer-logo img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.al-footer-logo:hover img {
    opacity: 1;
}

/* Estilos para la lista de redes sociales horizontal */
.al-social-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.al-social-horizontal li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.al-social-horizontal li a:hover {
    color: #fff !important;
    background-color: var(--al-accent);
    border-color: var(--al-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(126, 23, 190, 0.3);
}

/* Estilos para la navegación principal del footer */
.al-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.al-footer-nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.al-footer-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(100deg, var(--al-accent, #7E17BE) 0%, #E93B24 100%);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.al-footer-nav ul li a:hover {
    color: #fff !important;
}

.al-footer-nav ul li a:hover::after {
    width: 100%;
}

/* Ajustes responsivos para el footer */
@media (max-width: 992px) {
    .al-social-horizontal {
        justify-content: flex-start;
    }
    .al-footer-nav ul {
        justify-content: flex-start;
    }
    footer .mil-adaptive-right {
      justify-content: flex-start;
    }
}
@media (max-width: 767px) {
    .al-footer-logo {
        display: block;
        text-align: center;
        margin-bottom: 30px;
    }
     .al-social-horizontal {
        justify-content: center;
    }
    .al-footer-nav ul {
        justify-content: center;
        text-align: center;
        gap: 10px 20px;
    }
    .row.justify-content-between {
        text-align: center;
    }
    footer .mil-adaptive-right {
      text-align: center;
      justify-content: center;
    }
}

/* === FIN: ESTILOS MEJORADOS PARA EL FOOTER === */

/* === CORRECCIÓN VISUAL FOOTER === */
footer, .mil-footer, footer.mil-dark-bg {
    border-top: none !important;
}
.mil-divider {
    display: none !important;
}

/* === INICIO: ESTILOS PÁGINA DE PROYECTOS === */
.al-project-card {
  border-top: 1px solid var(--al-accent-10);
}
.al-project-card:first-of-type {
  border-top: none;
}
.al-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.al-project-card__tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--al-accent-10);
  border: 1px solid var(--al-accent-20);
  color: var(--al-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}
.al-project-card h2 {
    line-height: 1.2;
}
.al-project-card h4 {
    color: #555;
    line-height: 1.4;
}
@media (max-width: 992px) {
  .al-project-card .row {
    text-align: center;
  }
  .al-project-card__tags {
    justify-content: center;
  }
  .al-project-card .al-video-container-vertical {
    margin-top: 40px;
  }
  .al-project-card .row.flex-row-reverse > div:first-child {
    order: 2;
  }
  .al-project-card .row.flex-row-reverse > div:last-child {
    order: 1;
  }
}
/* === FIN: ESTILOS PÁGINA DE PROYECTOS === */

/* === INICIO: SOLUCIÓN PARPADEO === */
@keyframes al-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body.al-no-js-anim .mil-up {
    animation: al-fade-in-up 0.8s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    transition: none !important;
}
/* === FIN: SOLUCIÓN PARPADEO === */

/* === INICIO: ESTILOS PARA MOSAICO DE ACCESO RÁPIDO === */
.al-quick-nav-mosaic {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.al-quick-nav__item {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--al-accent-20);
    border-radius: 50px;
    background-color: transparent;
    color: #505050;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.al-quick-nav__item:hover {
    background-color: var(--al-accent-10);
    color: var(--al-accent) !important;
    border-color: var(--al-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--al-accent-20);
}

/* ========================================================
   SECCIÓN IMPACTO (CORREGIDA v3.0 - Container Std & Hover)
   ======================================================== */
#impact-section .mil-service-card-sm h5.mil-counter {
    font-family: 'Outfit', sans-serif, system-ui;
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 10px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                color 0.3s ease, 
                text-shadow 0.3s ease;
    white-space: nowrap;
}
#impact-section .mil-service-card-sm p.mil-light-soft {
    font-size: 1.1rem !important;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.4s ease;
    margin-bottom: 0 !important;
    position: relative; 
    z-index: 2;
    /* Ajustes para efecto de aparición */
    opacity: 0;
    transform: translateY(10px);
}
#impact-section .mil-service-card-sm {
    cursor: default;
    padding: 20px 10px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    /* FIX: Permitir que el contenido (texto) sobresalga y sea visible */
    overflow: visible !important;
}
#impact-section .mil-service-card-sm:hover h5.mil-counter {
    transform: scale(1.1) translateY(-5px);
    color: var(--al-accent) !important;
    text-shadow: 0 0 25px rgba(126, 23, 190, 0.6);
}
#impact-section .mil-service-card-sm:hover p.mil-light-soft {
    color: #ffffff !important; 
    opacity: 1;
    font-size: 1.15rem !important;
    transform: translateY(0);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
@media (max-width: 1200px) {
    #impact-section .mil-service-card-sm h5.mil-counter { 
        font-size: 2.5rem !important; 
    }
}
@media (max-width: 992px) {
    #impact-section .mil-service-card-sm h5.mil-counter { 
        font-size: 2.8rem !important; 
    }
}
@media (max-width: 767px) {
    #impact-section .mil-service-card-sm h5.mil-counter { 
        font-size: 3.5rem !important; 
    }
    #impact-section .mil-service-card-sm { 
        padding: 30px 20px; 
    }
}

/* ========================================================
   ESTILOS MANIFIESTO BLOG / PRÓXIMAMENTE (FINAL)
   ======================================================== */
.al-teaser-card {
    cursor: default;
}
.al-card-vertical {
    padding-bottom: 135% !important;
    height: 0;
    overflow: hidden;
    position: relative;
}
.al-card-vertical img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}
.al-teaser-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}
.al-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.al-min-icon {
    color: var(--al-accent);
    font-size: 1.8rem;
}
.al-teaser-card:hover .al-teaser-overlay {
    background-color: rgba(126, 23, 190, 0.25);
}
.al-teaser-card:hover .al-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(126, 23, 190, 0.3);
}
.al-btn-coming-soon {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    background-color: var(--al-accent-10);
    border: 1px solid var(--al-accent-20);
    color: var(--al-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ==========================================================================
   MODIFICACIONES ESPECÍFICAS: MENÚ DESPLEGABLE (NAVBAR)
   ========================================================================== */
.mil-main-menu ul li a {
    transition: color 0.3s ease;
}
.mil-main-menu ul li a:hover,
.mil-main-menu .mil-active > a {
    color: var(--al-accent) !important;
}
.mil-menu-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    text-align: right;
}
.al-menu-15-years h3 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
    font-family: 'Heuvel Grotesk', sans-serif;
}
.al-menu-socials {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
}
@media (max-width: 992px) {
    .mil-menu-right {
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        margin-top: 40px;
    }
    .al-menu-15-years h3 {
        font-size: 2rem;
    }
    .al-menu-socials {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

/* ==========================================================================
   SECCIÓN: QUIÉNES SOMOS (ESTILOS ESPECÍFICOS)
   ========================================================================== */

/* --- 1. Hero & Ajustes Generales --- */
.al-hero-quienes-somos .mil-banner-content {
    position: relative;
    z-index: 5;
}

/* --- 2. Tarjetas Misión y Visión --- */
.al-mv-card {
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.al-mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(126, 23, 190, 0.1);
    border-color: var(--al-accent-20);
}

.al-mv-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* --- 3. Historia: Imágenes --- */
.al-history-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

/* Efecto sutil al hacer hover sobre la imagen */
.al-history-img-wrapper:hover {
    transform: scale(1.02);
}

/* --- 4. Áreas de Acción (Ex-Trípode) & Tarjetas de Proyectos --- */
/* Estas clases se usan tanto en Quienes Somos como en Proyectos */
.al-impact-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* EL BORDE SUPERIOR VIOLETA (Jerarquía) */
    border-top: 4px solid var(--al-accent);
    height: 100%;
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.al-impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* Al hacer hover, el borde superior se integra o brilla (opcional, dejamos que destaque) */
}

.al-impact-card__icon {
    font-size: 2.5rem;
    color: var(--al-accent);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.al-impact-card:hover .al-impact-card__icon {
    transform: scale(1.2);
    color: #E93B24; /* Cambio de color al secundario en hover */
}

/* --- 5. Títulos GIGANTES (.al-huge-title) --- */
.al-huge-title {
    font-size: 4.5rem !important; /* Forzamos tamaño gigante */
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}
@media (max-width: 992px) {
    .al-huge-title {
        font-size: 3rem !important;
    }
}


/* --- 6. Grid del Equipo (NUEVO) --- */
.al-team-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    will-change: transform, opacity; /* Optimización para evitar LAG */
}

.al-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--al-accent-20);
}

.al-team-img {
    width: 100%;
    height: 320px; /* Altura fija para uniformidad */
    overflow: hidden;
    position: relative;
}

.al-team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Enfoca las caras */
    transition: transform 0.6s ease;
    filter: grayscale(20%); /* Un toque desaturado elegante por defecto */
}

.al-team-card:hover .al-team-img img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.al-team-info {
    padding: 25px 20px;
    text-align: center;
}

.al-team-info h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

.al-role {
    display: block;
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

/* Botón de Contacto en Tarjeta */
.al-team-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--al-accent);
    background-color: rgba(126, 23, 190, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.al-team-mail i {
    font-size: 0.9rem;
}

.al-team-mail:hover {
    background-color: var(--al-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 23, 190, 0.3);
}

/* --- BOTONES CTA DE PIE DE PAGINA (Flexbox) --- */
.al-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Ajustes Responsivos Equipo */
@media (max-width: 768px) {
    .al-team-img {
        height: 350px; /* Más alto en móvil para lucir la foto */
    }
}