*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root{
    --primary-blue: #0b2560;
    --secondary-blue: #173b8f;
    --primary-red: #c73027;
    --secondary-red: #f82a20;
    --primary-gray: #656565;
    --primary-font:'Roboto', sans-serif;
    --primary-white: #eee;
    --secondary-white: #d7d5d5;
    --primary-blackblue: #22252d;
    --secondary-blackblue: #4e4e4e;
}

html, body {
    overflow-x: hidden;
}

/* Chrome, Edge y Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-blue);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Firefox */
* {
  
  scrollbar-color: var(--secondary-blue) #fff;
}

body {
  margin: 0;
  font-family: var(--primary-font);
}

/* icon whatsapp*/
/* Botón flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 9999;

  animation:
    appear 0.6s ease forwards,
    vibrate 5s infinite 2s;
}

/* Círculo */
.whatsapp-inner {
  width: 65px;
  height: 65px;
  background: var(--secondary-blue);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover */
.whatsapp-inner:hover {
  transform: scale(1.15);
  background: var(--primary-blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Imagen */
.whatsapp-inner img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Aparición */
@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.7);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Vibración suave */
@keyframes vibrate {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  2% {
    transform: translateX(-3px) rotate(-4deg);
  }

  4% {
    transform: translateX(3px) rotate(4deg);
  }

  6% {
    transform: translateX(-3px) rotate(-4deg);
  }

  8% {
    transform: translateX(3px) rotate(4deg);
  }

  10% {
    transform: translateX(0) rotate(0deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}
/* fin icon whatsapp */

button h3{
    font-family: var(--primary-font);
}


/* Ajustes generales */
.width-xl{
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.padding-xl{
    padding: 15px 35px;
}

.margin-xl{
    margin: 100px 0;
}

@media(max-width: 600px){
    .margin-xl{
        margin: 80px 0;
    }

    .padding-xl{
        padding: 20px 25px;
    }
}

h2{
    font-size: 2rem;
    color: var(--primary-blackblue);
    line-height: 2.7rem;
}

.blue h3{
    font-size: 2rem;
}
h1 span, h2 span{
    color: var(--primary-red);
}

p{
    color: var(--secondary-blackblue);
    line-height: 1.5rem;
   
}

@media(max-width: 600px){
    h2{
        font-size: 1.5rem;
        line-height: 2.3rem;
    }

    .blue h3{
        font-size: 1.5rem;
    }

    p{
        font-size: 14px;
    }
}

/* NAVBAR BASE */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 1000;
  transition: background-color 0.4s ease;
  
}

.navbar.menu-active {
    background: #fff;
}

.navbar-into{
display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  
}


/* TRANSPARENTE INICIAL */

.navbar.transparent {
  background: transparent;
}

/* FONDO BLANCO AL SCROLL */

.navbar.scrolled {
  background: white;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}



/* LEFT SIDE */

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration:none ;
  
}

.logo{
    display:none;
}


.logo , .logo-contorno{
  height: 50px;
}



.hidden{
    display: none;
}

.logo.visible{
    display:flex;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.line1 {
  font-weight: bold;
  font-size: 18px;
  color: white;
}

.line2 {
  font-size: 14px;
  color: rgb(198, 198, 198);
}

@media(max-width: 600px){
    .logo , .logo-contorno{
  height: 40px;
}

.line1{
    font-size: 16px;
   
}
}

/* Configuracion para que funcione el hero con navbar transparente*/

.nav-left.reverse .logo-text .line1 {
    color: var(--primary-blue);
}

.nav-left.reverse .logo-text .line2 {
    color: var(--primary-red);
}

/* Configuracion por si se abre el menu en mobile*/

.navbar-into.menu-open .nav-left .logo-text .line1 {
    color: var(--primary-blue);
}

.navbar-into.menu-open .nav-left .logo-text .line2 {
    color: var(--primary-red);
}

/* CENTER SIDE */

.nav-center {
  display: flex;
  gap: 30px;
}

.nav-center a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.2s;
  position: relative;
    padding-bottom: 5px;

}

.nav-center.reverse a{
    color:  var(--primary-blue);
}

/* Configuracion para que los colores funcionen cuando se abre el menu en mobile*/
.navbar-into.menu-open .nav-center a{
    color: var(--primary-blue);
}


/* Mantener activo la opcion*/
.nav-center a.active{
    color: var(--primary-red);
}


.nav-center a.active::after{
    transform: scaleX(1);
}


.nav-center a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -5px;
  width: calc(100% + 10px);
  height: 3px;
  background: var(--primary-red);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Animación al hover */
.nav-center a:hover::after {
  transform: scaleX(1);
}


.nav-center a:hover {
  color: var(--primary-red);
}

/* Right Side*/

.nav-right{
    display: flex;
    align-items: center;
    
}
.nav-right a{
    text-decoration: none;
    display: flex;
    gap: 10px;
    align-items: center;
    height: 42px;
    background-color: var(--secondary-blue);
    color: var(--primary-white);
    padding: 0px 30px;
}

.nav-right a p{
    margin: 0;
    font-size: 15px;
    margin-top: 1px;
    color: var(--primary-white);
}

.nav-right a img{
    width: 15.5px;
}

/* Hover y animaciones boton del nav*/

.nav-right a:hover{
    transform: scale(105%);
    background-color: var(--primary-red);
    transition: transform 0.3s ease;
}


/* Activamos animación en hover del telefono */
.nav-right a:hover img{
    transition: transform 0.3s ease;
}

.nav-right a:hover img {
  animation: vibrar 0.6s ease-in-out;
}

/* Keyframes */
@keyframes vibrar {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-10deg); }
  40%  { transform: rotate(10deg); }
  60%  { transform: rotate(-8deg); }
  80%  { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

/*Navbar mobile*/

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-white);
  transition: 0.3s;
}

.menu-open .menu-toggle span{
    background: var(--primary-blue);
}


.navbar-into.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-into.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar-into.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE */
@media (max-width: 800px) {

  .nav-center{
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
   
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-bottom: 25px;
    padding-top: 20px;

    transform: translateY(-200%);
    transition: 0.3s ease;
    z-index: -1;
   
  }

  .nav-right {
    position: absolute;
    display: flex;
    justify-content: center;
    top: 273px;
    left: 0;
    width: 100%;
    transform: translateY(-800%);
    transition: 0.3s ease;
    z-index: -1;
  }


  .nav-center.active, .nav-right.active {
    transform: translateY(0);
    background-color: white;
  }

  .nav-right.active {
    padding: 25px 0;
  }

  /* configuracion para menu */

  .navbar-into.menu-open{
    background-color: white;
  }

  .menu-toggle {
    display: flex;
  }

  
.menu-toggle.white-burguer span {
  
  background: var(--primary-blue);
 
}

  
}


/* SOLO PARA PROBAR SCROLL */

.dummy {
  height: 200vh;
 
}


/* Footer */

.footer {
  background-color: #0b2560;
  color: var(--primary-white);
  padding-top: 60px;
  padding-bottom: 30px;
  position: relative;

  background-image: url("../assets/footer_fondo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.footer p{
    color: var(--primary-white);
}

/* Overlay para controlar opacidad */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 96, 0.40);
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
  padding-bottom: 55px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}



/* Columnas */
.footer-column {
  display: flex;
  flex-direction: column;
}

/* Divisores verticales */
.footer-column:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-right: 20px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-column h3 {
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column a {
  color: #eee;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #c73027;
}

/* Address */
.address p{
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.address img{
    width: 20px;
    margin-right: 10px;
}

/* Social */
.social-links {
  display: flex;
  gap: 25px;
}

.social-links img {
  width: 22px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.2);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}




.footer-retro{
    position: absolute;
    bottom: 0;
    left: -80px; /* empieza fuera de pantalla */
    width: 65px;
    transform: scaleX(-1);
    animation: retroMove 20s linear infinite;
}

@keyframes retroMove {
    from {
        left: -80px;
    }
    to {
        left: 100%;
    }
}



/* Footer responsive*/
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-column {
    border-right: none !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .social-links{
    margin-bottom: 20px;
    gap: 35px;
  }

  .social-links img{
    width: 30px;
  }
}

/* Top Title */
.top-title{
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
  
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.top-title img{
    width: 20px;
    margin-top: -1px;
}



/* CTA Section */

.cta-container{
  
    min-height: 569px;
   position: relative;
   display: flex;
   align-items: center;
 
}

.cta-container-img{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    
    transition: all 1s ease;
}

.cta-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
      background: linear-gradient(
    to bottom,
     rgba(8, 26, 69, 0.75),
    rgba(8,26,69,0.65),
    rgba(8,26,69,0.55),
    rgba(8,26,69,0.45)
  );
    z-index: 1;

    opacity: 0;
    transition: opacity 1.2s ease;
}


.cta-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.cta-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 60%;
    gap: 50px;
}

.cta-title{
    text-align: center;
    
}

.cta-title h2{
    color: var(--primary-white);
    margin-bottom: 50px;
    font-size: 40px;
}

.cta-title p{
    color: var(--secondary-white);
    font-size: 18px;
}
.cta-btns{
    display: flex;
    width: 80%;
    gap: 30px;
}

.cta-btns .hero-btn{
    transition: all 0.5s ease;
}


@media(max-width:1000px){
    .cta-content2{
        max-width: 100%;
        padding: 20px;
        gap: 50px;
    }

    .cta-title h2{
        margin-bottom: 50px;
    }
}



@media(max-width: 950px){
    .cta-btns{
        flex-direction: column;
    }

    .cta-btns .hero-btn{
        width: 100%;
    }

    .cta-container{

    min-height: 700px;
 }

 .cta-content{
         max-width: 75%;
    }


}


@media(max-width: 700px){
    .cta-btns{
        width: 100%;
    }

     .cta-title h2{
        font-size: 32px;
    }

    .cta-content{
         max-width: 85%;
    }
}

/* Cta Animation*/
/* Estado inicial (oculto) */
.cta-content {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s ease;
}

.cta-container.show .cta-container-img{
    opacity: 1;
    transform: scale(1); /* zoom out suave */
}

.cta-container.show .cta-overlay{
    opacity: 1;
}

.cta-title h2,
.cta-title p,
.cta-btns a {
    opacity: 0;
    transform: translateY(30px);
}

/* Cuando aparece */
.cta-content.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animaciones escalonadas */
.cta-content.show .cta-title h2 {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.cta-content.show .cta-title p {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.cta-content.show .cta-btns a:nth-child(1) {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.cta-content.show .cta-btns a:nth-child(2) {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Keyframes */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.cta-btns .hero-btn:hover{
    transform: scale(1.05) !important;
    
}

/* Botones */

.hero-btn {
  background: var(--primary-red);
  padding:  17px 30px ;
  border-radius: 4px;
  transition: 0.3s;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-decoration: none;
   transition: transform 0.3s ease-in-out;
}


.hero-btn:nth-child(2) {
  background-color: var(--secondary-blue);
}

.hero-btn:nth-child(2):hover {
  transform: scale(1.05);
  background-color: var(--primary-blue);
}

.hero-btn:nth-child(1):hover {
  transform: scale(1.05);
  background-color: var(--secondary-red);
}

@media(max-width: 550px){

    .hero-btn{
        width: 100%;
    }
}

.hero-btn p{
    color: white;
   
    margin-bottom: 0;
}

.hero-btn:first-child img{
    width: 23px;
}

.hero-btn:last-child img{
    width: 18px;
}

/* Banner */

/* Banner */

.banner {
    position: relative;
    width: 100%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
   

}

/* Imagen fondo */
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

/* Overlay oscuro */
.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: var(--primary-blue);
    
}

/* Contenido centrado */
.banner-content {
    position: relative;
    z-index: 3;
   
    padding-top: 100px;
    padding-bottom: 50px;
}

/* Tipografía */
.banner-content h1 {
     font-size: 2.6rem;
    margin-bottom: 30px;
    color:var(--primary-white);
}

.banner-content p {
    font-size: 20px;
    
    color: var(--secondary-white);
}

/* Responsive */
@media (max-width: 768px) {
    .banner {
        min-height: 220px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
}

/* Mision y Vision Section*/

.mision-container{
    display: flex;
    gap: 50px;
}

.title-mision{
    display: flex;
    gap: 15px;
}

.title-mision img{
    width: 50px;
}

.mision-content{
    width:50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--secondary-white);
    border-radius: 10px;
    padding: 2rem;
}

@media(max-width: 800px){
    .mision-container{
        flex-direction: column;
    }

    .mision-content{
        width: 100%;
    }
}

/* Animacion Vision y Mision seccion*/
/* ========================= */
/* ESTADO INICIAL */
/* ========================= */

.mision-content{
    opacity:0;
    transition:
    opacity 1s ease,
    transform 1s cubic-bezier(.22,1,.36,1);
}

/* MISION */

.mision-content:first-child{
    transform:translateX(-80px);
}

/* VISION */

.mision-content:last-child{
    transform:translateX(80px);
}

/* ========================= */
/* SHOW */
/* ========================= */

.mision-content.show{
    opacity:1;
    transform:translateX(0);
}

/* ========================= */
/* ICONOS */
/* ========================= */

.title-mision img{
    transform:scale(.7) rotate(-8deg);
    opacity:0;
    transition:
    transform 1s ease,
    opacity 1s ease;
}

.mision-content.show .title-mision img{
    transform:scale(1) rotate(0deg);
    opacity:1;
}

/* ========================= */
/* TITULOS */
/* ========================= */

.title-mision h2{
    opacity:0;
    transform:translateY(25px);
    transition:
    opacity .8s ease,
    transform .8s ease;

    transition-delay:.2s;
}

.mision-content.show .title-mision h2{
    opacity:1;
    transform:translateY(0);
}

/* ========================= */
/* TEXTO */
/* ========================= */

.mision-content p{
    opacity:0;
    transform:translateY(35px);

    transition:
    opacity .9s ease,
    transform .9s ease;

    transition-delay:.35s;
}

.mision-content.show p{
    opacity:1;
    transform:translateY(0);
}

/* About Gallery */

.about-gallery{
    background-color: var(--primary-blue);
    position: relative;
}

.about-gallery-into{
   
    width: 100%;
    height: 700px;
    
}

.background-about-gallery{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

/* Prueba*/

:root {
  --clr-bg:        #0a0a0a;
  --clr-surface:   #111111;
  --clr-overlay:   rgba(0, 0, 0, 0.52);
  --clr-text:      #f0ece4;
  --clr-sub:       rgba(240, 236, 228, 0.55);
  --clr-accent:    #c73027;   /* dorado cálido, toque premium */

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', sans-serif;

  --radius:        14px;
  --gap:           14px;

  /* Altura de la cuadrícula desktop */
  --row-h-a:       340px;   /* fila superior */
  --row-h-b:       260px;   /* fila inferior */

  --transition:    0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ════════════════════════════════════════════════
   SECCIÓN PRINCIPAL
   ════════════════════════════════════════════════ */

.gallery-section{
    background: var(--primary-blue);
    padding-top: 70px;
    padding-bottom: 70px;
    position: relative;
}

.gallery-section-into{
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.gallery-section-into .top-title{
    color: var(--secondary-white);
   
}

.gallery-section-into h2{
    color: var(--primary-white);
    margin-bottom: 20px;
    
}

/* ── Encabezado ── */
.gallery-header {
  margin-bottom: 48px;
}

.gallery-label {
  display: inline-block;


  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}

.gallery-title {
  
  font-weight: 300;
  line-height: 1.05;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

.gallery-title em {
  font-style: italic;
  color: var(--clr-accent);
}

/* ════════════════════════════════════════════════
   TARJETA BASE
   ════════════════════════════════════════════════ */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  /* Clip para el zoom de imagen */
}

/* Imagen de fondo con cover */
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  will-change: transform;
}

/* Overlay negro con efecto fade desde abajo */
.card__overlay {
  position: absolute;
  inset: 0;
  /* Gradiente: completamente transparente arriba → opacidad 0.5 en centro → más denso abajo */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0)        0%,
    rgba(0, 0, 0, 0.05)    30%,
    rgba(0, 0, 0, 0.30)    60%,
    rgba(0, 0, 0, 0.60)    80%,
    rgba(0, 0, 0, 0.80)   100%
  );
  transition: opacity var(--transition);
}

/* Texto sobre el overlay */
.card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 22px 22px;
  z-index: 2;
}

.card__sub {
  
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 5px;
  opacity: 0;
}

.card__title {

  font-weight: 300;
  line-height: 1.2;
  color: var(--primary-white);
  letter-spacing: 0.01em;
}

/* ── Hover desktop ── */
@media (hover: hover) {
  .card:hover .card__img {
    transform: scale(1.055);
  }
  .card:hover .card__overlay {
    opacity: 0.85;
  }
}

.gallery-grid {
  display: none;  /* oculto en mobile, visible en desktop */
}

@media (min-width: 850px) {
  /* Ocultar el slider en desktop */
  .slider-wrap { display: none !important; }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr 1fr;
    grid-template-rows: var(--row-h-a) var(--row-h-b);
    gap: var(--gap);
  }

  /* Hero: ocupa cols 1 y filas 1–2 */
  .card--hero {
    grid-column: 1 / 2;
    grid-row:    1 / 3;
  }

  /* Tall: col 2, fila 1 */
  .card--tall {
    grid-column: 2 / 3;
    grid-row:    1 / 2;
  }

  /* sm izquierda: col 2, fila 2 */
  .card--sm:nth-child(3) {
    grid-column: 2 / 3;
    grid-row:    2 / 3;
  }

  /* Wide: col 3, fila 1–2 */
  .card--wide {
    grid-column: 3 / 4;
    grid-row:    1 / 2;
  }

  /* sm derecha: col 3, fila 2 */
  .card--sm:nth-child(5) {
    grid-column: 3 / 4;
    grid-row:    2 / 3;
  }


}

/* ════════════════════════════════════════════════
   SLIDER MOBILE  (< 850 px)
   ════════════════════════════════════════════════ */
.slider-wrap {
  display: block;
  position: relative;
  overflow: hidden;  /* clip lateral del scroll */
  margin: 0 -32px;  /* sangrar hasta el borde de pantalla */
  padding: 0 0 32px;
}

.slider {
  display: flex;
  gap: 14px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 0 32px;          /* padding lateral para ver el 85% + pico del siguiente */
  scroll-padding-left: 32px;

  /* Ocultar barra de scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider::-webkit-scrollbar { display: none; }

/* Estado activo del drag */
.slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;  /* liberar snap durante el arrastre para fluidez */
  user-select: none;
}

/* Cada slide */
.slide {
  position: relative;
  flex: 0 0 85%;            /* 85% del viewport */
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Las imágenes dentro de slides */
.slide .card__img {
  height: 100%;
}

/* ── Indicadores (dots) ── */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
  padding: 0 32px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 236, 228, 0.25);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.slider-dot.is-active {
  background: var(--clr-accent);
  transform: scale(1.4);
}

/* ════════════════════════════════════════════════
   RESPONSIVIDAD FINA
   ════════════════════════════════════════════════ */
@media (max-width: 849px) {
  .gallery-section {
    padding: 48px 32px 60px;
  }


  .gallery-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 40px 20px 50px;
  }

  .slider-wrap {
    margin: 0 -20px;
  }

  .slider {
    padding: 0 20px;
    scroll-padding-left: 20px;
  }

  .slider-dots {
    padding: 0 20px;
  }

  .slide {
    height: 360px;
    flex: 0 0 88%;
  }
}

/* Animacion About Gallery */

/* =========================================
   ESTADO INICIAL
========================================= */

.top-title,
.gallery-section h2,
.gallery-grid .card,
.slider-wrap {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

/* =========================================
   CUANDO APARECEN
========================================= */

.top-title.show,
.gallery-section h2.show,
.gallery-grid .card.show,
.slider-wrap.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   DELAYS
========================================= */

.top-title {
    transition-delay: .1s;
}

.gallery-section h2 {
    transition-delay: .2s;
}

.slider-wrap {
    transition-delay: .3s;
}

.gallery-grid .card:nth-child(1) {
    transition-delay: .3s;
}

.gallery-grid .card:nth-child(2) {
    transition-delay: .4s;
}

.gallery-grid .card:nth-child(3) {
    transition-delay: .5s;
}

.gallery-grid .card:nth-child(4) {
    transition-delay: .6s;
}

.gallery-grid .card:nth-child(5) {
    transition-delay: .7s;
}


/* Seccion de estadisticas */

.about-showcase{
    width:100%;
    
   
}

.about-wrapper{
    width:100%;
    display:flex;
   gap:20px
    
}

/* ========================= */
/* IMAGEN */
/* ========================= */

.about-image{
    width:45%;
    position:relative;
    border-radius:20px;
    overflow:hidden;
}

.about-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    
}

/* BLUR SOLO DONDE ESTA TEXTO */


/* TEXTO */
.blur-container{
    
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px 30px;
    border-top-right-radius: 20px;
    overflow: hidden;
}

.image-blur{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background:rgba(0,0,0,0.3);

    backdrop-filter:blur(2px);
    z-index: 1;
    border-top-right-radius: 20px;
    
    
}

.image-info{
    position: relative;
    z-index:2;

    color:var(--primary-white);

    width: 100%;
  
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-info h2{
  
    font-weight:600;
    letter-spacing: 3px;
    line-height:1;
    margin-bottom: 10px;
    color: var(--primary-white);
    text-align: center;
}

.image-info p{
    line-height:1.8;
    color:var(--primary-white);
    text-align: center;
}

.about-image-mobile{
    display: none !important;
}


@media(max-width: 450px){
    .about-image-desktop{
        display: none !important;
    }

    .about-image-mobile{
        display: block !important;
    }
}
/* ========================= */
/* DERECHA */
/* ========================= */

.about-cards{
    width:55%;
    display:flex;
    flex-direction:row;
    gap:20px;
}

/* CARDS */

.info-card{
    flex:1;
    border-radius:20px;
    padding:30px;
    color:var(--primary-white);
    display:flex;
    flex-direction:column;
    
}

/* AZUL */

.blue{
    background:var(--primary-blue);
    justify-content: center;
}

.blue h3{
    line-height:1;
    margin-bottom:10px;
}

.blue span{
    
    font-weight:600;
}

.blue p{
    margin-top:20px;
    line-height:1.8;
    color: var(--secondary-white);
}

/* CLIENTES */

.clients-row{
    display:flex;
    align-items:center;
    margin-top:35px;
}

.client{
    width:50px;
    height:50px;

    border-radius:50%;
    overflow:hidden;

    margin-left:-10px;

  

    display:flex;
    align-items:center;
    justify-content:center;
}

.client img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.client.plus{
    background:var(--primary-red);
    color:var(--primary-white);
    font-size:2rem;
    font-weight:700;
}

/* ROJO */

.red{
    background:#c73027;
    
}

.stars{
    font-size:1.9rem;
    letter-spacing:5px;
    margin-bottom:20px;
    color: rgb(253, 253, 102);
}

.review{
    
    line-height:1.9;
    margin-bottom:30px;
}

.review{
    color: var(--primary-white);
}

.review-user{
    font-weight:700;
    color: var(--secondary-white);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:1100px){

    .about-wrapper{
        flex-direction:column;
    }

    .about-image,
    .about-cards{
        width:100%;
    }

   

}

@media(max-width:768px){

 

    .about-cards{
        flex-direction:column;
    }


    .info-card{
        padding:35px 30px;
    }


}

@media(max-width:500px){

    .client{
        width:58px;
        height:58px;
    }

}


/* Animacion About Clientes*/

/* ========================= */
/* ESTADOS INICIALES */
/* ========================= */

.about-image,
.info-card,
.image-info,
.image-blur{
    opacity:0;
    transition:
    opacity 1s ease,
    transform 1s cubic-bezier(.22,1,.36,1);
}

/* IMAGEN */

.about-image{
    transform:scale(0.92);
}

/* BLUR */

.image-blur{
    transform:scale(0.7);
}

/* TEXTO */

.image-info{
    transform:translateY(40px);
}

/* CARDS */

.info-card{
    transform:translateX(80px);
}

/* ========================= */
/* CUANDO APARECEN */
/* ========================= */

.about-image.show{
    opacity:1;
    transform:scale(1);
}

.image-blur.show{
    opacity:1;
    transform:scale(1);
}

.image-info.show{
    opacity:1;
    transform:translateY(0);
}

.info-card.show{
    opacity:1;
    transform:translateX(0);
}

/* DELAYS */

.blue.show{
    transition-delay:.2s;
}

.red.show{
    transition-delay:.45s;
}

.image-info.show{
    transition-delay:.3s;
}

.image-blur.show{
    transition-delay:.15s;
}


/* About Gallery */

.about-gallery{
    background-color: var(--primary-blue);
    position: relative;
}

.about-gallery-into{
   
    width: 100%;
    height: 700px;
    
}

.background-about-gallery{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}