/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Contenedor central */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 20px 0;
}


section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Sobre mí */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.about-content img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

/* Cards de proyectos */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: white;
    padding: 20px;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

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



.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #666;
    font-size: 0.9rem;
}

/* Contacto */
#contacto {
    background-color: #f0f4f8;
    text-align: center;
    padding: 60px 0;
}


#contacto p {
    margin: 10px 0;
    font-size: 1.1rem;
}

#contacto a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

#contacto a:hover {
    text-decoration: underline;
}




/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 25px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
}
/* Contacto: botones de redes sociales modernos */
.contacto-container {
    text-align: center;
    padding: 40px 20px;
}

.contacto-container .correo {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}

.contacto-container .correo:hover {
    text-decoration: underline;
}


.btn-social{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:14px 28px;
    margin:10px 8px 10px 0;

    border:none;
    border-radius:40px;

    font-size:1rem;
    font-weight:600;
    text-decoration:none;

    transition:all .35s ease;
    cursor:pointer;
}
.hero .btn-social{
    background:white;
    color:#357ABD;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

.hero .btn-social:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,.25);
}
.redes {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-social i{
    font-size:1.1rem;
}

/* Colores por red */
.btn-social.github { background: #333; }
.btn-social.github:hover { background: #555; }

.btn-social.linkedin { background: #0077b5; }
.btn-social.linkedin:hover { background: #005582; }

.btn-social.instagram { background: #e4405f; }
.btn-social.instagram:hover { background: #b22c44; }
/* ================= HERO ================= */

.hero {
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    color: white;
    padding: 70px 20px;
}

.hero .container{
    background: transparent;
    box-shadow: none;
}

.hero-container{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;

}

.hero-texto{

    flex:1;

}

.hero-texto h1{

    font-size:3rem;
    margin-bottom:15px;
    line-height:1.2;

}

.hero-texto h2{

    font-size:1.6rem;
    font-weight:400;
    margin-bottom:25px;

}

.doctor{

    font-size:1.25rem;
    margin-bottom:20px;

}

.descripcion{

    font-size:1.1rem;
    line-height:1.8;
    margin-bottom:30px;

}

.hero-servicios{

    margin-bottom:35px;

}

.hero-servicios p{

    margin:8px 0;
    font-size:1.05rem;

}

.hero-botones{

    display:flex;
    gap:15px;
    flex-wrap:wrap;

}

.hero-imagen{

    flex:0 0 360px;
    text-align:center;

}

.hero-imagen img{
    width:310px;
    max-width:310px;
    height:auto;
    display:block;
    margin:auto;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
}

.hero .btn-social{

    font-size:1rem;

}

/* BOTÓN WHATSAPP CORREGIDO */
.btn-social.whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-social.whatsapp:hover {
    background-color: #1ebe5d;
}

.card img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:15px;
}
@media (max-width:768px){

.hero-container{

    flex-direction:column-reverse;

    text-align:center;

}

.hero-botones{

    justify-content:center;

}

.hero-texto h1{

    font-size:2.2rem;

}

.hero-texto h2{

    font-size:1.3rem;

}

.hero-imagen{

    flex:auto;

}
} 
/* ================= PÁGINAS INTERNAS ================= */

.pagina-interna {
    background-color: #f9f9f9;
    min-height: 100vh;
}

/* Encabezado de las páginas internas */

.pagina-interna-header {
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    color: white;
    text-align: center;
    padding: 55px 20px;
}

.pagina-interna-header h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.pagina-interna-header p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: auto;
    line-height: 1.6;
}

/* ================= CONTENIDO ================= */

.contenido-interno {
    width: 90%;
    max-width: 900px;
    margin: 40px auto 60px;
    background-color: white;
    padding: 45px 55px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ================= TÍTULOS ================= */

.contenido-interno h2 {
    color: #357ABD;
    font-size: 1.7rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.3;
}

.contenido-interno h2:first-child {
    margin-top: 0;
}

.contenido-interno h3 {
    color: #444;
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ================= TEXTO ================= */

.contenido-interno p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #444;
}

/* ================= LISTAS ================= */

.contenido-interno ul {
    margin: 15px 0 30px 0;
    padding-left: 0;
    list-style: none;
}

.contenido-interno li {
    position: relative;
    padding: 8px 10px 8px 28px;
    margin-bottom: 4px;
    line-height: 1.6;
    color: #444;
}

/* Marcador azul */

.contenido-interno li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 6px;
    color: #357ABD;
    font-size: 1.25rem;
    font-weight: bold;
}

/* ================= PREGUNTAS FRECUENTES ================= */

.preguntas-frecuentes {
    background-color: #f5f8fb;
    padding: 25px;
    border-radius: 10px;
    margin-top: 40px;
}

.preguntas-frecuentes h2 {
    margin-top: 0;
}

.preguntas-frecuentes h3 {
    color: #357ABD;
}

/* ================= LLAMADO A LA ACCIÓN ================= */

.agenda-interna {
    margin-top: 45px;
    padding: 30px;
    background-color: #eef5fb;
    border-radius: 10px;
    text-align: center;
}

.agenda-interna h2 {
    margin-top: 0;
    text-align: center;
}

.agenda-interna p {
    max-width: 700px;
    margin: 0 auto 25px;
}

.agenda-interna .btn-social {
    display: inline-flex;
    margin: 5px;
}

/* ================= RESPONSIVO PÁGINAS INTERNAS ================= */

@media (max-width: 768px) {

    .pagina-interna-header {
        padding: 45px 20px;
    }

    .pagina-interna-header h1 {
        font-size: 2rem;
    }

    .pagina-interna-header p {
        font-size: 1rem;
    }

    .contenido-interno {
        width: 92%;
        padding: 30px 25px;
        margin-top: 25px;
    }

    .contenido-interno h2 {
        font-size: 1.5rem;
    }

    .contenido-interno h3 {
        font-size: 1.1rem;
    }

    .contenido-interno p,
    .contenido-interno li {
        font-size: 0.98rem;
    }

    .contenido-interno li {
        padding-left: 25px;
    }

    .preguntas-frecuentes,
    .agenda-interna {
        padding: 20px;
    }
}/* =====================================================
   CONTACTO
   ===================================================== */

#contacto {
    padding: 70px 20px;
    background: #f4f8fc;
}


.contacto-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}


/* ---------- TÍTULO ---------- */

.contacto-titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


.contacto-titulo i {
    font-size: 32px;
    color: #1976d2;
}


.contacto-titulo h2 {
    margin: 0;
    font-size: 36px;
    color: #333;
}


.contacto-subtitulo {
    margin: 15px 0 35px;
    font-size: 20px;
    color: #444;
}


/* ---------- TARJETAS DE CONTACTO ---------- */

.contacto-opciones {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.contacto-card {
    display: flex;
    align-items: center;
    text-align: left;

    background: #ffffff;

    padding: 18px 25px;

    border-radius: 16px;

    text-decoration: none;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.contacto-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}


/* ---------- ICONOS ---------- */

.contacto-icono {
    width: 58px;
    height: 58px;

    min-width: 58px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 20px;

    font-size: 25px;
}


/* Email */

.email-icono {
    background: #e7f0ff;
    color: #1976d2;
}


/* WhatsApp */

.whatsapp-icono {
    background: #e5f8ee;
    color: #18a957;
}


/* Ubicación */

.ubicacion-icono {
    background: #ffe8ef;
    color: #e83e68;
}


/* ---------- TEXTO ---------- */

.contacto-texto {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.contacto-texto span {
    font-size: 16px;
    color: #555;
}


.contacto-texto strong {
    font-size: 18px;
    color: #1976d2;
    font-weight: 500;
}


/* La ubicación no es un enlace */

.contacto-card:last-child .contacto-texto strong {
    color: #333;
}


/* ---------- TÍTULO REDES ---------- */

.redes-titulo {
    display: flex;
    align-items: center;
    gap: 25px;

    max-width: 800px;

    margin: 45px auto 25px;
}


.redes-titulo span {
    flex: 1;
    height: 1px;
    background: #d9e3ee;
}


.redes-titulo h3 {
    margin: 0;

    font-size: 24px;

    color: #333;

    white-space: nowrap;
}


/* ---------- REDES ---------- */

.redes {
    display: flex;
    justify-content: center;
    gap: 22px;

    flex-wrap: wrap;
}


.redes .btn-social {
    width: 190px;

    padding: 16px 20px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 17px;
    font-weight: 500;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.redes .btn-social:hover {
    transform: translateY(-3px);

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}


.redes .btn-social i {
    font-size: 21px;
}


/* ---------- MÓVILES ---------- */

@media (max-width: 600px) {

    #contacto {
        padding: 50px 15px;
    }


    .contacto-titulo h2 {
        font-size: 30px;
    }


    .contacto-subtitulo {
        font-size: 18px;
    }


    .contacto-card {
        padding: 15px;
    }


    .contacto-icono {
        width: 50px;
        height: 50px;
        min-width: 50px;

        margin-right: 15px;

        font-size: 21px;
    }


    .contacto-texto strong {
        font-size: 15px;

        word-break: break-word;
    }


    .redes-titulo {
        gap: 12px;
    }


    .redes-titulo h3 {
        font-size: 20px;
    }


    .redes .btn-social {
        width: 100%;
        max-width: 280px;
    }

}