/* ═══════════════════════════════════════════
   PÁGINA DE COTIZACIÓN - ESTILOS (REDISENADA)
   ═══════════════════════════════════════════ */

/* Hero Section Background */
.quote-hero {
    background: linear-gradient(135deg, #131929 0%, #0d121f 50%, #070a12 100%);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    mask-image: linear-gradient(to bottom, black 50%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent);
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

/* Badge animation */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5c8ff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════
   ESTILO GLOBAL: TARJETA DE CRÉDITO METÁLICA
   ═══════════════════════════════════════════ */
.metallic-card-container {
    position: relative;
    border-radius: 1.75rem; /* rounded-3xl */
    border: 1.5px solid rgba(13, 58, 148, 0.5);
    
    /* Degradado metálico azul con una banda brillante diagonal en el centro */
    background: linear-gradient(135deg, 
        #0a2869 0%, 
        #0d3a94 25%, 
        #1d59d1 40%, 
        #00b8ff 50%, /* Banda de luz brillante */
        #1d59d1 60%, 
        #08225e 80%, 
        #05153b 100%
    );
    background-size: 250% auto;
    background-position: left center;
    
    /* Sombra exterior y resplandor interno */
    box-shadow: 
        0 25px 60px -15px rgba(7, 25, 66, 0.65),
        inset 0 1px 0px rgba(255, 255, 255, 0.45),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(82, 150, 255, 0.2);
    
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Borde interno pulido (Chamfered edge) */
.metallic-card-container::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Efecto de destello de barrido (Shine sweep) */
.metallic-card-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.35) 50%, 
        rgba(255, 255, 255, 0.08) 80%,
        transparent 100%
    );
    transform: skewX(-30deg);
    pointer-events: none;
    z-index: 2;
    animation: metallic-auto-shine 8s ease-in-out infinite;
}

@keyframes metallic-auto-shine {
    0%, 75% {
        left: -150%;
    }
    100% {
        left: 200%;
    }
}

/* Detalles decorativos de tarjeta de crédito en el fondo */
.card-circle-decor {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 1;
}

.card-logo {
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 3;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #fff8dc 40%, #daa520 60%, #b8860b 100%);
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0,0,0,0.2);
    z-index: 3;
}

.card-chip::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

/* ═══════════════════════════════════════════
   FORMULARIO: ELEMENTOS GLASSMORPHIC
   ═══════════════════════════════════════════ */

/* Wizard Steps Transitions */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
    position: relative;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Step Dots */
.step-dot {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    font-size: 1rem;
}

.step-dot.active {
    border-color: #00b8ff;
    background-color: #00b8ff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 184, 255, 0.5);
}

.step-dot.completed {
    border-color: #10b981;
    background-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.step-line {
    height: 3px;
    background-color: rgba(255, 255, 255, 0.15);
    flex-grow: 1;
    transition: all 0.4s ease;
    margin: 0 -2px;
    z-index: 5;
}

.step-line.completed {
    background-color: #10b981;
}

/* Inputs de texto Glassmorphic */
input.glass-input,
select.glass-input,
textarea.glass-input {
    width: 100% !important;
    padding: 0.875rem 1.1rem !important;
    border-radius: 0.85rem !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 
                inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

input.glass-input::placeholder,
textarea.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500 !important;
}

/* Hover style: subtle bright edge and background enhancement */
input.glass-input:hover,
select.glass-input:hover,
textarea.glass-input:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1),
                0 0 10px rgba(255, 255, 255, 0.05) !important;
}

/* Focus style: premium cyan glow and outline */
input.glass-input:focus,
select.glass-input:focus,
textarea.glass-input:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #00b8ff !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1),
                0 0 15px rgba(0, 184, 255, 0.35) !important;
}

/* Autofill overrides to keep it dark glassmorphic */
input.glass-input:-webkit-autofill,
input.glass-input:-webkit-autofill:hover,
input.glass-input:-webkit-autofill:focus,
textarea.glass-input:-webkit-autofill,
textarea.glass-input:-webkit-autofill:hover,
textarea.glass-input:-webkit-autofill:focus,
select.glass-input:-webkit-autofill,
select.glass-input:-webkit-autofill:hover,
select.glass-input:-webkit-autofill:focus {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0b255e inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}


.glass-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

/* Selection Cards (Edificios / Condominios) - Glass */
.selection-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.selection-card:hover {
    transform: translateY(-4px);
    border-color: #00b8ff;
    background: rgba(255, 255, 255, 0.08);
}

.selection-card.active {
    border-color: #00b8ff;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 184, 255, 0.35);
}

/* Amenities Card checkboxes - Glass */
.amenity-checkbox {
    display: none !important;
}

.amenity-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(5px);
}

.amenity-card:hover {
    border-color: #00b8ff;
    background: rgba(255, 255, 255, 0.07);
}

.amenity-checkbox:checked + .amenity-card {
    border-color: #00b8ff;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 184, 255, 0.2);
}

/* Botones cromados/metálicos plateados */
.chrome-btn {
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 800;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Degradado cromado metálico plateado */
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #cbd5e1 50%, 
        #94a3b8 100%
    );
    color: #0f172a;
    box-shadow: 
        0 4px 15px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255,255,255,0.4);
}

.chrome-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e2e8f0 50%, 
        #cbd5e1 100%
    );
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.2);
}

.chrome-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Botón secundario translúcido */
.translucent-btn {
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.translucent-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Relief de textos en la tarjeta */
.card-relief-title {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(0, 0, 0, 0.6);
}

/* Animaciones del éxito */
@keyframes success-scale {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-success-screen {
    animation: success-scale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
