/* ===========================================
   SIMANTEC - Estilos Mínimos Personalizados
   Bootstrap 5.3.3 maneja el 98% de los estilos
   Solo lo absolutamente necesario aquí
   =========================================== */

/* ================================================
   1. VARIABLES CORPORATIVAS
   ================================================ */
:root {
    --simantec-primary: #207FC3;
    --simantec-green: #00A884;
    --simantec-aqua: #00D9A3;
    --carousel-height-lg: 550px;
    --carousel-height-md: 400px;
    --carousel-height-sm: 300px;
    --carousel-height-xs: 220px;
}

/* ================================================
   2. GRADIENTE DE TEXTO (único elemento no-Bootstrap)
   ================================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--simantec-primary) 0%, var(--simantec-green) 50%, var(--simantec-aqua) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   3. CARRUSEL - Solo lo esencial (Bootstrap maneja el resto)
   ================================================ */
/* Gradiente corporativo de fondo */
#heroCarousel,
.carousel-inner,
.carousel-item {
    background: linear-gradient(135deg, var(--simantec-primary) 0%, var(--simantec-green) 50%, var(--simantec-aqua) 100%);
}

/* Altura con variables CSS */
#heroCarousel { max-height: var(--carousel-height-lg); margin-top: 56px; }
.carousel-inner { max-height: var(--carousel-height-lg); }
.carousel-item { max-height: var(--carousel-height-lg); }
.carousel-item img { height: var(--carousel-height-lg); max-height: var(--carousel-height-lg); object-fit: contain; }

/* Controles - Colores corporativos */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(32, 127, 195, 0.9);
    border: 3px solid white;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--simantec-green);
}

/* ================================================
   4. RESPONSIVE - Ajustes por tamaño de pantalla
   ================================================ */
@media (max-width: 992px) {
    :root { --carousel-height-lg: var(--carousel-height-md); }
    .carousel-control-prev-icon, .carousel-control-next-icon { width: 3rem; height: 3rem; }
}

@media (max-width: 768px) {
    :root { --carousel-height-lg: var(--carousel-height-sm); }
    .carousel-control-prev-icon, .carousel-control-next-icon { width: 2.5rem; height: 2.5rem; border-width: 2px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .whatsapp-float i { font-size: 28px; }
    .whatsapp-float:hover { 
        min-width: 200px;
        height: 45px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    :root { --carousel-height-lg: var(--carousel-height-xs); }
    .carousel-control-prev-icon, .carousel-control-next-icon { width: 2rem; height: 2rem; border-width: 2px; }
    .whatsapp-float { bottom: 15px; right: 15px; width: 50px; height: 50px; }
    .whatsapp-float i { font-size: 26px; }
    .whatsapp-float:hover { 
        min-width: 180px;
        height: 42px;
        padding: 0 12px;
    }
    .whatsapp-text { font-size: 14px; }
}

/* ================================================
   5. PLANES - Efecto hover de agrandamiento
   ================================================ */
.plan-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden; /* Evita que la imagen se desborde */
}

.plan-card-hover:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Card body sin padding para que la imagen llene completamente */
.plan-card-body {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Altura mínima consistente */
}

/* Imagen se ajusta al card-body llenando todo el espacio */
.plan-image-hover {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Misma altura que el contenedor */
    object-fit: cover; /* COVER para llenar completamente */
    object-position: center; /* Centrar la imagen */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card-hover:hover .plan-image-hover {
    transform: scale(1.05);
}

/* ================================================
   6. WHATSAPP WIDGET - Flotante con animación
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 30px;
    z-index: 1060;
    animation: whatsappPulse 2s infinite;
    transition: all 0.4s ease;
    padding: 0;
    overflow: hidden;
}

.whatsapp-float i { 
    font-size: 30px; 
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.whatsapp-text { 
    opacity: 0;
    width: 0;
    white-space: nowrap;
    transition: all 0.4s ease; 
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.whatsapp-float:hover { 
    width: auto;
    min-width: 220px;
    height: 50px;
    padding: 0 20px;
    border-radius: 25px;
    background: #20BA5A;
    animation: none;
    gap: 10px;
}

.whatsapp-float:hover i { 
    transform: scale(1.1);
}

.whatsapp-float:hover .whatsapp-text { 
    opacity: 1;
    width: auto;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ================================================
   7. TABS DE PLANES - Estilo activo visible
   ============================================ */
#planesTabs .nav-link {
    color: #495057 !important;
    background-color: #f8f9fa !important;
    border: 2px solid transparent !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

#planesTabs .nav-link:hover {
    background-color: #e9ecef !important;
    color: #207FC3 !important;
    border-color: #207FC3 !important;
}

#planesTabs .nav-link.active,
#planesTabs button.nav-link.active,
button#hogar-tab.active {
    background: linear-gradient(135deg, #207FC3 0%, #00A884 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(32, 127, 195, 0.4) !important;
    font-weight: 600 !important;
}

/* Forzar estilo del botón activo específicamente */
button#hogar-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #207FC3 0%, #00A884 100%) !important;
    color: white !important;
}

/* ================================================
   8. COLORES CORPORATIVOS ESPECÍFICOS
   ============================================ */
.text-simantec-blue {
    color: #18529D !important;
}

/* ================================================
   9. UTILIDADES PARA IMÁGENES
   ============================================ */
.img-max-height-350 {
    max-height: 350px;
    object-fit: contain;
}

.img-max-height-80 {
    max-width: 80px;
    height: auto;
}

.img-max-height-220 {
    max-height: 220px;
    object-fit: contain;
}

.img-max-height-400 {
    max-height: 400px;
    object-fit: contain;
}

/* ================================================
   10. CÍRCULOS CON FONDO
   ============================================ */
.icon-circle-bg {
    width: 80px;
    height: 80px;
    background: rgba(32, 127, 195, 0.1);
    border-radius: 50%;
}

/* ================================================
   11. UTILIDADES PARA MAIN CONTENT
   ============================================ */
.main-content-page {
    margin-top: 60px;
    min-height: calc(100vh - 200px);
    font-size: 0.9rem;
}

/* ================================================
   12. ICONOS GRANDES
   ============================================ */
.icon-size-4rem {
    font-size: 4rem !important;
}

.icon-size-5rem {
    font-size: 5rem !important;
}

.icon-opacity-30 {
    opacity: 0.3;
}

/* ================================================
   13. CARDS Y CONTENEDORES
   ============================================ */
.card-min-height-400 {
    min-height: 400px;
    overflow: visible;
}

.ratio-min-height-400 {
    min-height: 400px;
}

/* ================================================
   FIN - TODO LO DEMÁS LO MANEJA BOOTSTRAP 5
   Usamos: d-flex, align-items-center, justify-content-center,
   rounded-circle, shadow-lg, transition, etc.
   ================================================ */
