@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Khand:wght@300;400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import "generalcss.css";/*REGLAS GENERALES -No todas se estan usando, hay que refinar*/
@import "iconsfontcss.css";/*ICONOS DE LA FUENTE DE GOOGLE*/

.ix-hero {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
    border-radius: 0;
    margin-bottom: 4rem;
    width: 99vw;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    
    /* Imagen de fondo
    background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    */
    
    background-image: url('/img/Banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Overlay oscuro para que el texto se vea bien */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 0;
    }
}

/* Asegurar que el contenido esté por encima del overlay */
.ix-hero > * {
    position: relative;
    z-index: 1;
}

/* Ajustar colores del texto para que contrasten con el overlay */
.ix-hero-badge {
    background: #2e7d32;
}

.ix-hero-titulo {
    color: #ffffff;
}

.ix-hero-titulo span::after {
    background: rgba(46, 125, 50, 0.8);
}

.ix-hero-desc {
    color: #f0f0f0;
}

.ix-stat-num {
    color: #a5d6a7;
}

.ix-stat-label {
    color: #e0e0e0;
}

.ix-hero-badge {
    display: inline-block;
    background: #2e7d32;
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.ix-hero-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1b3b1b;
    line-height: 1.3;
}

.ix-hero-titulo span {
    color: #2e7d32;
    position: relative;
    display: inline-block;
}

.ix-hero-titulo span::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #c8e6c9;
    z-index: -1;
    border-radius: 4px;
}

.ix-hero-desc {
    font-size: 1.1rem;
    color: #4a5b4a;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.ix-hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.ix-btn-cita {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ix-btn-cita:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

.ix-btn-login {
    background-color: #f5f5f5;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ix-btn-login:hover {
    background-color: #2e7d32;
    color: white;
}

.ix-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.ix-stat {
    text-align: center;
}

.ix-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2e7d32;
}

.ix-stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* ════════════════════════════════════════════ */
/* SECCIÓN SERVICIOS                            */
/* ════════════════════════════════════════════ */

.ix-seccion-label {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ix-seccion-titulo {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1b3b1b;
    margin-bottom: 2rem;
}

.ix-servicios-grid {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ix-card {
    /*background-color: #ffffff;*/
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f0e8;
}

.ix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #c8e6c9;
}

.ix-card-icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.ix-card-nombre {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b3b1b;
    margin-bottom: 0.5rem;
}

.ix-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ════════════════════════════════════════════ */
/* MODAL DE CITA                                */
/* ════════════════════════════════════════════ */

.ix-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.ix-modal-overlay.abierto {
    visibility: visible;
    opacity: 1;
}

.ix-modal-box {
    background-color: white;
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ix-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.ix-modal-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b3b1b;
    margin: 0;
}

.ix-modal-cerrar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.ix-modal-cerrar:hover {
    color: #d32f2f;
}

.ix-modal-body {
    padding: 1.5rem;
}

.ix-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* ════════════════════════════════════════════ */
/* PASOS DEL MODAL                              */
/* ════════════════════════════════════════════ */

.ix-paso-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.ix-paso-dot {
    width: 32px;
    height: 32px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.ix-paso-dot.activo {
    background-color: #2e7d32;
    color: white;
}

.ix-paso-dot.completado {
    background-color: #81c784;
    color: white;
}

.ix-paso-linea {
    width: 60px;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 0.5rem;
}

.ix-paso {
    display: none;
}

.ix-paso.activo {
    display: block;
}

/* ════════════════════════════════════════════ */
/* CAMPOS DEL MODAL                             */
/* ════════════════════════════════════════════ */

.ix-campo {
    margin-bottom: 1rem;
}

.ix-campo label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
}

.ix-campo input,
.ix-campo select,
.ix-campo textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.ix-campo input:focus,
.ix-campo select:focus,
.ix-campo textarea:focus {
    outline: none;
    border-width: 1px;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

/* ════════════════════════════════════════════ */
/* ALERTAS DEL MODAL                            */
/* ════════════════════════════════════════════ */

.ix-alerta {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.ix-alerta.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.ix-alerta.info {
    display: block;
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 3px solid #1565c0;
}

.ix-alerta.ok {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #2e7d32;
}

/* ════════════════════════════════════════════ */
/* BOTÓN FLOTANTE WHATSAPP                      */
/* ════════════════════════════════════════════ */

.ix-wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.ix-wa-float:hover {
    transform: scale(1.1);
    background-color: #20b959;
}

.ix-wa-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/*NUEVO CON SOBRAS*/
.ix-hero-badge {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); /* Sombra sutil para el badge */
}

.ix-hero-titulo {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Sombra más pronunciada para el título */
}

.ix-hero-desc {
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Sombra sutil para la descripción */
}

/* Estadísticas: Números */
.ix-stat-num {
    color: #a5d6a7; /* Color original */
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7); /* Sombra para contraste */
}

/* Estadísticas: Etiquetas */
.ix-stat-label {
    color: #e0e0e0; /* Color original */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Sombra para contraste */
}

/* ════════════════════════════════════════════ */
/* RESPONSIVE AJUSTES                           */
/* ════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ix-hero {
        padding: 2rem 1rem;
    }
    
    .ix-hero-titulo {
        font-size: 1.8rem;
    }
    
    .ix-seccion-titulo {
        font-size: 1.6rem;
    }
    
    .ix-servicios-grid {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ix-hero-stats {
        gap: 1.5rem;
    }
    
    .ix-stat-num {
        font-size: 1.4rem;
    }
    
    .ix-paso-linea {
        width: 30px;
    }
    
    .ix-modal-box {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .ix-hero-btns {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .ix-btn-cita,
    .ix-btn-login {
        text-align: center;
    }
    
    .ix-hero-stats {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .ix-card {
        padding: 1.2rem;
    }
}