.container-home{
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    padding: 40px;
    background-color: white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Estilos para los círculos de fondo */
.bubble {
    position: absolute;
    background-color: rgba(220, 230, 255, 0.5);
    /* Color azul claro semitransparente */
    border-radius: 50%;
    pointer-events: none;
}

.bubble:nth-child(1) {
    width: 150px;
    height: 150px;
    top: -50px;
    right: 150px;
}

.bubble:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 100px;
    right: 0px;
}

/* Columna Izquierda */
.left-column {
    padding-right: 20px;
    z-index: 1;
    /* Para estar sobre los círculos */
}

/* Insignias */
.badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.badge {
    background-color: #e6f0ff;
    color: #2a64c4;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Título */
.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #212121;
}

.hero-title .highlight {
    color: #2a64c4;
    /* Color azul para "Healthcare" */
    border-bottom: 4px solid #2a64c4;
    /* Subrayado */
    padding-bottom: 5px;
}

/* Descripción */
.hero-description {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Estadísticas */
.stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    font-size: 28px;
    font-weight: 700;
    color: #2a64c4;
}

.stat-item span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #6c757d;
    margin-top: 5px;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, opacity 0.3s;
}

.btn-primary {
    background-color: #2a64c4;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #20509a;
}

.btn-secondary {
    background-color: transparent;
    color: #2a64c4;
    border: 2px solid #2a64c4;
}

.btn-secondary:hover {
    opacity: 0.8;
}

/* Contacto de Emergencia */
.emergency-contact {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.contact-icon {
    background-color: #2a64c4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 20px;
}

/* Columna Derecha */
.right-column {
    position: relative;
}



/* Contenedor de Valoración (Estrellas) */
.rating-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.stars {
    color: gold;
    /* O el color de las estrellas en la imagen */
    font-size: 22px;
    margin-bottom: 5px;
}

.rating-box p {
    margin: 0;
    font-weight: 600;
    color: #212121;
}

/* Contenedor de Horario (Meet Availability) */
.availability-box {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2;
}

.availability-box .header {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 5px;
}

.availability-box .time {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 5px;
}

.availability-box .doctor {
    font-size: 14px;
    color: #6c757d;
}

.availability-box .icon {
    color: #2a64c4;
    margin-right: 5px;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
.action-buttons {
        flex-direction: column;
        align-items: center; /* Esto evita que se estiren al 100% */
        gap: 15px;
        padding-right: 1rem;
        
    }
    .container-home{
        grid-template-columns: 1fr;
        padding: 30px;
        box-sizing: border-box;
        padding-right: 20px !important;
    }

    .left-column {
        padding-right: 0;
    }

    .hero-title {
        font-size: 38px;
    }

    .stats {
        flex-wrap: wrap;
    }

    .right-column {
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 30px;
    }

    .badge {
        font-size: 12px;
    }
}

/* Iconos (Simulados con texto o usando una fuente de iconos como Font Awesome) */
.icon-star:before {
    content: '★';
}

.icon-calendar:before {
    content: '📅';
}

.icon-phone:before {
    content: '📞';
}


.image-container {
    width: 100%;
    height: 100%; 

    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative; /* Asegura que las tarjetas sigan flotando correctamente */
    overflow: hidden; /* Para contener la imagen y darle el border-radius */
}

.image-home-doctore {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin distorsionarse, recortando si es necesario */
    display: block; /* Elimina posibles espacios en blanco debajo de la imagen */
    border-radius: 15px; /* Para que la imagen herede el borde redondeado */
}

.title-one{
    font-size: .8rem;
}

.highlight2 {
    color: #2a64c4;
}

.hero-title .highlight {
    /* 1. Asegurar que tenga una transición base */
    transition: 
        opacity 0.3s ease-in-out,
        border-bottom 0.3s ease-in-out; 
    
    /* Nota: Mantiene los estilos de color y subrayado que ya tenías */
    color: #2a64c4;
    border-bottom: 4px solid #2a64c4;
    padding-bottom: 5px;
}

/* 2. Clase para forzar la desaparición (usada por JavaScript) */
.hero-title .highlight.fade-out {
    opacity: 0;
}






/* ================================================= */
/* === OPTIMIZACIÓN MÓVIL: CONTAINER-HOME === */
/* ================================================= */

@media (max-width: 992px) {
    .right-column{
        display: none !important;
    }
    .container-home {
        /* Eliminamos el padding excesivo que quita espacio en móvil */
        padding: 20px !important;
        margin: 10px auto;
        width: 95%;
        gap: 20px;
    }

    .hero-title {
        /* Evita que el título sea gigantesco en tablets */
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .right-column {
        /* Ajustamos altura para que la imagen no sea eterna */
        min-height: 350px !important;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-description {
        text-align: center;
        font-size: 15px;
    }

    /* --- AJUSTE DE ESTADÍSTICAS --- */
    .stats {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos columnas en lugar de una fila larga */
        gap: 20px;
        justify-items: center;
        text-align: center;
    }

    /* --- TARJETAS FLOTANTES (El mayor problema en móvil) --- */
    .rating-box, .availability-box {
        position: relative !important; /* Dejan de flotar sobre la imagen */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 10px auto;
        width: 90%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        text-align: center;
    }

    .image-container {
        height: 250px !important; /* Imagen más pequeña en celulares */
        margin-bottom: 20px;
    }

    /* --- BOTONES --- */
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 12px;
    }

    /* --- CONTACTO EMERGENCIA --- */
    .emergency-contact {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-icon {
        margin-right: 0;
    }

    /* --- BUBBLES (Círculos de fondo) --- */
    .bubble {
        display: none; /* Los ocultamos en móvil para evitar scroll horizontal raro */
    }
}

/* Fix para evitar que el subrayado del highlight rompa el flujo */
.hero-title .highlight {
    display: inline-block;
    white-space: nowrap; /* Evita que el subrayado se corte a la mitad */
}