/* =========================================
   1. VARIABLES Y BASE
   ========================================= */
:root {
    --primary: #0066FF; 
    --dark: #1a1a1a;
    --whatsapp: #25d366;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal en móviles */
}

/* =========================================
   2. NAVBAR (MENÚ)
   ========================================= */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.95) !important; /* Ligeramente transparente */
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* =========================================
   3. HERO SECTION (CABECERA)
   ========================================= */
.hero-section {
    padding-top: 120px;
    padding-bottom: 0px; /* Ajuste para pegar con la sección siguiente */
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    min-height: 35vh; /* Altura compacta solicitada */
}

/* Ajuste del vídeo en el Hero */
.ratio video {
    border-radius: inherit; 
    object-fit: cover;
}

/* =========================================
   4. TARJETAS DE SERVICIOS
   ========================================= */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    background-color: #ffffff;
}

.service-card:hover {
    transform: translateY(-10px); /* Efecto elevación */
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

.service-card i {
    color: var(--primary);
}

/* =========================================
   5. SECCIÓN CÓMO FUNCIONA (INTERACTIVA)
   ========================================= */
.step-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.step-item:hover {
    background-color: #f8f9fa;
}

.step-item.active {
    background-color: #f0f7ff;
    border: 1px solid #cce5ff;
}

/* Iconos de los pasos */
.step-item .step-icon {
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    background-color: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Animación de cambio de imagen */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0.5; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   6. PRECIOS Y TARJETAS GENERALES
   ========================================= */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover suave en tarjetas de precios */
.card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08);
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* =========================================
   7. SECCIÓN DE CONTACTO
   ========================================= */
.section-contacto .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.section-contacto .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

/* Efecto hover en botón CTA final */
.scale-hover {
    transition: transform 0.2s;
}
.scale-hover:hover {
    transform: scale(1.05);
}

/* =========================================
   8. BOTÓN FLOTANTE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 10000; /* Siempre encima */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1eba55;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Animación de pulso */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   9. RESPONSIVE (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* En móvil el botón de WhatsApp un poco más pequeño */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}