/* ============================================================
   CTA GRANDE — ServicioLimpiezaUy
   Premium conversion-focused design
   ============================================================ */

/* --- Custom properties (sobrescribe si ya existen) --- */
.cta-grande {
    --cta-blue-dark:   #0a1628;
    --cta-blue:        #1565c0;
    --cta-blue-light:  #42a5f5;
    --cta-blue-glow:   #90caf9;
    --cta-accent:      #00e676;
    --cta-accent-dark: #00c853;
    --cta-white:       #ffffff;
    --cta-danger:      #ff1744;
    --cta-glass:       rgba(255, 255, 255, 0.08);
    --cta-glass-border:rgba(255, 255, 255, 0.18);
    --cta-radius:      16px;
    --cta-radius-sm:   10px;
    --cta-radius-pill:  50px;
}

/* --- Sección principal --- */
.cta-grande {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 100%, rgba(0, 230, 118, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 0%,   rgba(66, 165, 245, 0.18) 0%, transparent 55%),
        linear-gradient(160deg, var(--cta-blue-dark) 0%, #0d2137 30%, var(--cta-blue) 70%, var(--cta-blue-light) 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Patrón de overlay sutil */
.cta-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* --- Entrada animada con IntersectionObserver --- */
.cta--hidden .cta-grande__content,
.cta--hidden .cta-counter {
    opacity: 0;
    transform: translateY(40px);
}

.cta--visible .cta-grande__content,
.cta--visible .cta-counter {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta--visible .cta-counter {
    transition-delay: 0.15s;
}

/* ============================================================
   BURBUJAS DE FONDO (temática limpieza)
   ============================================================ */
.cta-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.02) 70%,
        transparent
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: bubbleFloat var(--dur, 14s) var(--delay, 0s) ease-in-out infinite;
}

.bubble--1 { --dur:12s; --delay:0s;   width:180px; height:180px; top:-40px;  left:5%;   }
.bubble--2 { --dur:16s; --delay:2s;   width:100px; height:100px; top:20%;   left:75%;  }
.bubble--3 { --dur:18s; --delay:1s;   width:250px; height:250px; bottom:-60px; right:-40px; }
.bubble--4 { --dur:14s; --delay:3s;   width:60px;  height:60px;  top:60%;   left:10%;  }
.bubble--5 { --dur:20s; --delay:0.5s; width:140px; height:140px; top:10%;   right:20%; }
.bubble--6 { --dur:15s; --delay:4s;   width:80px;  height:80px;  bottom:15%; left:40%;  }
.bubble--7 { --dur:17s; --delay:2.5s; width:50px;  height:50px;  top:45%;   left:60%;  }
.bubble--8 { --dur:13s; --delay:1.5s; width:120px; height:120px; bottom:5%;  left:80%;  }

@keyframes bubbleFloat {
    0%, 100% { transform: translate(0, 0)       scale(1);   opacity: 0.6; }
    25%      { transform: translate(15px, -20px) scale(1.05);opacity: 0.8; }
    50%      { transform: translate(-10px, -35px)scale(0.95);opacity: 0.5; }
    75%      { transform: translate(20px, -15px) scale(1.02);opacity: 0.7; }
}

/* ============================================================
   ICONOS FLOTANTES DECORATIVOS
   ============================================================ */
.cta-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cta-float {
    position: absolute;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgba(255, 255, 255, 0.06);
}

.cta-float--1 { top: 8%;  left: 6%;  animation: floatIcon 8s ease-in-out infinite; }
.cta-float--2 { bottom:12%; right:8%; animation: floatIcon 10s 1s ease-in-out infinite reverse; }
.cta-float--3 { top: 50%; right:5%;  animation: floatIcon 9s 0.5s ease-in-out infinite; }
.cta-float--4 { bottom:8%; left:15%; animation: floatIcon 11s 2s ease-in-out infinite reverse; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-25px) rotate(10deg); }
}

/* ============================================================
   CONTENEDOR Y CONTENIDO
   ============================================================ */
.cta-grande__container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    position: relative;
    z-index: 2;
}

.cta-grande__content {
    text-align: center;
}

/* --- Badge / etiqueta superior --- */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cta-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--cta-radius-pill);
    border: 1px solid var(--cta-glass-border);
    color: var(--cta-white);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    animation: badgePulse 3s ease-in-out infinite;
}

.cta-badge__dot {
    width: 8px;
    height: 8px;
    background: var(--cta-accent);
    border-radius: 50%;
    animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
    50%      { opacity: 0.5; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

.cta-badge i {
    color: #ffd54f;
    font-size: 0.8em;
}

/* --- Título --- */
.cta-title {
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 800;
    color: var(--cta-white);
    line-height: 1.15;
    margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: -0.02em;
}

.cta-title__highlight {
    position: relative;
    display: inline-block;
    color: var(--cta-accent);
}

.cta-title__highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 35%;
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.25), rgba(0, 230, 118, 0.08));
    border-radius: 4px;
    z-index: -1;
}

/* --- Descripción --- */
.cta-desc {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.cta-desc__strong {
    font-weight: 800;
    color: #ffd54f;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.cta-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
}

.cta-checks__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    font-weight: 500;
}

.cta-checks__item i {
    color: var(--cta-accent);
    font-size: 1.1em;
    flex-shrink: 0;
}

/* ============================================================
   BOTONES
   ============================================================ */
.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 2rem;
    font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
    font-weight: 700;
    border-radius: var(--cta-radius);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Botón primario (WhatsApp) */
.cta-btn--primary {
    background: var(--cta-white);
    color: var(--cta-blue);
    box-shadow:
        0 8px 30px -6px rgba(0, 0, 0, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}

.cta-btn--primary i {
    color: #25D366;
    font-size: 1.3em;
}

.cta-btn--primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.06);
    background: #f0faf4;
}

.cta-btn--primary:active {
    transform: translateY(-1px);
}

/* Shimmer effect en botón primario */
.cta-btn__shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transform: skewX(-20deg);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { left: -100%; }
    50%  { left: 150%; }
    100% { left: 150%; }
}

/* Badge de descuento */
.cta-btn__badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--cta-danger);
    color: var(--cta-white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--cta-radius-pill);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px -2px rgba(255, 23, 68, 0.5);
    animation: badgeBounce 1.5s ease-in-out infinite;
    z-index: 3;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-4px) scale(1.08); }
}

/* Botón secundario (Llamar) */
.cta-btn--secondary {
    background: transparent;
    color: var(--cta-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cta-btn--secondary:hover {
    background: var(--cta-white);
    color: var(--cta-blue);
    border-color: var(--cta-white);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(255, 255, 255, 0.2);
}

.cta-btn--secondary:active {
    transform: translateY(-1px);
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.cta-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.cta-avatars {
    display: flex;
}

.cta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cta-white);
    border: 2px solid var(--cta-blue);
    margin-left: -8px;
    position: relative;
}

.cta-avatar:first-child {
    margin-left: 0;
}

.cta-avatar--more {
    background: var(--cta-glass) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: var(--cta-glass-border);
    font-size: 0.65rem;
}

.cta-social-proof__text {
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
    line-height: 1.4;
}

.cta-social-proof__text strong {
    color: var(--cta-white);
}

.cta-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}

.cta-stars i {
    color: #ffd54f;
    font-size: 0.75rem;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.cta-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-top: clamp(1.25rem, 3vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-trust__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.7rem, 1.6vw, 0.8125rem);
    font-weight: 500;
}

.cta-trust__item i {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   CONTADOR REGRESIVO
   ============================================================ */
.cta-counter {
    margin-top: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.cta-counter__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-counter__label i {
    color: #ffd54f;
}

.cta-counter__boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.4rem, 1.5vw, 1rem);
}

.cta-counter__box {
    background: var(--cta-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cta-glass-border);
    border-radius: var(--cta-radius-sm);
    padding: clamp(0.5rem, 1.5vw, 0.85rem) clamp(0.6rem, 2vw, 1.1rem);
    min-width: clamp(48px, 10vw, 76px);
    text-align: center;
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
}

/* Glow sutil debajo de cada caja */
.cta-counter__box::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20%;
    right: 20%;
    height: 8px;
    background: rgba(66, 165, 245, 0.3);
    border-radius: 50%;
    filter: blur(8px);
}

.cta-counter__number {
    display: block;
    font-size: clamp(1.25rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--cta-white);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.cta-counter__text {
    display: block;
    font-size: clamp(0.5rem, 1.2vw, 0.65rem);
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    font-weight: 600;
}

.cta-counter__sep {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -0.8rem;
    animation: sepBlink 1s steps(2, start) infinite;
}

@keyframes sepBlink {
    50% { opacity: 0.3; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 768px) {
    .cta-checks {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .cta-actions {
        flex-direction: column;
        padding: 0 1rem;
    }

    .cta-btn {
        width: 100%;
    }

    .cta-social-proof {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-social-proof__text {
        text-align: center;
    }

    .cta-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .cta-float {
        display: none;
    }

    .bubble--3,
    .bubble--5,
    .bubble--7 {
        display: none;
    }
}

/* Mobile small */
@media (max-width: 480px) {
    .cta-grande__container {
        padding: 0 0.75rem;
    }

    .cta-title__highlight::after {
        height: 25%;
        bottom: 2px;
    }

    .cta-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .cta-btn__badge {
        top: -8px;
        right: -6px;
        font-size: 0.625rem;
        padding: 0.15rem 0.4rem;
    }

    .cta-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.65rem;
    }

    .bubble--2,
    .bubble--4,
    .bubble--6,
    .bubble--8 {
        display: none;
    }
}

/* Ultra-wide: centrar mejor */
@media (min-width: 1400px) {
    .cta-grande__container {
        max-width: 1060px;
    }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .bubble,
    .cta-float,
    .cta-btn__shimmer,
    .cta-badge,
    .cta-btn__badge,
    .cta-counter__sep,
    .cta-badge__dot {
        animation: none !important;
    }

    .cta--visible .cta-grande__content,
    .cta--visible .cta-counter {
        transition: none !important;
    }
}