/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 13/04/2026, 01:57:07 PM
    Author     : kpesantez
*/
/* =========================
   GENERAL
========================= */

#page-domicilio {
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    padding: 60px 0;
}

/* =========================
   TÍTULOS
========================= */

#page-domicilio .titulo-seccion,
#page-domicilio-personal .titulo-seccion {
    font-weight: 800;
    font-size: 26px;
    color: #0f172a;
}

/* =========================
   BADGE RESPONSIVE (TU PROBLEMA SOLUCIONADO)
========================= */

.titulo-seccion .badge {
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    line-height: 1.3;
    padding: 8px 14px;
    border-radius: 999px;
    word-break: break-word;
}

/* =========================
   CARD BASE (DOMICILIO)
========================= */

#page-domicilio .card {
    border-radius: 20px;
    background: #fff !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

#page-domicilio .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* =========================
   IMAGENES GENERALES
========================= */

#page-domicilio img {
    border-radius: 14px;
}

/* =========================
   TABS MODERNOS
========================= */

#page-domicilio .nav-tabs {
    background: #f1f5f9;
    border-radius: 50px;
    padding: 6px;
}

#page-domicilio .nav-link {
    border: none !important;
    border-radius: 50px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

#page-domicilio .nav-link.active {
    background: linear-gradient(135deg, #68A883, #4F8F70);
    color: white !important;
    box-shadow: 0 6px 18px rgba(104,168,131,0.3);
}

/* =========================
   SUBCARDS CIUDADES
========================= */

#page-domicilio .bg-gray-2 {
    background: #f8fafc !important;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

#page-domicilio .bg-gray-2:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   BOTÓN WHATSAPP
========================= */

#page-domicilio .btn-interlab {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

#page-domicilio .btn-interlab:hover {
    transform: scale(1.05);
}

/* =========================
   ANIMACIÓN SCROLL GENERAL
========================= */

.animar {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   TOMADOR CARD (LIMPIO + PRO)
========================= */

.tomador-card {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.tomador-card:hover {
    transform: translateY(-6px);
    border-color: #68A883;
    box-shadow: 0 0 0 3px rgba(104,168,131,0.18),
        0 14px 30px rgba(0,0,0,0.12);
}

/* =========================
   IMAGEN TOMADOR
========================= */

.tomador-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tomador-img:hover {
    transform: scale(1.06);
    border-color: #68A883;
}

/* =========================
   NOMBRE
========================= */

.tomador-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111827;
}

/* =========================
   TAB ANIMATION LIMPIA
========================= */

.tab-content .tab-pane {
    transition: all 0.3s ease;
}

.tab-content .tab-pane.active {
    animation: fadeInTab 0.4s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0.6;
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   FLASH EFFECT (CORREGIDO)
========================= */

.tab-content .tab-pane.active .card {
    border: 2px solid rgba(104, 168, 131, 0.95) !important;

    position: relative;
    z-index: 2;

    box-shadow:
        0 0 0 2px rgba(104, 168, 131, 0.55),
        0 0 35px rgba(104, 168, 131, 0.55),
        0 0 80px rgba(104, 168, 131, 0.35),
        0 25px 60px rgba(0, 0, 0, 0.18);

    animation: tabPulseEpic 1.2s cubic-bezier(0.2, 0.9, 0.2, 1);
    overflow: hidden;
}

/* SCAN LIGHT MÁS AGRESIVO (VISIBLE REAL) */
.tab-content .tab-pane.active .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -160%;
    width: 80%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(104, 168, 131, 0.05) 10%,
        rgba(104, 168, 131, 0.85) 50%,
        rgba(255, 255, 255, 0.65) 55%,
        rgba(104, 168, 131, 0.85) 60%,
        rgba(104, 168, 131, 0.05) 90%,
        transparent 100%
        );

    transform: skewX(-20deg);

    animation: scanLightHard 4.8s cubic-bezier(0.2, 0.9, 0.2, 1);

    pointer-events: none;
    opacity: 1;

    mix-blend-mode: screen;
}

/* pulso de energía */
@keyframes tabPulseEpic {
    0% {
        box-shadow:
            0 0 0 0 rgba(104, 168, 131, 0.0),
            0 10px 20px rgba(0, 0, 0, 0.08);
        transform: scale(0.99);
    }

    30% {
        box-shadow:
            0 0 0 6px rgba(104, 168, 131, 0.45),
            0 0 50px rgba(104, 168, 131, 0.45),
            0 30px 70px rgba(0, 0, 0, 0.18);
        transform: scale(1.015);
    }

    60% {
        box-shadow:
            0 0 0 10px rgba(104, 168, 131, 0.25),
            0 0 70px rgba(104, 168, 131, 0.35),
            0 35px 80px rgba(0, 0, 0, 0.22);
        transform: scale(1.02);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(104, 168, 131, 0.0),
            0 25px 60px rgba(0, 0, 0, 0.12);
        transform: scale(1);
    }
}


/* Efecto barrido */
@keyframes scanLightHard {
    0% {
        left: -160%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 160%;
        opacity: 0;
    }
}

@keyframes borderFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(104,168,131,0);
    }
    40% {
        box-shadow: 0 0 0 4px rgba(104,168,131,0.25),
            0 14px 30px rgba(0,0,0,0.12);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(104,168,131,0);
    }
}

/* =========================
   RESPONSIVE MEJORADO
========================= */

@media (max-width: 768px) {

    #page-domicilio .titulo-seccion,
    #page-domicilio-personal .titulo-seccion {
        font-size: 20px;
    }

    .titulo-seccion .badge {
        font-size: 12.5px;
        padding: 7px 12px;
    }
}
.tomador-card {
    cursor: pointer; 
}

.tomador-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

h5.animar {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* =========================
   INTRO: IMAGEN CON ALTURA CONTROLADA
========================= */

.img-intro-domicilio {
    /* Antes tenía max-height:320px + object-fit:contain, lo que obligaba
       al navegador a "encoger" la foto para que cupiera en esa caja sin
       recortarse -- por eso se veía chica. Ahora se deja sin altura fija:
       la imagen usa su tamaño natural a lo ancho de la columna (igual que
       .img-fluid de Bootstrap), se ve completa y a tamaño normal. */
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.10);
}

/* =========================
   BADGES DE BENEFICIOS
========================= */

.badges-domicilio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #68A883;
    color: #4F8F70;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(104,168,131,0.15);
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: linear-gradient(135deg, #68A883, #4F8F70);
    color: #fff;
    transform: translateY(-3px);
}

/* =========================
   PASOS "¿CÓMO FUNCIONA?"
========================= */

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .pasos-grid {
        grid-template-columns: 1fr;
    }
}

.paso-box {
    text-align: center;
    padding: 32px 22px;
    position: relative;
    overflow: hidden;
}

.paso-box:hover {
    border-color: #68A883 !important;
}

.paso-icono {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #68A883, #4F8F70);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 18px rgba(104,168,131,0.35);
    transition: all 0.3s ease;
}

.paso-box:hover .paso-icono {
    transform: scale(1.08) rotate(-4deg);
}

.paso-numero {
    position: absolute;
    top: 14px;
    right: 18px;
    font-weight: 800;
    font-size: 2rem;
    color: rgba(104,168,131,0.12);
    line-height: 1;
}

.paso-box h6 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.features-domicilio {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features-domicilio .feature-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 8px 12px !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;

    background: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.features-domicilio .feature-box:hover {
    transform: translateY(-2px);
    border-color: #00c853 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}

.feature-icono {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #E3F5EB;
    transition: all 0.3s ease;
}

.feature-icono i {
    font-size: 0.9rem;
    color: #68A883;
}

.feature-box:hover .feature-icono {
    background-color: #68A883;
}

.feature-box:hover .feature-icono i {
    color: #ffffff;
}

.feature-text h6 {
    margin: 0 0 1px 0;
    font-weight: 700;
    font-size: 0.85rem;
}

.feature-text p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.35;
}