/* css pagina web */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body{
background:#f4f6f8;
color:#222;
}

.header{
position:sticky;
top:0;
z-index:999;
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 30px;
background:rgba(31,79,104,.92);
backdrop-filter:blur(10px);
-webkit-backdrop-filter:blur(10px);
box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.logo{
display:flex;
align-items:center;
gap:12px;
text-decoration:none;
color:white;
font-size:24px;
font-weight:bold;
}

.logo img{
width:55px;
height:55px;
border-radius:50%;
object-fit:cover;
}

#nav{
display:flex;
gap:10px;
align-items:center;
}

#nav a{
color:white;
text-decoration:none;
padding:10px 14px;
border-radius:10px;
font-weight:bold;
transition:.25s;
}

#nav a:hover{
background:rgba(255,255,255,.12);
}

.menu-btn{
display:none;
font-size:32px;
color:white;
cursor:pointer;
}

@media(max-width:900px){

.header{
padding:14px 20px;
}

.menu-btn{
display:block;
}

#nav{
position:absolute;
top:85px;
left:0;
width:100%;
background:#1f4f68;
flex-direction:column;
align-items:flex-start;
padding:15px;
display:none;
gap:5px;
box-shadow:0 10px 20px rgba(0,0,0,.15);
}

#nav.active{
display:flex;
}

#nav a{
width:100%;
padding:14px;
font-size:18px;
border-radius:10px;
}

.logo span{
font-size:22px;
}

}

main{
max-width:1100px;
margin:auto;
padding:50px 20px;
}

h1,h2{
color:#1f4f68;
margin-bottom:20px;
}

.card{
background:white;
padding:25px;
border-radius:18px;
box-shadow:0 8px 18px rgba(0,0,0,0.08);
margin-bottom:20px;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.btn{
background:#1f4f68;
color:white;
padding:12px 18px;
border:none;
border-radius:10px;
text-decoration:none;
display:inline-block;
margin-top:10px;
}


.slider{
position:relative;
width:100%;
height:420px;
overflow:hidden;
border-radius:20px;
margin-bottom:40px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* slides */
.slide{
position:absolute;
inset:0;
opacity:0;
transition:opacity .8s ease;
z-index:1;
}

.slide.active{
opacity:1;
z-index:2;
}

.slide img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* texto */
.texto{
position:absolute;
left:30px;
bottom:30px;
background:rgba(0,0,0,.55);
color:#fff;
padding:14px 18px;
border-radius:10px;
font-size:28px;
font-weight:bold;
z-index:3;
}

/* botones */
.prev,.next{
position:absolute;
top:50%;
transform:translateY(-50%);
width:56px;
height:56px;
border:none;
border-radius:50%;
background:rgba(0,0,0,.45);
color:#fff;
font-size:30px;
cursor:pointer;
z-index:50;
opacity:0;
pointer-events:none;
transition:.25s;
}

/* posiciones */
.prev{ left:15px; }
.next{ right:15px; }

/* mostrar hover PC */
.slider:hover .prev,
.slider:hover .next{
opacity:1;
pointer-events:auto;
}

.prev:hover,.next:hover{
background:rgba(0,0,0,.7);
}

/* móvil */
@media (max-width:768px){
.prev,.next{
opacity:1;
pointer-events:auto;
width:42px;
height:42px;
font-size:22px;
}
.texto{
font-size:18px;
left:15px;
right:15px;
bottom:15px;
}
}

.barra{
position:absolute;
top:0;
left:0;
height:5px;
width:0%;
background:white;
z-index:1000;
transition:width 0.1s linear;
}

/* GALERIA MODERNA */
.subtitulo{
color:#666;
margin-bottom:15px;
}

.galeria{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:15px;
}

.img-box{
overflow:hidden;
border-radius:15px;
opacity:0;
transform:translateY(30px);
transition:0.6s;
}

.img-box img{
width:100%;
height:220px;
object-fit:cover;
transition:0.4s;
cursor:pointer;
}

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

.img-box.visible{
opacity:1;
transform:translateY(0);
}

/* MODAL */
.modal{
display:none;
position:fixed;
z-index:999;
padding-top:80px;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
}

.modal-img{
display:block;
margin:auto;
max-width:90%;
max-height:80%;
border-radius:10px;
}

.cerrar{
position:absolute;
top:20px;
right:35px;
color:white;
font-size:40px;
cursor:pointer;
}

/* DATOS CLAVE */
.dato{
text-align:center;
}

.dato h2{
font-size:40px;
color:#1f4f68;
margin-bottom:5px;
}

.dato p{
font-size:18px;
color:#555;
}

/* PASOS */
.pasos{
margin-top:10px;
padding-left:20px;
}

.pasos li{
margin:8px 0;
font-size:18px;
}

/* CTA */
.cta{
text-align:center;
background:#1f4f68;
color:white;
}

.cta h2{
color:white;
}

.cta p{
color:#dbe7ee;
margin-bottom:15px;
}

.cta .btn{
background:white;
color:#1f4f68;
font-weight:bold;
}

.cta .btn:hover{
background:#e6e6e6;
}

.animar{
opacity:0;
transform:translateY(30px);
transition:0.6s;
}

.animar.visible{
opacity:1;
transform:translateY(0);
}

.card{
margin-bottom:25px;
}

@media(max-width:768px){

body{
font-size:18px;
}

h1{
font-size:34px;
}

h2{
font-size:24px;
}

p{
font-size:18px;
}

}

@media(max-width:768px){

.btn{
width:100%;
padding:16px;
font-size:18px;
}

}

@media(max-width:768px){

nav{
display:flex;
flex-direction:column;
align-items:center;
}

nav a{
margin:8px 0;
font-size:18px;
}

}
@media(max-width:768px){

.card{
padding:22px;
border-radius:16px;
}

}

/* CONTACTO */

.contacto-box{
text-align:center;
}

.contacto-box .btn{
display:block;
margin:12px auto;
max-width:300px;
font-size:18px;
padding:14px;
}

/* COLORES */
.whatsapp{
background:#25D366;
}

.tel{
background:#1f4f68;
}

.mail{
background:#444;
}

/* HOVER */
.whatsapp:hover{
background:#1ebe5d;
}

.tel:hover{
background:#16394b;
}

.mail:hover{
background:#222;
}

/* MOBILE */
@media(max-width:768px){

.contacto-box .btn{
width:100%;
font-size:20px;
padding:18px;
}

}

/* WHATSAPP FLOTANTE */

.wsp-float{
position:fixed;
width:65px;
height:65px;
bottom:25px;
right:25px;
background:#25D366;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
box-shadow:0 5px 15px rgba(0,0,0,.3);
z-index:999;
transition:.3s;
animation:flotar 2s infinite;
}

.wsp-float img{
width:38px;
height:38px;
}

.wsp-float:hover{
transform:scale(1.1);
background:#1ebe5d;
}

/* ANIMACION */
@keyframes flotar{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-5px);
}

100%{
transform:translateY(0);
}

}

/* CELULAR */
@media(max-width:768px){

.wsp-float{
width:60px;
height:60px;
bottom:20px;
right:20px;
}

.wsp-float img{
width:34px;
height:34px;
}

}

.wsp-icon{
width:38px !important;
height:38px !important;
object-fit:contain;
}

.hero-noticia{
width:100%;
height:450px;
border-radius:25px;
overflow:hidden;
margin-bottom:30px;
box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.hero-noticia img{
width:100%;
height:100%;
object-fit:cover;
}

.contenido-noticia{
line-height:1.8;
}

@media(max-width:768px){

.hero-noticia{
height:260px;
}

}

/* Nuevo inicio*/

.animado{
opacity:0;
transform:translateY(50px);
transition:all .8s ease;
}

.animado.visible{
opacity:1;
transform:translateY(0);
}

.stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:20px;
margin:50px 0;
}

.stat{
background:white;
padding:30px;
border-radius:20px;
text-align:center;
box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.stat h2{
font-size:42px;
color:#1f4f68;
margin-bottom:10px;
}

.ventaja{
text-align:center;
}

.ventaja h2{
margin-bottom:15px;
}

.cta{
background:#1f4f68;
padding:60px 30px;
border-radius:25px;
text-align:center;
color:white;
margin:60px 0;
}

.cta h1{
color:white;
margin-bottom:15px;
font-size:42px;
}

.cta p{
font-size:18px;
margin-bottom:25px;
}

.cta-btn{
font-size:20px;
padding:16px 28px;
background:white;
color:#1f4f68;
font-weight:bold;
}

.mini-news{
text-decoration:none;
color:inherit;
transition:.3s;
overflow:hidden;
}

.mini-news:hover{
transform:translateY(-5px);
}

.mini-news img{
width:100%;
height:220px;
object-fit:cover;
border-radius:15px;
margin-bottom:15px;
}

@media(max-width:768px){

.cta h1{
font-size:30px;
}

.stat h2{
font-size:34px;
}

}

/* footer nuevo */

.footer{
background:#16394b;
color:white;
margin-top:60px;
padding-top:50px;
}

.footer-grid{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:40px;
padding:0 20px 40px;
}

.footer-col{
display:flex;
flex-direction:column;
gap:12px;
}

.footer-col h3{
margin-bottom:10px;
font-size:24px;
}

.footer-col a{
color:#d8edf7;
text-decoration:none;
transition:.25s;
}

.footer-col a:hover{
color:white;
}

.footer-logo{
display:flex;
align-items:center;
gap:12px;
font-size:26px;
font-weight:bold;
margin-bottom:10px;
}

.footer-logo img{
width:60px;
height:60px;
border-radius:50%;
object-fit:cover;
}

.footer-bottom{
border-top:1px solid rgba(255,255,255,.15);
padding:18px;
text-align:center;
font-size:14px;
color:#c7dce6;
}

@media(max-width:768px){

.footer{
text-align:center;
}

.footer-logo{
justify-content:center;
}

.footer-col{
align-items:center;
}

}