
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #fafbfc;
    color: #333333;
    line-height: 1.6;
}

/* NAVEGACIÓN */
header {
    background-color: #ffffff;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-size: 22px;
    font-weight: 700;
    color: #2E5A44; 
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 11px;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 1px;
    margin-top: -2px;
}

header nav a {
    text-decoration: none;
    color: #555;
    margin-left: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

header nav a:hover {
    color: #468B66;
}


.container {
    padding: 80px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 32px;
    color: #2E5A44;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.logo-icon {
    width: 38px;
    height: 38px;
    background-color: #e8f2ed; 
    padding: 6px;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon {
    transform: scale(1.1); 
}


.logo-img {
    height: 130px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.hero {
    background: linear-gradient(135deg, rgba(240,247,244,0.95), rgba(220,237,230,0.9)), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?q=80&w=1200') no-repeat center center/cover;
    height: 75vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.badge {
    background-color: #2E5A44;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 42px;
    color: #1c3d2c;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
}


.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #25D366; 
    color: white;
    box-shadow: 0 4px 10px rgba(37,211,102,0.3);
}

.btn-primary:hover {
    background-color: #1ebd58;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #2E5A44;
    border: 2px solid #2E5A44;
}

.btn-secondary:hover {
    background-color: #2E5A44;
    color: white;
}

.about-grid {
    display: grid;
    gap: 50px;
    align-items: center;
}

.img-placeholder {
    background-color: #e8f2ed;
    height: 380px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2E5A44;
    font-size: 60px;
    border: 2px dashed #468B66;
}


.rostro-grid {
    width: 360px;
    height: 360px;
    background-color: #f0f0f0;
    border-radius: 0%; /* Puedes cambiarlo a 50% para un círculo perfecto */
    overflow: hidden;
    /* Añadimos el borde verde fijo y un ligero padding para separarlo */
    border: 10px solid #2E5A44; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.rostro-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-text h3 {
    color: #468B66;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}


.services-section {
    background-color: #f0f5f2;
    text-align: center;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46,90,68,0.1);
}


.service-icon {
    width: 200px;          
    height: 200px;
    margin: 0 auto 15px auto; 
    border-radius: 10%;   
    overflow: hidden;   
    background-color: #f0f5f2; 
}


.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;     
    object-position: center;
}

.service-card h3 {
    font-size: 20px;
    color: #2E5A44;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14.5px;
    color: #666;
}

/* CARRUSEL */
.galeria-section {
    text-align: center;
}

.carrusel-wrapper {
    position: relative;
    max-width: 800px; /* Ancho máximo del carrusel en la pantalla */
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carrusel-container {
    display: flex;
    overflow-x: auto; /* Permite el deslizamiento horizontal */
    scroll-behavior: smooth; /* Hace que el movimiento sea suave */
    scroll-snap-type: x mandatory; /* Fuerza a que la foto se encaje perfecta en el centro */
    scrollbar-width: none; /* Esconde la barra de scroll en Firefox */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Esconde la barra de scroll en Chrome, Safari y Edge */
.carrusel-container::-webkit-scrollbar {
    display: none;
}

.carrusel-slide {
    min-width: 100%; /* Cada foto toma el 100% del ancho del carrusel */
    scroll-snap-align: start; /* Alineación del imán de scroll */
    position: relative;
    height: 450px; /* Alto fijo para que todas las fotos se vean del mismo tamaño */
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que las fotos de los pacientes se distorsionen */
    object-position: center;
}

/* Texto descriptivo sobre la foto */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); /* Gradiente oscuro para que se lea el texto */
    color: white;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
}

/* Flechas de navegación */
.carrusel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(46, 90, 68, 0.8); /* El color verde de tu mami con transparencia */
    color: white;
    text-decoration: none;
    font-size: 24px;
    padding: 12px 18px;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.carrusel-arrow:hover {
    background-color: #2E5A44;
}

.arrow-left {
    left: -20px; /* Saca la flecha un poquito a la izquierda */
}

.arrow-right {
    right: -25px; /* Saca la flecha un poquito a la derecha */
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .carrusel-slide {
        height: 300px; /* Más bajito en pantallas pequeñas */
    }
    .carrusel-arrow {
        display: none; /* En celular es mejor que deslicen con el dedo directamente */
    }
}

/* TESTIMONIOS */
.testimonials-section {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #468B66;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    text-align: left;
}

.stars {
    margin-bottom: 10px;
    font-size: 14px;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    color: #2E5A44;
    font-size: 16px;
}

.reviews-link {
    color: #468B66;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s;
}

.reviews-link:hover {
    color: #2e5a44;
    text-decoration: underline;
}


.contact-section {
    background-color: #2E5A44;
    color: white;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    color: white;
    margin-bottom: 15px;
}

.contact-info p {
    color: #e0f0e8;
    margin-bottom: 30px;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    width: fit-content;
}

.info-item i {
    font-size: 20px;
    color: #25D366;
}

.info-item:hover span {
    text-decoration: underline;
}

.social-medias a {
    color: white;
    font-size: 24px;
    margin-right: 20px;
    transition: color 0.3s;
}

.social-medias a:hover {
    color: #25D366;
}

/* CAJA DE ACCIÓN FORMULARIO */
.contact-action {
    background-color: rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-action h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-action p {
    color: #e0f0e8;
    margin-bottom: 25px;
    font-size: 15px;
}

.btn-form {
    background-color: #ffffff;
    color: #2E5A44;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.btn-form:hover {
    background-color: #f0f5f2;
    transform: translateY(-2px);
}


footer {
    background-color: #1c3d2c;
    color: #a3c4b4;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* RESPONSIVE - Ajuste final */
@media (max-width: 768px) {
    header { padding: 15px 5%; flex-direction: column; gap: 10px; }
    header nav a { margin: 0 10px; font-size: 14px; }
    
    .hero { height: auto; padding: 60px 5%; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }

    /* ESTO ES LO QUE ARREGLA TU PROBLEMA */
    .about-grid { 
        grid-template-columns: 1fr; /* Una sola columna para que el texto baje */
        gap: 20px; 
        padding: 20px;
    }
    
    .rostro-grid {
        width: 100%; /* Ajusta el ancho al 100% del contenedor */
        height: auto; /* Mantiene la proporción */
        max-width: 360px; /* Para que no se vea gigante */
        margin: 0 auto; /* Centra la imagen */
    }

    .about-text { 
        padding: 0 15px; 
        width: 100%; 
        text-align: center; /* Opcional: queda mejor centrado en móvil */
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .contact-action {
        width: 100%;
        margin-top: 20px;
        padding: 25px;
    }
}