/* ==========================================================================
   Seguros Padin - Corporate Brand Design System
   Exact Hex Colors Extracted from Official Logo:
   - Primary Deep Navy: #26284E
   - Isotype Royal Blue: #2847B8
   - Clean White: #FFFFFF
   ========================================================================== */

:root {
    --padin-base: #26284E;
    --padin-dark: #171832;
    --padin-darker: #101124;
    --padin-card: #2e315d;
    --padin-card-hover: #373a6e;
    --padin-blue: #2847B8;
    --padin-blue-hover: #3556d4;
    --padin-blue-light: #4d6ff0;
    --padin-border: #3c4075;
    --padin-muted: #9ea3cc;
}

/* Reglas Globales de Adaptabilidad Móvil */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

button, a, input, select {
    touch-action: manipulation;
}

/* Main Header Navigation Link */
.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-link:hover {
    color: #ffffff;
}

/* Hero Selector Chip */
.hero-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    background-color: var(--padin-dark);
    border: 1px solid var(--padin-border);
    border-radius: 1rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-chip:hover {
    background-color: var(--padin-card-hover);
    border-color: var(--padin-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(40, 71, 184, 0.35);
}

/* Insurer Brand Cards */
.insurer-card {
    background-color: var(--padin-card);
    border: 1px solid var(--padin-border);
    border-radius: 1.15rem;
    padding: 1.25rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.insurer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(40, 71, 184, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insurer-card:hover {
    border-color: var(--padin-blue-light);
    background-color: var(--padin-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(16, 17, 36, 0.7);
}

.insurer-card:hover::before {
    opacity: 1;
}

.insurer-card svg {
    transition: transform 0.25s ease;
}

.insurer-card:hover svg {
    transform: scale(1.05);
}

/* Insurer Monochrome Official Logos (Stripe / Apple Style) */
.insurer-logo-mono {
    height: 1.85rem;
    width: auto;
    max-width: 135px;
    object-fit: contain;
    filter: brightness(0) invert(0.65);
    opacity: 0.75;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    vertical-align: middle;
}

.insurer-logo-mono:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.08);
}

/* SSN Official Monochrome Logo */
.ssn-logo-mono {
    height: 1.5rem;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    filter: brightness(0) invert(0.65);
    opacity: 0.75;
    transition: all 0.25s ease;
    display: inline-block;
}

.ssn-logo-mono:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Insurer Partner Badges (fallback) */
.partner-badge {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    background-color: var(--padin-dark);
    border: 1px solid var(--padin-border);
    border-radius: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--padin-muted);
    transition: all 0.2s ease;
}

/* Benefit Cards (Por qué Padin) */
.benefit-card {
    background-color: var(--padin-card);
    border: 1px solid var(--padin-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.25s ease;
}

.benefit-card:hover {
    border-color: var(--padin-blue-light);
    background-color: var(--padin-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(16, 17, 36, 0.5);
}

/* Tab Switcher Chips */
.tab-chip.active {
    background-color: var(--padin-blue);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(40, 71, 184, 0.4);
}

/* Master-Detail Interactive Showcase Styles */
.master-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    background-color: var(--padin-dark);
    border: 1px solid var(--padin-border);
    border-radius: 1rem;
    color: var(--padin-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.master-item:hover {
    background-color: var(--padin-card-hover);
    color: #ffffff;
    border-color: var(--padin-blue-light);
    transform: translateX(4px);
}

.master-item.active {
    background-color: var(--padin-blue);
    color: #ffffff;
    border-color: var(--padin-blue-light);
    box-shadow: 0 8px 24px -4px rgba(40, 71, 184, 0.45);
}

.master-item.active .badge-mini {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.master-item .chevron-indicator {
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.master-item:hover .chevron-indicator,
.master-item.active .chevron-indicator {
    opacity: 1;
    transform: translateX(0);
}

.badge-mini {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.45rem;
    background-color: var(--padin-dark);
    color: var(--padin-muted);
    border-radius: 0.35rem;
    border: 1px solid var(--padin-border);
}

.coverage-btn {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--padin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--padin-blue-light);
    background: transparent;
    border-left: none;
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coverage-compact:hover .coverage-btn {
    color: #ffffff;
    padding-right: 0.25rem;
}

/* Preguntas Frecuentes Accordion */
.faq-card {
    background-color: var(--padin-card);
    border: 1px solid var(--padin-border);
    border-radius: 1rem;
    padding: 1.15rem 1.35rem;
    transition: all 0.25s ease;
}

.faq-card:hover {
    border-color: rgba(72, 105, 232, 0.5);
    background-color: var(--padin-card-hover);
}

.faq-card[open] {
    border-color: var(--padin-blue-light);
    background-color: rgba(38, 40, 78, 0.55);
    box-shadow: 0 10px 24px -6px rgba(16, 17, 36, 0.5);
}

.faq-card summary {
    cursor: pointer;
    list-style: none;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

/* Smooth Focus Rings */
input:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(40, 71, 184, 0.35) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: var(--padin-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--padin-card);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--padin-border);
}

/* Testimonial Glassmorphism Cards */
.testimonial-glass-card {
    background: linear-gradient(145deg, rgba(46, 49, 93, 0.45) 0%, rgba(23, 24, 50, 0.7) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px -8px rgba(10, 11, 26, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-glass-card:hover {
    border-color: rgba(77, 111, 240, 0.5);
    background: linear-gradient(145deg, rgba(55, 58, 110, 0.55) 0%, rgba(26, 28, 62, 0.8) 100%);
    box-shadow: 0 20px 40px -8px rgba(40, 71, 184, 0.35);
    transform: translateY(-3px);
}

/* Animación de las Agujas del Reloj (Giro continuo de agujas sin mover ni alterar el marco exterior) */
.clock-hand-minute {
    transform-box: view-box;
    transform-origin: 12px 12px;
    animation: spinClockMinute 3s linear infinite;
}

.clock-hand-hour {
    transform-box: view-box;
    transform-origin: 12px 12px;
    animation: spinClockHour 12s linear infinite;
}

@keyframes spinClockMinute {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinClockHour {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Hero Animated Background: Dynamic Gradient Flow & Visible Luminous Waves
   100% Alineado a la Paleta Corporativa (#26284E, #2847B8, #4d6ff0)
   ========================================================================== */

/* Fondo Base Dinámico con Transición Continua de Degradados */
.hero-animated-bg {
    position: relative;
    background: linear-gradient(130deg, #0f1026 0%, #16183a 25%, #23275c 50%, #181b42 75%, #0f1026 100%);
    background-size: 240% 240%;
    animation: heroGradientShift 12s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% {
        background-position: 0% 20%;
    }
    50% {
        background-position: 100% 80%;
    }
    100% {
        background-position: 30% 100%;
    }
}

/* Foco Central de Luz Pulverizada (Spotlight Luminoso de Alto Impacto) */
.hero-spotlight-core {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 420px;
    background: radial-gradient(ellipse at center, rgba(40, 71, 184, 0.55) 0%, rgba(77, 111, 240, 0.3) 45%, rgba(38, 40, 78, 0.08) 75%, transparent 100%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
    animation: spotlightPulse 8s ease-in-out infinite alternate;
}

@keyframes spotlightPulse {
    0% {
        transform: translateX(-50%) scale(0.92);
        opacity: 0.75;
    }
    50% {
        transform: translateX(-48%) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translateX(-52%) scale(0.98);
        opacity: 0.8;
    }
}

/* Canvas de Nodos e Interconexión Dinámica (Red Plexus 3D de Clientes & Respaldo) */
.hero-nodes-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}


/* Ondas Vectoriales de Luz Fluida en Movimiento Continuo (Swirls Visibles y Elegantes) */
.hero-wave-stream {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.hero-wave-stream svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.wave-line-1 {
    transform-origin: center center;
    animation: waveMotion1 10s ease-in-out infinite alternate;
}

.wave-line-2 {
    transform-origin: center center;
    animation: waveMotion2 14s ease-in-out infinite alternate;
}

.wave-line-3 {
    transform-origin: center center;
    animation: waveMotion3 18s ease-in-out infinite alternate;
}

@keyframes waveMotion1 {
    0% {
        transform: translateY(0px) scaleY(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(22px) scaleY(1.2);
        opacity: 0.95;
    }
    100% {
        transform: translateY(-18px) scaleY(0.9);
        opacity: 0.65;
    }
}

@keyframes waveMotion2 {
    0% {
        transform: translateY(0px) scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-26px) scaleY(1.25);
        opacity: 0.9;
    }
    100% {
        transform: translateY(18px) scaleY(0.85);
        opacity: 0.55;
    }
}

@keyframes waveMotion3 {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(15px) rotate(0.5deg);
        opacity: 0.75;
    }
    100% {
        transform: translateY(-12px) rotate(-0.5deg);
        opacity: 0.45;
    }
}

/* Textura de Cuadrícula Tecnológica Corporativa */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 100%);
    opacity: 0.75;
    pointer-events: none;
    z-index: 2;
}

/* Hero Text Brand Gradient */
.hero-brand-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 30%, #4d6ff0 70%, #2847b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
