/* General Styling */
:root {
    --primary-color: #EB69D6; /* Dark Blue/Gray */
    --secondary-color: #FF0084; /* Light Blue */
    --accent-color: #e74c3c; /* Red */
    --light-gray: #f4f4f4;
    --dark-text: #333;
    --white-text: #fff;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-gray);
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

.section-padding {
    padding: 30px 30px;
}

h1, h2, h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Ocultar el encabezado si ya no lleva el logo principal ni el título */
.hidden-header {
    display: none;
}

/* Navigation */
nav {
    background: var(--primary-color);
    color: var(--white-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-height: 60px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 80%;
    margin: auto;
}

.nav-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: right;
    margin: 0;
    flex-grow: 1;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: var(--white-text);
    text-decoration: none;
    padding: 15px 0;
    display: inline-block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0,0,0,0.2);
}

/* Hero Section - Nueva sección de bienvenida */
.hero-section {
    position: relative;
    height: 60vh; /* Ajusta la altura a un 60% del viewport */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Alinear abajo */
    padding-bottom: 50px; /* Opcional: Añade un poco de espacio en la parte inferior para que no toque el borde */
    text-align: center;
    color: var(--white-text);
    /*background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/marielys_espinoza.jpg');*/
    background-image: url('images/marielys_espinoza.jpg');
    background-size: cover;
    /* CAMBIO AQUÍ: La imagen se alinea a la parte superior */
    background-position: top center;
    /* background-attachment: fixed; /* Opcional: efecto parallax */
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: var(--white-text);
    line-height:40pt;
    margin-right: 400px;

}
/*
.hero-content p {
    font-size: 1.5em;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: var(--white-text);
}
*/




/* Media Query para la sección hero en dispositivos móviles */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh; /* Ajusta la altura para móviles */
        /* Puedes ajustar el padding en móvil si lo necesitas */
        padding-bottom: 30px;
    }

/*
    .hero-content p {
        font-size: 1.2em;
    }
    */
    .hero-content h1 {
        font-size: 1.5em;
        line-height:25pt;
        margin-right: 0;
 
    }
}

/* Estilos para el título y especialidad principal (ahora en la sección especialidad) */
.main-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.main-specialty {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 30px;
}

/* Sections */
section {
    background: var(--white-text);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Especialidad - Nueva estructura */
.doctor-bio {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin-top: 40px;
}

.doctor-image {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

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

.doctor-cv {
    flex-grow: 1;
    background-color: var(--light-gray);
    padding: 25px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.doctor-cv h3 {
    color: var(--secondary-color);
    text-align: left;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 5px;
}

.doctor-cv h3:first-of-type {
    margin-top: 0;
}

.doctor-cv ul {
    list-style: none;
    padding: 0;
    margin-left: 15px;
}

.doctor-cv ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.doctor-cv ul li::before {
    content: "\2022";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Añadimos box-shadow a la transición */
    cursor: pointer; /* Indica que es interactivo */
}

.service-item:hover {
    transform: translateY(-5px); /* Eleva el ítem 5px */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2); /* Sombra más pronunciada al elevarse */
}

.service-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* Estilos para las imágenes de servicio */
.service-image {
    /*max-width: 100%;*/
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



/* Form Styling */
#appointment-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white-text);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

.btn-agendar {
    background-color: #746EF6;
    color: var(--white-text);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: block;
    width: 200px;
    box-sizing: border-box;
}

.btn-agendar:hover {
    background-color: var(--primary-color);
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-block;
    background-color: #25d366;
    color: var(--white-text);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    position: fixed;
    bottom: 30px;
    right: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    background-color: #1da851;
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.5em;
    vertical-align: middle;
}


/* Nuevo estilo para la sección de "Llámanos" */
/*#centros {
    position: relative; /* Contenedor de referencia para la imagen */
/*}*/

/* Estilo para la imagen que se posicionará en la esquina */
.clinic-image {
    position: absolute;
    top: 20px; /* Ajusta la distancia desde la parte superior de la sección */
    right: 20px; /* Ajusta la distancia desde la parte derecha de la sección */
    width: 70px; /* Define el tamaño de la imagen */
    height: auto;
    z-index: 10; /* Asegura que la imagen esté por encima de otros elementos */
}

/* Footer */
footer {
    color: var(--white-text);
    padding: 12px;
    text-align: center;
    margin-top: 0px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.contact-info, .social-media {
    margin: 20px;
}

.contact-info h3, .social-media h3 {
    color: var(--white-text);
    margin-bottom: 15px;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info p a {
    color: var(--white-text);
    text-decoration: none;
}

.contact-info p a:hover {
    text-decoration: underline;
}

.contact-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-media a {
    color: var(--white-text);
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

/* Hamburger Button */
.hamburger {
    display: none; /* Oculto por defecto en escritorio */
    background: none;
    border: none;
    color: var(--white-text);
    font-size: 1.8em;
    cursor: pointer;
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .nav-container {
        justify-content: space-between;
        padding: 10px 15px;
    }

    .nav-logo {
        max-height: 35px;
    }

    .hamburger {
        display: block; /* Muestra el botón de hamburguesa SOLO en móvil */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 70%;
        height: 100%;
        background: var(--secondary-color);
        position: fixed;
        top: 0;
        right: -70%;
        padding-top: 60px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        transition: right 0.3s ease-out;
        z-index: 999;
        text-align: left;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px;
    }

    /* Overlay y scroll del cuerpo */
    body.menu-open {
        overflow: hidden;
    }
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    /* Ajustes para los títulos y subtítulos principales en móvil */
    .main-title {
        font-size: 2em;
    }

    .main-specialty {
        font-size: 1.1em;
    }

    .doctor-bio {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .doctor-image {
       /* width: 180px;
        height: 180px;*/
        width: 100%;
        height: auto;
    }

    .doctor-cv {
        padding: 20px;
    }

    .doctor-cv h3 {
        text-align: center;
    }

    .doctor-cv ul {
        margin-left: 0;
    }

    .doctor-cv ul li {
        padding-left: 0;
        text-align: left;
    }

    .doctor-cv ul li::before {
        left: 5px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        font-size: 1em;
        padding: 12px 20px;
    }

    .whatsapp-button i {
        font-size: 1.2em;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}


/*testimonios*/

.testimonial-section {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; 

    margin-bottom: 20px;
}

.testimonial-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-carousel {
    display: flex;
    white-space: nowrap;
    animation: scroll 45s linear infinite;
    width: fit-content;
}

.testimonial-carousel:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 300px; 
    margin: 10px;
    padding: 20px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    
    display: flex;
    flex-direction: column; 

    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

}

.testimonial-card:hover {
    transform: translateY(-5px); /* Se mueve 5px hacia arriba */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* La sombra se hace más grande */
}
.testimonial-card p {
    font-style: italic;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    order: 1; 
    white-space: normal; /* Asegura que el texto se ajuste */

    position: relative;
    padding-left: 25px; /* Deja espacio para el ícono */
    
}
.testimonial-card p::before {
    content: '"'; /* El ícono de comillas */
    font-size: 4em;
    font-family: serif;
    color: #FF0083;
    position: absolute;
    left: 0;
    top: -20px;
    opacity: 0.2;
}

.patient-info {
    display: flex; 
    align-items: center; 
    margin-top: auto; 
    order: 2; 
}

.patient-info img {
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px; 
   /*border: 2px solid #007bff;*/
}

.patient-info h3 {
    font-size: 1.1em;
    color: #FF0083;
    margin: 0; 
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}