/* ===== ESTILO GENERAL ===== */

body{
font-family:Segoe UI, sans-serif;
margin:0;
background:#f1f5f9;
color:#334155;
line-height:1.6;

/* ðŸ”¥ FIX NAVBAR */
padding-top:80px;
}

*{
box-sizing:border-box;
}



/* ===== NAVBAR ===== */

.navbar{
background:#ffffff;

height:110px;
display:flex;
align-items:center;
box-shadow:0 4px 20px rgba(0,0,0,0.08);

padding:15px 0;
}

.navbar .navbar-collapse{
flex-grow: 1;
display: flex;
justify-content: center;
}

.navbar-nav{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}


html, body{
overflow-x:hidden;
}

.navbar-nav .nav-item{
display: flex;
align-items: center;
}

/* ðŸ”¥ NAVBAR AL HACER SCROLL */

.navbar.scrolled{
background:#ffffff;
}

.logo img{
height:90px;
width:auto;
}



/* LINKS */

.nav-link{
margin: 0 15px;
color:#334155;
font-weight:500;
display: flex;
align-items: center;
}

.nav-link:hover{
color:#14b8a6;
}

/* ===== BOTON HAMBURGUESA ===== */

.navbar-toggler{
border:none;
}

.navbar-toggler:focus{
box-shadow:none;
}

.navbar-toggler-icon{
filter:invert(0.3);
}



/* ===== MENU MOVIL ===== */

@media(max-width:991px){

.navbar-collapse{
background:white;
border-radius:10px;
margin-top:10px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
padding:20px;

max-height:0;
overflow:hidden;
opacity:0;

transition:all 0.3s ease;
}

.navbar-collapse.show{
max-height:500px;
opacity:1;
}

}



/* ===== DESKTOP ===== */

@media(min-width:992px){

.navbar-collapse{
display:flex !important;
flex-basis:auto;
height:auto !important;
max-height:none !important;
opacity:1 !important;
overflow:visible !important;
background:transparent;
box-shadow:none;
padding:0;
margin-top:0;
}

}



/* ===== HERO ===== */

.hero{
height:100vh;
background:url("../img/hero.jpg") center/cover no-repeat;
display:flex;
align-items:center;
justify-content:center;
position:relative;
}

.hero-overlay{
position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0,0.65);
}

.hero-content{
position:relative;
color:white;
text-align:center;
max-width:700px;
padding:0 15px;
}

.hero h1{
font-size:60px;
font-weight:700;
}

.hero-subtitle{
font-size:20px;
margin-bottom:25px;
}



/* ===== BOTON PRINCIPAL ===== */

.btn-main{
background:#14b8a6;
color:white;
padding:14px 35px;
border-radius:8px;
text-decoration:none;
font-weight:600;
}

.btn-main:hover{
background:#0ea5a5;
}



/* ===== SECCIONES ===== */

.section{
padding:160px 0;
}

.section-dark{
background:#020617;
color:white;
padding:160px 0;
}



/* ===== TITULOS ===== */

.section h2{
font-size:36px;
font-weight:700;
color:#0f172a;
}

.section-dark h2{
color:white;
}



/* ===== DIVISOR ===== */

.section-divider{
width:80px;
height:5px;
background:#14b8a6;
margin:20px auto 60px;
border-radius:4px;
}



/* ===== SOBRE NOSOTROS ===== */

#nosotros p{
max-width:750px;
margin:auto;
font-size:18px;
line-height:1.8;
margin-bottom:20px;
}



/* ===== SERVICIOS ===== */

.service-card{
background:white;
padding:40px;
border-radius:12px;
text-align:center;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transition:all 0.35s ease;
height:100%;
border:1px solid transparent;
}

.service-card i{
font-size:45px;
color:#14b8a6;
margin-bottom:20px;
}

.service-card h4{
margin-bottom:15px;
font-weight:600;
}

.service-card p{
color:#64748b;
font-size:15px;
}

.service-card:hover{
transform: scale(1.03);
box-shadow: 0 20px 40px rgba(20,184,166,0.25);
border: none;
}



/* ===== VIDEOS ===== */

.video-box{
background:#334155;
border-radius:15px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
padding:10px;
}

.video-container{
position:relative;
width:100%;
padding-top:177.77%;
}

.video-container iframe{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
border-radius:10px;
}



/* ===== UBICACION ===== */

.ubicacion-bg{
background:url("../img/ubicacion.jpg") center/cover no-repeat;
padding:160px 0;
position:relative;
}

.ubicacion-bg::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.65);
}

.ubicacion-bg .container{
position:relative;
z-index:2;
}



/* ===== TARJETAS ===== */

.info-card{
background:white;
padding:35px;
border-radius:15px;
box-shadow:0 15px 35px rgba(0,0,0,0.2);
height:100%;
}



/* ===== REDES ===== */

.social-text{
font-size:15px;
color:#64748b;
margin:15px 0 25px 0;
}

.social-icons{
display:flex;
gap:15px;
margin-top:10px;
}

.social-btn{
width:50px;
height:50px;
background:#f1f5f9;
border-radius:12px;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
color:#14b8a6;
transition:0.3s;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.social-btn:hover{
background:#14b8a6;
color:white;
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}



/* ===== MAPA ===== */

iframe{
border-radius:10px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
}



/* ===== FOOTER ===== */

footer{
background:#020617;
color:white;
text-align:center;
padding:25px;
}



/* ===== WHATSAPP ===== */

.whatsapp-btn{
position:fixed;
bottom:25px;
right:25px;
background:#25D366;
color:white;
width:65px;
height:65px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:30px;
box-shadow:0 15px 30px rgba(0,0,0,0.3);
z-index:999;
transition:0.3s;
}

.whatsapp-btn:hover{
transform:scale(1.1);
background:#1ebe5d;
}



/* ===== RESPONSIVE ===== */

@media(max-width:768px){
    
/* DROPDOWN MOVIL */

.dropdown-menu{
box-shadow:none;
padding:0;
}

.dropdown-item{
padding:10px;
}
body{
padding-top:70px;
}

.navbar{
height:70px;
}

.logo img{
height:45px;
}

.nav-link{
margin:10px 0;
font-size:16px;
}

.hero h1{
font-size:38px;
}

.hero-subtitle{
font-size:16px;
}

.section{
padding:100px 20px;
}

.social-icons{
justify-content:center;
}

}

/* ===== FIX GLOBAL DROPDOWN ACTIVO ===== */

.dropdown-item.active,
.dropdown-item:active{
background:#14b8a6 !important;
color:white !important;
}

/* HOVER GLOBAL */

.dropdown-item:hover{
background:#14b8a6;
color:white;
}

/* ===== CARRUSEL ===== */

.carousel-custom{
position: relative;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
margin-top: 50px;
min-height: 600px;
}

.carousel-track{
position: relative;
width: 100%;
height: 540px;
}

/* TARJETAS */

.carousel-custom .card{
position: absolute;
top: 50%;
left: 50%;

width: 420px;
height: 520px;

border-radius: 15px;
box-shadow: 0 20px 50px rgba(0,0,0,0.25);

background-size: cover;
background-position: center;
color: white;

display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 20px;

opacity: 0;
transition: transform 0.6s ease, opacity 0.5s ease;
}

/* CAPA OSCURA */

.carousel-custom .card::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background: rgba(0,0,0,0.35);
border-radius:15px;
}

/* TEXTO */

.carousel-custom .card h4,
.carousel-custom .card p,
.carousel-custom .card a{
position: relative;
z-index: 2;
}

.carousel-custom .card h4{
font-size: 20px;
margin-bottom: 10px;
}

.carousel-custom .card p{
font-size: 14px;
margin-bottom: 15px;
}

/* BOTÓN */

.carousel-custom .card a{
background:#84cc16;
padding:10px 20px;
border-radius:6px;
color:white;
text-decoration:none;
font-weight:600;
display:inline-block;
}

/* POSICIONES */

.carousel-custom .card.active{
transform: translate(-50%, -50%) scale(1.1);
opacity: 1;
z-index: 5;
}

.carousel-custom .card.next{
transform: translate(120%, -50%) scale(0.9);
opacity: 0.85;
z-index: 4;
}

.carousel-custom .card.prev{
transform: translate(-200%, -50%) scale(0.9);
opacity: 0.85;
z-index: 4;
}

.carousel-track{
max-width: 1000px;
margin: 0 auto;
}
.carousel-custom .card.next2{
transform: translate(220%, -50%) scale(0.75);
opacity: 0.5;
z-index: 3;
}

.carousel-custom .card.prev2{
transform: translate(-290%, -50%) scale(0.75);
opacity: 0.5;
z-index: 3;
}

.carousel-custom .card.next2,
.carousel-custom .card.prev2{
opacity: 0;
pointer-events: none;
}

/* HOVER CORRECTO */

.carousel-custom .card:hover{
z-index: 10;
}


/* BOTONES */

.prev-btn, .next-btn{
position: absolute;
top: 50%;
transform: translateY(-50%);
background: #14b8a6;
color: white;
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
z-index: 20;
}

.prev-btn{ left: 20px; }
.next-btn{ right: 20px; }

.prev-btn:hover,
.next-btn:hover{
background:#0ea5a5;
}

@media(max-width:768px){

.carousel-custom{
min-height:420px;
}

.carousel-track{
height:380px;
}

.carousel-custom .card{
width:280px;
height:360px;
padding:18px;
}

.carousel-custom .card.active{
transform: translate(-50%, -50%) scale(1);
}

.carousel-custom .card.next,
.carousel-custom .card.prev,
.carousel-custom .card.next2,
.carousel-custom .card.prev2{
opacity:0;
pointer-events:none;
}

.prev-btn,
.next-btn{
width:40px;
height:40px;
}

}

@media(max-width:768px){

.navbar{
background:white !important;
}

}

@media(max-width:768px){

#ubicacion .col-md-4{
margin-bottom:25px;
}

#ubicacion .col-md-4:last-child{
margin-bottom:0;
}

}

body{

transition: opacity .5s ease;

}

body.fade-out{

opacity:0;

}

/* ===== LOADER ===== */

.page-loader{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:linear-gradient(
135deg,
#020617,
#0f172a
);

display:none;

justify-content:center;
align-items:center;

z-index:999999;

}

.loader-box{

display:flex;
flex-direction:column;
align-items:center;
gap:18px;

}

.loader-spinner{

width:70px;
height:70px;

border:6px solid rgba(255,255,255,.15);

border-top:6px solid #14b8a6;

border-radius:50%;

animation:spin 1s linear infinite;

}

.loader-text{

color:white;
font-size:18px;
letter-spacing:1px;

}

.dots::after{

content:"";
animation:dots 1.5s infinite;

}

@keyframes spin{

100%{
transform:rotate(360deg);
}

}

@keyframes dots{

0%{content:"";}
33%{content:".";}
66%{content:"..";}
100%{content:"...";}

}

/* ===== NUEVA FUNCION: SCROLL SUAVE INDEX ===== */

html{

scroll-behavior:smooth;

}