/*!
 * KosXpress Personalizados CSS
 * Scope: .personalizados-page
 */

.personalizados-page {
    /* Variables locales para personalizados */
    --p-accent: #f28c30;
    /* Naranja vibrante */
    --p-bg-glass: rgba(255, 255, 255, 0.05);
    --p-border-glass: rgba(255, 255, 255, 0.1);
    --whatsapp-color: #25D366;
    --kos-blue: #009FE3;
}

/* Navigation override moved to main.css for global persistence */


/* Hero Section */
.hero-bg-gradients {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f9 100%);
}

.blob-blue {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 159, 227, 0.15) 0%, rgba(0, 159, 227, 0) 70%);
    filter: blur(80px);
}

.blob-orange {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(242, 140, 48, 0.15) 0%, rgba(242, 140, 48, 0) 70%);
    filter: blur(80px);
}

.personalizados-page .hero-personalizados {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    z-index: 2;
}

.personalizados-page .hero-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 40px;
    position: relative;
    z-index: 10;
}

/* Background Giant Text */
.personalizados-page .hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 15vw, 18rem);
    font-weight: 900;
    color: #f6f8fb;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -3px;
    opacity: 0.9;
}

/* Particles */
.personalizados-page .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.personalizados-page .particle {
    position: absolute;
    background: var(--p-accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 10s infinite ease-in-out alternate;
}

.personalizados-page .p1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-duration: 12s;
    background: var(--kos-blue);
}

.personalizados-page .p2 {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 15%;
    animation-duration: 15s;
}

.personalizados-page .p3 {
    width: 6px;
    height: 6px;
    top: 30%;
    right: 20%;
    animation-duration: 9s;
}

.personalizados-page .p4 {
    width: 10px;
    height: 10px;
    top: 70%;
    right: 10%;
    animation-duration: 14s;
    background: var(--kos-blue);
}

.personalizados-page .p5 {
    width: 15px;
    height: 15px;
    top: 15%;
    left: 50%;
    animation-duration: 11s;
    opacity: 0.2;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-40px) translateX(20px) rotate(180deg);
        opacity: 0.6;
    }

    100% {
        transform: translateY(20px) translateX(-20px) rotate(360deg);
        opacity: 0.2;
    }
}

.personalizados-page .hero-content {
    flex: 1;
    max-width: 600px;
}

.personalizados-page .hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0b233a !important;
    /* Navy Blue for readability */
    letter-spacing: -1px;
}

.personalizados-page .hero-subtext {
    font-size: 1.25rem;
    color: var(--kos-blue);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

.personalizados-page .hero-visual-center {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.personalizados-page .hero-main-img {
    width: 100%;
    max-width: 650px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.personalizados-page .premium-float {
    animation: premiumFloat 8s ease-in-out infinite alternate;
}

@keyframes premiumFloat {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-20px) scale(1.02);
    }
}

.personalizados-page .hero-content .btn-naranja {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.personalizados-page .hero-content .btn-naranja .btn-icon {
    transition: transform 0.3s ease;
}

.personalizados-page .hero-content .btn-naranja:hover .btn-icon {
    transform: translateX(5px);
}


/* Botón Naranja */
.btn-naranja {
    background: #f28c30;
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(242, 140, 48, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-naranja:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(242, 140, 48, 0.6);
}

.btn-naranja.full-width {
    width: 100%;
}

.cta-pulse {
    animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 140, 48, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(242, 140, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(242, 140, 48, 0);
    }
}

/* Animations added to images */
.smooth-rotate {
    animation: smooth-rotate 8s ease-in-out infinite alternate;
}

@keyframes smooth-rotate {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    100% {
        transform: translateY(-30px) rotate(4deg);
    }
}

.personalizados-page .floating-cup {
    width: 100%;
    max-width: 280px;
    /* Reduced from 400px to avoid being too big */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Softer shadow for white background */
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Story Flow Section ZigZag */
.personalizados-page .story-flow {
    padding: 140px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 120px;
    position: relative;
    max-width: 100%;
}

/* Contenedor Parallax */
.personalizados-page .story-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.personalizados-page .parallax-img {
    position: absolute;
    opacity: 0.45;
    /* V10: Increased for desktop */
    filter: blur(2px);
    animation: parallaxImageFloat 15s infinite ease-in-out alternate;
    pointer-events: none;
    max-width: 140px;
    z-index: -1;
}

@media (max-width: 900px) {
    .personalizados-page .parallax-img {
        opacity: 0.15;
        /* V10: Subtle for mobile */
    }
}


/* Positions for the floating cutouts */
.personalizados-page .pi-1 {
    top: 10%;
    left: 8%;
    width: 110px;
    animation-delay: 0s;
}

.personalizados-page .pi-2 {
    top: 35%;
    right: 10%;
    width: 140px;
    animation-delay: -3s;
    filter: blur(4px);
    opacity: 0.15;
}

.personalizados-page .pi-3 {
    bottom: 15%;
    left: 15%;
    width: 95px;
    animation-delay: -6s;
}

.personalizados-page .pi-4 {
    top: 60%;
    right: 28%;
    width: 130px;
    animation-delay: -4s;
    filter: blur(3px);
    opacity: 0.20;
}

.personalizados-page .pi-5 {
    top: 18%;
    right: 42%;
    width: 80px;
    animation-delay: -2s;
}

.personalizados-page .pi-6 {
    bottom: 8%;
    left: 45%;
    width: 120px;
    animation-delay: -7s;
    filter: blur(4px);
}

@keyframes parallaxImageFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(15px, -35px) rotate(8deg);
    }

    100% {
        transform: translate(-10px, 15px) rotate(-6deg);
    }
}

/* Reveal Animation */
.personalizados-page .reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.personalizados-page .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   V12: Valor y Educación — Grid 50/50
   ======================================== */

.personalizados-page .ve-section {
    position: relative;
    padding: 80px 24px;
    overflow: visible;
}

/* Radial gradient glows — scattered pattern */
.personalizados-page .ve-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
    animation: veBreathe 8s ease-in-out infinite alternate;
}

.personalizados-page .ve-glow-orange {
    background: radial-gradient(circle, rgba(242, 140, 48, 0.32) 0%, rgba(242, 140, 48, 0.08) 55%, transparent 30%);
}

.personalizados-page .ve-glow-blue {
    background: radial-gradient(circle, rgba(0, 159, 227, 0.28) 0%, rgba(0, 159, 227, 0.06) 55%, transparent 30%);
}

/* Individual positions — scattered like reference */
.personalizados-page .ve-g1 {
    width: 280px;
    height: 280px;
    top: -5%;
    left: 5%;
    animation-delay: 0s;
}

.personalizados-page .ve-g2 {
    width: 250px;
    height: 250px;
    top: -8%;
    right: 15%;
    animation-delay: -2s;
}

.personalizados-page .ve-g3 {
    width: 220px;
    height: 220px;
    top: 40%;
    left: 30%;
    animation-delay: -4s;
}

.personalizados-page .ve-g4 {
    width: 300px;
    height: 300px;
    bottom: 5%;
    left: -5%;
    animation-delay: -1s;
}

.personalizados-page .ve-g5 {
    width: 240px;
    height: 240px;
    bottom: -8%;
    right: 8%;
    animation-delay: -3s;
}

.personalizados-page .ve-g6 {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 40%;
    animation-delay: -5s;
}

@keyframes veBreathe {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Grid container */
.personalizados-page .ve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Column — levitating effect */
.personalizados-page .ve-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: veFloat 4s ease-in-out infinite;
}

.personalizados-page .ve-col:nth-child(2) {
    animation-delay: -2s;
}

@keyframes veFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Title hierarchy */
.personalizados-page .ve-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    /* Dark blue gradient for legibility */
    background: linear-gradient(160deg, #0b233a 0%, #1a5276 50%, #2980b9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.personalizados-page .ve-line {
    display: block;
}

/* "2.000" — big orange */
.personalizados-page .ve-number {
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--p-accent, #f28c30);
    -webkit-text-fill-color: var(--p-accent, #f28c30);
    letter-spacing: -2px;
    line-height: 1;
    display: inline-block;
}

/* "KosXpress" — blue brand */
.personalizados-page .ve-brand {
    color: var(--kos-blue, #009FE3);
    -webkit-text-fill-color: var(--kos-blue, #009FE3);
    font-weight: 900;
}

/* Image wrapper */
.personalizados-page .ve-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
    min-height: 180px;
}

/* Image */
.personalizados-page .ve-img {
    max-width: 320px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease;
}

.personalizados-page .ve-img:hover {
    transform: scale(1.04) translateY(-4px);
}

/* Description */
.personalizados-page .ve-desc {
    font-size: 1.2rem;
    color: #3a3a3a;
    line-height: 1.75;
    max-width: 440px;
    margin: 0 auto;
    font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .personalizados-page .ve-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .personalizados-page .ve-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .personalizados-page .ve-number {
        font-size: clamp(2.8rem, 10vw, 3.8rem);
    }

    .personalizados-page .ve-img {
        max-width: 260px;
    }

    .personalizados-page .ve-section {
        padding: 50px 16px;
    }
}


/* Calculadora Section */
.personalizados-page .cotizador-section {
    padding: 60px 24px;
    margin-bottom: 80px;
}

.personalizados-page .cotizador-glass {
    background: #ffffff;
    border: 1px solid rgba(0, 159, 227, 0.1);
    border-radius: 24px;
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.personalizados-page .cotizador-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.personalizados-page .cotizador-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.personalizados-page .cotizador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.personalizados-page .input-group {
    margin-bottom: 30px;
}

.personalizados-page .input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0b233a;
    /* Dark blue for strong readability */
}

.personalizados-page .form-control {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.personalizados-page .form-control:focus {
    border-color: var(--primary);
}

.personalizados-page .highlight-val {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Slider CSS Chunky */
.personalizados-page .styled-slider.chunky {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 14px;
    border-radius: 8px;
    background: #e0e0e0;
    outline: none;
    margin: 20px 0 10px;
    transition: background 0.15s ease;
}

.personalizados-page .styled-slider.chunky::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--p-accent);
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(242, 140, 48, 0.5);
    transition: transform 0.1s;
}

.personalizados-page .styled-slider.chunky::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.personalizados-page .slider-marks {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0 4px;
}

/* Resultados */
.personalizados-page .cotizador-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 40px;
    border-left: 1px solid var(--border-color);
}

.personalizados-page .result-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.personalizados-page .result-card.highlight {
    background: linear-gradient(135deg, rgba(0, 159, 227, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(0, 159, 227, 0.3);
}

.personalizados-page .result-label {
    display: block;
    font-size: 1rem;
    color: #0b233a;
    /* Dark Blue */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}

.personalizados-page .result-value {
    font-size: 2.2rem;
    font-weight: 800;
}

.personalizados-page .result-value.large {
    font-size: 3rem;
}

.personalizados-page .val-azul {
    color: var(--kos-blue);
    transition: all 0.2s;
}

.personalizados-page .val-azul.pulse-val {
    transform: scale(1.05);
    color: var(--p-accent);
}

.personalizados-page .currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: #888;
}

.personalizados-page .ahorro-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.personalizados-page .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--whatsapp-color);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.personalizados-page .btn-whatsapp:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* V10: Unified Background Wrapper */
.p-page-content-wrap {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 30%, #fffcf9 70%, #ffffff 100%);
    overflow: hidden;
    width: 100%;
}

/* ================================================
   CTA FINAL SECTION — Full-Screen Premium Banner
   ================================================ */

.personalizados-page .cta-final-section {
    position: relative;
    min-height: 100vh;
    /* Increased to accommodate button comfortably */
    display: flex;
    flex-direction: column;
    /* Stack layout and button vertically */
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    /* More padding top/bottom */
    overflow: hidden;
    background: #ffffff;
}

/* --- Radial gradient blobs — clearly visible --- */
.personalizados-page .cta-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ctaBlobFloat 10s ease-in-out infinite alternate;
}

.personalizados-page .cta-blob-orange {
    background: radial-gradient(circle, rgba(242, 140, 48, 0.28) 0%, rgba(242, 140, 48, 0.10) 50%, transparent 70%);
    filter: blur(30px);
}

.personalizados-page .cta-blob-blue {
    background: radial-gradient(circle, rgba(0, 159, 227, 0.22) 0%, rgba(0, 159, 227, 0.08) 50%, transparent 70%);
    filter: blur(30px);
}

/* Top-right — large orange */
.personalizados-page .cta-blob-1 {
    width: 500px;
    height: 500px;
    top: -12%;
    right: -3%;
    animation-delay: 0s;
}

/* Bottom-left — blue */
.personalizados-page .cta-blob-2 {
    width: 420px;
    height: 420px;
    bottom: -8%;
    left: -5%;
    animation-delay: -3s;
}

/* Center-left — small orange accent */
.personalizados-page .cta-blob-3 {
    width: 280px;
    height: 280px;
    top: 20%;
    left: 8%;
    animation-delay: -5s;
}

/* Bottom-right — blue */
.personalizados-page .cta-blob-4 {
    width: 350px;
    height: 350px;
    bottom: 5%;
    right: 15%;
    animation-delay: -2s;
}

/* Mid-top orange */
.personalizados-page .cta-blob-5 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 60%;
    animation-delay: -7s;
}

@keyframes ctaBlobFloat {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.15) translate(12px, -8px);
        opacity: 1;
    }
}

/* --- Dot particles (small circles like in the reference) --- */
.personalizados-page .cta-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.personalizados-page .cta-dot-1 {
    width: 10px;
    height: 10px;
    background: #f28c30;
    opacity: 0.35;
    top: 35%;
    left: 33%;
    animation: ctaDotPulse 4s ease-in-out infinite;
}

.personalizados-page .cta-dot-2 {
    width: 7px;
    height: 7px;
    background: #f28c30;
    opacity: 0.25;
    top: 52%;
    left: 28%;
    animation: ctaDotPulse 5s ease-in-out infinite;
    animation-delay: -1.5s;
}

.personalizados-page .cta-dot-3 {
    width: 12px;
    height: 12px;
    background: #f28c30;
    opacity: 0.30;
    top: 42%;
    left: 40%;
    animation: ctaDotPulse 3.5s ease-in-out infinite;
    animation-delay: -2s;
}

.personalizados-page .cta-dot-4 {
    width: 6px;
    height: 6px;
    background: #f28c30;
    opacity: 0.22;
    top: 58%;
    left: 36%;
    animation: ctaDotPulse 6s ease-in-out infinite;
    animation-delay: -3s;
}

.personalizados-page .cta-dot-5 {
    width: 8px;
    height: 8px;
    background: #f28c30;
    opacity: 0.20;
    top: 30%;
    left: 44%;
    animation: ctaDotPulse 4.5s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes ctaDotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.45;
    }
}

/* ==============================================
   LAYOUT — overlapping layers
   ============================================== */
.personalizados-page .cta-final-layout {
    position: relative;
    z-index: 3;
    width: 95%;
    max-width: 1600px;
    /* Increased to allow more horizontal room for text */
    margin: 0 auto;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

/* --- TEXT LAYER — behind the cup --- */
.personalizados-page .cta-text-layer {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-left: clamp(150px, 15vw, 300px);
    /* Reduced slightly to gain horizontal space */
}

/* --- CUP LAYER — in front of the text --- */
.personalizados-page .cta-cup-layer {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 380px;
}

.personalizados-page .cta-cup-img {
    width: 100%;
    max-width: 380px;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    animation: cupLevitate 6s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Fake shadow below the cup */
.personalizados-page .cta-cup-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 22px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    animation: cupShadowPulse 6s ease-in-out infinite;
}

@keyframes cupLevitate {

    0%,
    100% {
        transform: translateY(0px) rotate(-4deg);
    }

    25% {
        transform: translateY(-20px) rotate(-1deg);
    }

    50% {
        transform: translateY(-6px) rotate(-5deg);
    }

    75% {
        transform: translateY(-25px) rotate(-2deg);
    }
}

@keyframes cupShadowPulse {

    0%,
    100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.6;
    }

    25% {
        transform: translateX(-50%) scaleX(0.7);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) scaleX(0.85);
        opacity: 0.45;
    }

    75% {
        transform: translateX(-50%) scaleX(0.65);
        opacity: 0.25;
    }
}

/* ==============================================
   TYPOGRAPHY — matching reference hierarchy
   ============================================== */

/* Opening ¿ — very large, orange, inline with the text */
.personalizados-page .cta-qm-open {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.1em;
    /* Slightly smaller relative scale */
    color: #f28c30;
    display: inline-block;
    vertical-align: baseline;
    /* Better mapping to the L base */
    margin-right: -0.1em;
    /* Pull text closer */
    margin-bottom: -0.05em;
    /* Nudge down if needed */
    animation: qmBreathe 4s ease-in-out infinite alternate;
}

/* "Listo para llevar tu" — bold, lighter blue, solid */
.personalizados-page .cta-line-small {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #1a5b8e;
    display: block;
    line-height: 1.1;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

/* "MARCA AL SIGUIENTE" — very large, solid lighter blue */
.personalizados-page .cta-line-large {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 6rem);
    /* Further reduced for safe margin on 1920px+ */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    /* Tighten slightly */
    display: block;
    line-height: 0.95;
    margin-bottom: 0;
    white-space: nowrap;
    color: #1a5b8e;
    text-shadow: none;
}

/* "NIVEL" — enormous, dark blue to orange gradient, with THICK dark blue outline */
.personalizados-page .cta-line-huge {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(6rem, 12vw, 11rem);
    /* Further reduced for alignment/safety */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.85;
    display: block;
    /* Gradient fill: blue top → orange bottom */
    background: linear-gradient(180deg, #5ba4cf 20%, #f28c30 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Thick outline via text-shadow (more stable than text-stroke for huge text) */
    filter: drop-shadow(-2px -2px 0 #0b233a) drop-shadow(2px -2px 0 #0b233a) drop-shadow(-2px 2px 0 #0b233a) drop-shadow(2px 2px 0 #0b233a);
    position: relative;
    z-index: 5;
    margin-top: -15px;
}

/* --- BUTTON CONTAINER --- */
.personalizados-page .cta-btn-container {
    margin-top: 40px;
    /* Space below the cup/text layout */
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 20;
    /* Ensure it stays above blobs and cup shadow */
    padding-bottom: 20px;
}

.personalizados-page .cta-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #128c7e;
    /* Darker, more premium WhatsApp green */
    color: #fff;
    padding: 18px 42px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(18, 140, 126, 0.3);
    border: 2px solid transparent;
}

.personalizados-page .cta-whatsapp-btn:hover {
    transform: scale(1.05) translateY(-3px);
    background: #075e54;
    /* Even darker on hover */
    box-shadow: 0 15px 35px rgba(18, 140, 126, 0.4);
}

.personalizados-page .cta-whatsapp-btn::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-5.5-2.8-23.2-8.5-44.2-27.1-16.4-14.6-27.4-32.6-30.6-38.1-3.2-5.5-.3-8.5 2.5-11.2 2.5-2.5 5.5-6.4 8.3-9.6 2.8-3.2 3.7-5.5 5.5-9.3 1.9-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 13.2 5.8 23.5 9.2 31.5 11.8 13.3 4.2 25.4 3.6 35 2.2 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Closing ? — large, solid orange */
.personalizados-page .cta-qm-close {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 10vw, 9rem);
    color: #f28c30;
    -webkit-text-fill-color: #f28c30;
    -webkit-text-stroke: 0;
    background: none;
    vertical-align: baseline;
    margin-left: 10px;
    display: inline;
    line-height: 0.85;
    animation: qmBreathe 4s ease-in-out infinite alternate;
    animation-delay: -2s;
}

@keyframes qmBreathe {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1100px) {
    .personalizados-page .cta-text-layer {
        padding-left: 220px;
    }

    .personalizados-page .cta-cup-layer {
        width: 300px;
    }

    .personalizados-page .cta-cup-img {
        max-width: 300px;
    }
}

@media (max-width: 900px) {
    .personalizados-page .cta-final-section {
        min-height: 75vh;
        padding: 40px 16px;
    }

    .personalizados-page .cta-final-layout {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .personalizados-page .cta-text-layer {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .personalizados-page .cta-cup-layer {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 250px;
        margin-bottom: -40px;
        order: -1;
    }

    .personalizados-page .cta-cup-img {
        max-width: 250px;
    }

    .personalizados-page .cta-text-layer {
        padding-left: 0;
        align-items: center;
        text-align: center;
        line-height: 1.3;
    }

    .personalizados-page .cta-qm-open {
        font-size: 2.2rem !important;
        margin-right: 8px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    .personalizados-page .cta-line-small {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    .personalizados-page .cta-line-large {
        font-size: 2.1rem !important;
        letter-spacing: 1px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        margin-top: 5px !important;
        margin-bottom: 2px !important;
        display: block !important;
    }

    .personalizados-page .cta-line-huge {
        font-size: 3.5rem !important;
        letter-spacing: 1.5px !important;
        line-height: 1.1 !important;
        margin-top: 8px !important;
        display: block !important;
    }

    .personalizados-page .cta-qm-close {
        font-size: 3.5rem !important;
        display: inline-block !important;
        vertical-align: middle !important;
        margin-left: 5px !important;
    }

    .personalizados-page .cta-blob-1 {
        width: 250px;
        height: 250px;
    }

    .personalizados-page .cta-blob-2 {
        width: 200px;
        height: 200px;
    }

    /* Botón WhatsApp más compacto en móvil */
    .personalizados-page .cta-whatsapp-btn {
        font-size: 1.1rem !important;
        padding: 14px 28px !important;
        gap: 8px !important;
    }

    .personalizados-page .cta-whatsapp-btn::before {
        width: 20px !important;
        height: 20px !important;
    }

    .personalizados-page .cta-btn-container {
        margin-top: 25px !important;
        padding-bottom: 15px !important;
    }
}


/* Floating WhatsApp (Global Override for this page) */
.personalizados-page .hide-in-personalizados {
    display: none !important;
}

/* Explicitly hide the chatbot to be absolutely sure */
#chatbot-launcher,
.chatbot-container,
.whatsapp-float-btn {
    display: none !important;
}

/* Responsive Mobile First adjustments */
@media (max-width: 900px) {
    .personalizados-page .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .personalizados-page .hero-bg-text {
        font-size: 28vw;
        top: 45%;
    }

    .personalizados-page .hero-main-img {
        max-width: 95%;
    }

    .personalizados-page .hero-content {
        order: 1;
    }

    .personalizados-page .hero-visual-center {
        order: 2;
        margin-top: 20px;
    }

    .personalizados-page .hero-content h1 {
        font-size: 2.5rem;
    }

    .personalizados-page .hero-content .btn-naranja {
        justify-content: center;
        width: 100%;
    }

    .personalizados-page .zigzag-left,
    .personalizados-page .zigzag-right {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .personalizados-page .flow-img-wrapper {
        order: -1;
        /* Image always on top on mobile */
    }

    .personalizados-page .cotizador-grid {
        grid-template-columns: 1fr;
    }

    .personalizados-page .cotizador-results {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 30px;
    }

    .personalizados-page .cotizador-glass {
        padding: 30px 20px;
    }
}

/* Mobile specific slider thumb size adjustment */
@media (max-width: 600px) {
    .personalizados-page .styled-slider::-webkit-slider-thumb {
        width: 32px;
        /* A bit larger for touch */
        height: 32px;
    }

    .personalizados-page .btn-whatsapp {
        font-size: 1rem;
        padding: 16px 20px;
    }
}