/* ====== RESET BASE ====== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'Segoe UI', sans-serif;
    background:#f4f7fc;
    color:#1e2a38;
}

/* ===== SECCION SERVICIOS ===== */

.services-section{
    padding:80px 6%;
    background:#f5f8fc;
}

.container{
    width:90%;
    max-width:none;
    margin:auto;
}

/* TITULO */

.title{
    text-align:center;
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.subtitle{
    text-align:center;
    color:#6b7a8c;
    margin-bottom:70px;
}

/* GRID 3 COLUMNAS */

.services-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:50px;
}

/* TARJETAS */

.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
    transition:all .35s ease;
    position:relative;
}

/* IMAGEN */

.card img{
    width:100%;
    height:260px;
    object-fit:cover;
}

/* CONTENIDO */

.card-content{
    padding:28px;
}

.card-content h3{
    font-size:20px;
    margin-bottom:12px;
    color:#1f2d3d;
}

.card-content p{
    font-size:15px;
    color:#6b7a8c;
    line-height:1.6;
}

/* HOVER */

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 55px rgba(0,0,0,0.12);
}

.card:hover img{
    transform:scale(1.08);
}

/* EFECTO BRILLO */

.card::after{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:60%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    transition:0.6s;
}

.card:hover::after{
    left:120%;
}

/* ====== CARD ====== */

.card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
    transition:all .4s ease;
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:transform .6s ease;
}

.card-content{
    padding:25px;
}

.card-content h3{
    font-size:20px;
    margin-bottom:10px;
    font-weight:600;
}

.card-content p{
    font-size:14px;
    color:#6c7a89;
    margin-bottom:18px;
    line-height:1.6;
}

.card-content a{
    text-decoration:none;
    color:#2f80ed;
    font-weight:600;
    font-size:14px;
    transition:.3s;
}

.card-content a:hover{
    color:#1c5dc9;
}

/* Hover elegante */
.card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 45px rgba(0,0,0,0.1);
}

.card:hover img{
    transform:scale(1.08);
}

/* ====== CTA SECTION ====== */

.cta-section{
    margin-top:120px;
    background:linear-gradient(135deg,#2f80ed,#1c5dc9);
    padding:90px 5%;
}

.cta-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    color:#fff;
}

.cta-img img{
    max-width:350px;
}

.cta-content h2{
    font-size:40px;
    font-weight:700;
    margin-bottom:20px;
    line-height:1.2;
}

.cta-content p{
    margin-bottom:25px;
    opacity:.9;
}

.cta-buttons{
    display:flex;
    align-items:center;
    gap:25px;
}

.cta-buttons span{
    font-size:18px;
    font-weight:600;
}

.btn{
    background:#fff;
    color:#FFFFFF;
    padding:12px 28px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}


/* ====== RESPONSIVE ====== */

/* ===== CTA CON IMAGEN DE FONDO ===== */

.cta-section{
    position:relative;
    padding:120px 5%;
    background:url("img/dental.jpg") center/cover no-repeat;
}


.cta-container{
    position:relative;
    z-index:2;
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:flex-end; /* empuja el contenido a la derecha */
}

.cta-content{
    max-width:500px;
    color:white;
    text-align:left;
}

.cta-content h2{
    font-size:42px;
    margin-bottom:20px;
    line-height:1.2;
}

.cta-content p{
    margin-bottom:25px;
    opacity:.9;
}

.cta-buttons{
    display:flex;
    gap:25px;
    align-items:center;
}

.cta-buttons span{
    font-size:20px;
    font-weight:600;
}

.btn{
    background:white;
    color:#2f80ed;
    padding:12px 28px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    background:#e9f1ff;
}

/* ============================= */
/* RESPONSIVE SERVICIOS CELULAR */
/* ============================= */

@media (max-width:900px){

/* HERO */
.hero-2{
height:auto;
min-height:70vh;
}

.hero-content{
padding:40px 20px;
max-width:100%;
}

.hero-text h1{
font-size:32px;
line-height:1.2;
}

.hero-text p{
font-size:15px;
line-height:1.6;
}

/* NAVBAR */
.navbar{
flex-direction:column;
align-items:center;
padding:20px;
gap:15px;
}

.nav-links{
flex-wrap:wrap;
justify-content:center;
gap:10px 18px;
}

.nav-links a{
font-size:14px;
}

/* SERVICIOS */
.services-section{
padding:60px 20px;
}

.title{
font-size:28px;
}

.subtitle{
font-size:15px;
}

/* GRID SERVICIOS */
.services-grid{
grid-template-columns:1fr;
gap:25px;
}

/* CARDS */
.card img{
height:220px;
object-fit:cover;
}

.card-content h3{
font-size:18px;
}

.card-content p{
font-size:14px;
line-height:1.6;
}

/* CTA */
.cta-section{
padding:60px 20px;
text-align:center;
}

.cta-content h2{
font-size:26px;
}

.cta-buttons{
flex-direction:column;
gap:15px;
align-items:center;
}

/* FOOTER */
.footer-content{
grid-template-columns:1fr;
text-align:center;
}

}

/* ============================= */
/* AJUSTES EXTRA PARA CELULAR */
/* ============================= */

@media (max-width:600px){

/* HERO */
.hero-text h1{
font-size:26px;
line-height:1.2;
}

.hero-text p{
font-size:14px;
}

/* CTA */
.cta-content h2{
font-size:22px;
line-height:1.3;
}

.cta-content p{
font-size:14px;
}

/* BOTONES */
.cta-buttons span{
font-size:16px;
}

.cta-buttons .btn{
font-size:14px;
padding:10px 20px;
}

}

@media (max-width:600px){

/* CTA */
.cta-content{
display:flex;
flex-direction:column;
align-items:flex-end;
text-align:right;
padding:30px 20px;
}

/* TITULO CTA */
.cta-content h2{
font-size:20px;
line-height:1.3;
max-width:260px;
}

/* TEXTO */
.cta-content p{
font-size:13px;
max-width:220px;
}

/* BOTONES */
.cta-buttons{
flex-direction:column;
align-items:flex-end;
gap:8px;
margin-top:10px;
}

.cta-buttons span{
font-size:14px;
}

.cta-buttons .btn{
font-size:13px;
padding:8px 18px;
}

}

@media (max-width:1000px){
    .services-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:600px){
    .services-grid{
        grid-template-columns:1fr;
    }
}

/* BOTÓN FLOTANTE WHATSAPP */
.float-wa {
    position: fixed;
    bottom: 30px; /* Separación del borde inferior */
    right: 30px;  /* Separación del borde derecho */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* Siempre por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* EFECTO HOVER */
.float-wa:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* AJUSTE PARA MÓVIL (Más pequeño para no tapar contenido) */
@media (max-width: 768px) {
    .float-wa {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* ANIMACIÓN OPCIONAL DE PULSO */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.float-wa {
    animation: pulse-wa 2s infinite;
}

/* MAPA */

.footer-col.map {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-col.map h4 {
    font-size: 16px;
    margin-bottom: 12px;
    white-space: nowrap;
}

/* El contenedor del mapa para que encaje en el cuadro azul */
.map-container {
    width: 100%;
    height: 180px; /* Ajusta esta altura según prefieras */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* RESPONSIVE: En móvil el footer ya cambia a 1 o 2 columnas según tu código previo */
@media (max-width: 768px) {
    .map-container {
        height: 250px; /* Un poco más alto en móvil para que sea útil */
    }
}

/* MAPA FIN */