*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:#1e293b;
    background:#ffffff;
    line-height:1.6;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* HEADER */

header{
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    display:flex;
    align-items:center;
    padding:5px 0;
}

.logo img{
    width:170px;   /* más grande */
    height:auto;
    display:block;
}

nav{
    flex:1;
}

nav ul{
    display:flex;
    justify-content:center;
    list-style:none;
    gap:35px;
}

nav a{

    position:relative;

    text-decoration:none;

    color:#1f2937;

    font-weight:500;

    transition:.3s;

}

nav a::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:-8px;

    width:0;

    height:2px;

    background:#0097a7;

    transition:.3s;

    transform:translateX(-50%);

}

nav a:hover{

    color:#0097a7;

}

nav a:hover::after{

    width:100%;

}

.btn-whatsapp{
    margin-left:auto;
    background:#009688;
    color:white;
    text-decoration:none;
    padding:12px 22px;
    border-radius:8px;
    font-weight:600;
}
/* HERO */

.hero{
    padding:80px 0;
    background:#f8fafc;
}

.hero-content{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    gap:80px;
    align-items:center;
}

.subtitle{
    color:#e91e63;
    font-weight:600;
    letter-spacing:1px;
}

.hero h1{
    font-size:58px;
    line-height:1.1;
    color:#0f2f6f;
    margin:15px 0 25px;
}

.hero p{
    font-size:20px;
    color:#475569;
    margin-bottom:30px;
}

.btn-primary{
    display:inline-block;
    background:#0097a7;
    color:white;
    text-decoration:none;
    padding:15px 28px;
    border-radius:8px;
    font-weight:600;
    margin-bottom:30px;
    transition:.3s;
    box-shadow:0 10px 25px rgba(15,47,111,.08);
}

.btn-primary:hover{
    background:#00838f;
    transform:translateY(-3px);
    box-shadow:0 20px 45px rgba(15,47,111,.15);
}

    background:#00838f;

    transform:translateY(-3px);

    box-shadow:0 20px 45px rgba(15,47,111,.15);

}
}

.hero-features{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
}

.hero-features div{
    font-weight:500;
    color:#334155;
}

.image-placeholder{
    background:#e2e8f0;
    border-radius:20px;
    min-height:400px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#64748b;
    font-weight:600;
}

/* ABOUT */

.about{
    padding:100px 0;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.section-subtitle{
    color:#e91e63;
    font-weight:600;
}

.about h2{
    color:#0f2f6f;
    font-size:42px;
    margin:15px 0 25px;
}

.about p{
    margin-bottom:20px;
    color:#475569;
}

/* RESPONSIVE */

@media(max-width:900px){

    .hero-content,
    .about-grid{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:42px;
    }

    nav ul{
        gap:15px;
    }

    .navbar{
        flex-direction:column;
        gap:20px;
    }

}
.hero-img{
    width:100%;
    display:block;
    border-radius:24px;
    transition:.4s;
}

.hero-img:hover{
    transform:scale(1.02);
}

.hero-image{

    display:flex;
    justify-content:flex-end;

}

.hero-img{

    width:100%;
    max-width:560px;

    border-radius:24px;

    display:block;

    box-shadow:0 20px 45px rgba(15,47,111,.12);

    transition:.35s;

}

.hero-img:hover{

    transform:scale(1.02);

}
.logo img{
    width:170px;
}
/* SERVICIOS */

.services{
    padding:100px 0;
    background:#ffffff;
}

.services-title{
    font-size:42px;
    color:#0f2f6f;
    margin:15px 0 50px;
}

.services-title span{
    color:#0097a7;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:22px;
}

.service-card{
    background:#fff;
    border:1px solid #e8edf3;
    border-radius:18px;
    padding:35px 20px;

    text-align:center;

    transition:all .35s ease;

    box-shadow:0 4px 15px rgba(15,47,111,.05);
}

.service-card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(15,47,111,.12);

}

.icon{

    width:72px;
    height:72px;

    margin:0 auto 25px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:30px;

    transition:.35s;
}

.icon-blue{
    background:#e8f1ff;
    color:#0f2f6f;
}

.icon-green{
    background:#e9f9ef;
    color:#2e7d32;
}

.icon-cyan{
    background:#e6f9fb;
    color:#0097a7;
}

.icon-purple{
    background:#f3e8ff;
    color:#7b1fa2;
}

.icon-orange{
    background:#fff3e6;
    color:#ef6c00;
}

.icon-sky{
    background:#e8f5ff;
    color:#0288d1;
}

.service-card:hover .icon{
    transform:scale(1.08);
}
.service-card h3{

    color:#0f2f6f;

    font-size:20px;

    line-height:1.35;

    margin-bottom:15px;

}

.service-card p{

    color:#64748b;

    font-size:15px;

    line-height:1.7;

}

@media(max-width:900px){

.services-grid{

grid-template-columns:1fr;

}

}
/* ESPECIALIDADES */

/* ESPECIALIDADES */

.specialties{
    padding:100px 0;
}

.specialties .services-title{
    text-align:center;
    margin-bottom:50px;
}

.specialties .section-subtitle{
    display:block;
    text-align:center;
    margin-bottom:10px;
}

.specialties-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
}

.specialty-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:15px;
    text-align:center;
    transition:.3s;
}

.specialty-card:hover{
    transform:translateY(-5px);
}

.specialty-img{
    width:100%;
    height:120px;
    object-fit:cover;
}

.specialty-card h3{
    font-size:18px;
    color:#0f2f6f;
    margin:15px 10px 10px;
}

.specialty-card p{
    font-size:14px;
    padding:0 15px 20px;
    color:#475569;
}

@media(max-width:900px){

    .specialties-grid{
        grid-template-columns:1fr 1fr;
    }

}
/* CONTACTO */

.contact{
    padding:100px 0;
    background:#f8fafc;
}

.contact-title{
    font-size:42px;
    color:#0f2f6f;
    margin:15px 0 40px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.contact-card{
    background:white;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:30px;
    text-align:center;
}

.contact-card h3{
    color:#0f2f6f;
    margin-bottom:15px;
}

.contact-card p{
    color:#475569;
}

.contact-button{
    text-align:center;
    margin-top:40px;
}
.contact-card a{
    color:#475569;
    text-decoration:none;
    overflow-wrap:break-word;
}
.about-img{
    width:100%;
    max-height:350px;
    object-fit:cover;
    border-radius:20px;
    display:block;
}
.about-image{
    max-width:500px;
    margin:auto;
}
#servicios,
#nosotros,
#especialidades,
#contacto{
    scroll-margin-top:110px;
}
.specialty-img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:15px 15px 0 0;
}

.specialty-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:15px;
    overflow:hidden;
    transition:0.3s;
}

.specialty-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.specialty-card h3{
    padding:15px 20px 5px;
    color:#0f2f6f;
}

.specialty-card p{
    padding:0 20px 20px;
    color:#475569;
}
/* ESPECIALIDADES */

.specialties{
    padding:100px 0;
}

.specialties-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
}

.specialty-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:15px;
    overflow:hidden;
    text-align:center;
    transition:0.3s;
}

.specialty-card:hover{
    transform:translateY(-5px);
}

.specialty-img{
    width:100%;
    height:120px;
    object-fit:cover;
}

.specialty-card h3{
    padding:15px;
    color:#0f2f6f;
    font-size:18px;
}

@media(max-width:900px){
    .specialties-grid{
        grid-template-columns:repeat(2,1fr);
    }
}
.specialties-note{
    text-align:center;
    margin-top:30px;
    color:#00a884;
    font-weight:600;
}
.contact-layout{
    display:grid;
    grid-template-columns: 1fr 2fr;
    gap:40px;
    align-items:start;
    margin-top:40px;
}

.contact-info{
    background:white;
    padding:30px;
    border-radius:16px;
    border:1px solid #e5e7eb;
}

.contact-item{
    margin-bottom:25px;
}

.contact-item:last-child{
    margin-bottom:0;
}

.contact-item h3{
    color:#0f2f6f;
    margin-bottom:8px;
}

.contact-item p{
    color:#475569;
    line-height:1.7;
}

.contact-item a{
    color:#0891b2;
    text-decoration:none;
}

.contact-map iframe{
    width:100%;
    height:100%;
    min-height:420px;
    border-radius:16px;
}

@media (max-width: 900px){

    .contact-layout{
        grid-template-columns:1fr;
    }

    .contact-map iframe{
        min-height:300px;
    }

}
.specialty-link{
    text-decoration:none;
    color:inherit;
}
/* BOTÓN FLOTANTE WHATSAPP */

.whatsapp-float{
    position:fixed;
    right:30px;
    bottom:30px;

    width:65px;
    height:65px;

    background:#25D366;
    color:#fff;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    text-decoration:none;

    font-size:34px;

    box-shadow:0 8px 25px rgba(0,0,0,.25);

    transition:.3s;

    z-index:9999;
}

.whatsapp-float:hover{
    transform:scale(1.12);
    background:#1ebe5d;
}
.hero-buttons{
    display:flex;
    gap:15px;
    align-items:center;
    margin-top:35px;
    flex-wrap:wrap;
}

.hero-buttons a{

    height:52px;

    padding:0 28px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    border-radius:8px;

    font-weight:600;

    font-size:16px;

    text-decoration:none;

    transition:.3s;
}

.btn-secondary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:52px;

    padding:0 28px;

    border:2px solid #0f2f6f;

    border-radius:8px;

    color:#0f2f6f;

    text-decoration:none;

    font-weight:600;

    gap:8px;
}

/* =========================================
   AJUSTE FINAL DE ESPACIADO ENTRE SECCIONES
   Mantiene el diseño actual y compacta
   los espacios verticales.
========================================= */

.hero{
    padding:65px 0 55px;
}

.about{
    padding:55px 0 45px;
}

.services{
    padding:55px 0 60px;
}

.specialties{
    padding:55px 0 60px;
}

.contact{
    padding:60px 0;
}

/* Menos espacio interno en títulos de sección */

.services-title{
    margin-top:10px;
    margin-bottom:35px;
}

.specialties .services-title{
    margin-bottom:35px;
}

.specialties .section-subtitle{
    margin-bottom:8px;
}

/* Menos separación entre el contenido de Nosotros
   y el comienzo de Servicios */

.about-grid{
    gap:45px;
}

/* Menos separación entre Especialidades y sus tarjetas */

.specialties-grid{
    gap:18px;
}

/* Menos espacio antes del botón de Contacto */

.contact-button{
    margin-top:25px;
}

/* Menos espacio antes del bloque de contacto */

.contact-layout{
    margin-top:25px;
}

/* Nota inferior de Especialidades */

.specialties-note{
    margin-top:20px;
}

/* En celular mantenemos una separación cómoda,
   sin volver a generar grandes espacios */

@media(max-width:900px){
    .hero{
        padding:55px 0 45px;
    }

    .about,
    .services,
    .specialties{
        padding:50px 0;
    }

    .contact{
        padding:55px 0;
    }
}

@media(max-width:600px){
    .hero{
        padding:45px 0 40px;
    }

    .about,
    .services,
    .specialties,
    .contact{
        padding:45px 0;
    }

    .services-title,
    .specialties .services-title{
        margin-bottom:30px;
    }
}
