.contact-premium {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
    background: #f8fafc; /* Fondo base claro y elegante */
}

/* =========================================================
   ANIMACIÓN DE FONDO (FONDO DINÁMICO & ORBES DE LUZ)
========================================================= */

.contact-bg {
    display: block; /* Corregido: antes estaba en display: none */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(-45deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 1), rgba(226, 232, 240, 1), rgba(248, 250, 252, 1));
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
}

/* Orbe flotante luminoso decorativo */
.contact-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-secundario) 18%, transparent) 0%, transparent 70%);
    animation: floatOrb 8s infinite ease-in-out alternate;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.15); }
}

.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 52px;
    align-items: center;
}


/* =========================================================
   INFORMACIÓN & BADGE ANIMADO
========================================================= */

.contact-info {
    color: #111;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--color-secundario);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Animación de pulso automático para el icono del badge */
.contact-eyebrow i {
    display: inline-block;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.contact-info h2 {
    margin: 0 0 25px;
    color: #111;
    font-size: clamp(42px, 4.5vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
}

.contact-info h2 span {
    display: block;
    color: #111;
}

.contact-description {
    max-width: 520px;
    margin-bottom: 40px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.85;
}


/* =========================================================
   BENEFICIOS CONTACTO
========================================================= */

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}

.contact-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.contact-benefit:hover {
    transform: translateX(6px);
}

.contact-benefit-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    color: var(--color-secundario);
    font-size: 19px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-benefit:hover .contact-benefit-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--color-secundario);
    color: #fff;
}

.contact-benefit strong,
.contact-benefit span {
    display: block;
}

.contact-benefit strong {
    margin-bottom: 3px;
    color: #111;
    font-size: 14px;
    font-weight: 800;
}

.contact-benefit span {
    color: #6b7280;
    font-size: 12px;
}


/* =========================================================
   WHATSAPP (ANIMACIONES AUTOMÁTICAS)
========================================================= */

.contact-whatsapp {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.whatsapp-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #25d366;
    color: #fff;
    font-size: 24px;
    animation: wspPulse 3s infinite;
}

@keyframes wspPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

.whatsapp-content {
    flex: 1;
}

.whatsapp-content span,
.whatsapp-content strong {
    display: block;
}

.whatsapp-content span {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 11px;
}

.whatsapp-content strong {
    color: #111;
    font-size: 13px;
}

.whatsapp-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 15px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    transition: .3s ease;
}

/* Brillo automático pasando por encima del botón de WhatsApp */
.whatsapp-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.45);
    transform: rotate(30deg);
    animation: shineEffect 4s infinite ease-in-out;
}

@keyframes shineEffect {
    0% { left: -60%; }
    20% { left: 130%; }
    100% { left: 130%; }
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}


/* =========================================================
   FORM CARD
========================================================= */

.contact-form-card {
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-form-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
}


/* =========================================================
   HEADER FORM
========================================================= */

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #edf0f4;
}

.form-step {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-secundario), var(--color-primario));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.form-header span:not(.form-step) {
    display: block;
    margin-bottom: 4px;
    color: var(--color-secundario);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header h3 {
    margin: 0;
    color: #111827;
    font-size: 23px;
    font-weight: 900;
}


/* =========================================================
   FORM GRID
========================================================= */

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

.form-field {
    min-width: 0;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #263244;
    font-size: 12px;
    font-weight: 800;
}

.form-field label span {
    color: #ef4444;
}


/* =========================================================
   INPUTS CON INTERACCIÓN MEJORADA
========================================================= */

.input-wrapper,
.phone-wrapper,
.textarea-wrapper {
    position: relative;
    transition: transform 0.2s ease;
}

.input-wrapper:focus-within,
.phone-wrapper:focus-within,
.textarea-wrapper:focus-within {
    transform: translateY(-2px);
}

.input-wrapper i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.input-wrapper:focus-within i {
    color: var(--color-secundario);
    transform: translateY(-50%) scale(1.15);
}

.input-wrapper input,
.input-wrapper select,
.phone-wrapper input,
.textarea-wrapper textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    outline: none;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    font-size: 13px;
    transition: .25s ease;
}

.input-wrapper input,
.input-wrapper select,
.phone-wrapper input {
    height: 50px;
    padding: 0 15px 0 43px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.phone-wrapper input:focus,
.textarea-wrapper textarea:focus {
    border-color: var(--color-secundario);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secundario) 12%, transparent);
}

.input-wrapper input::placeholder,
.phone-wrapper input::placeholder,
.textarea-wrapper textarea::placeholder {
    color: #a0aec0;
}


/* =========================================================
   SELECT
========================================================= */

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.form-grid .select-wrapper {
    width: 100%;
    min-width: 0;
}

.form-grid .select-wrapper select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-grid .form-field:focus-within {
    position: relative;
    z-index: 5;
}

.select-wrapper .nice-select.service-select {
    display: block;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 0 34px 0 12px;
    line-height: 36px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-wrapper .nice-select.service-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-wrapper .nice-select.service-select .list {
    width: 100%;
    max-height: 180px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 50;
}

.select-wrapper .nice-select.service-select .option {
    overflow: hidden;
    padding-right: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    left: auto;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}


/* =========================================================
   TELÉFONO
========================================================= */

.phone-wrapper {
    display: flex;
    height: 50px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 13px;
    border: 1px solid #e2e8f0;
    border-right: 0;
    border-radius: 11px 0 0 11px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.phone-wrapper input {
    border-radius: 0 11px 11px 0;
}


/* =========================================================
   TEXTAREA
========================================================= */

.textarea-wrapper textarea {
    min-height: 130px;
    padding: 15px;
    resize: vertical;
    line-height: 1.6;
}

.textarea-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.textarea-wrapper:focus-within .textarea-icon {
    color: var(--color-secundario);
}


/* =========================================================
   RECAPTCHA & HONEYPOT
========================================================= */

.recaptcha-container {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   BOTÓN SUBMIT CON DESTELLO AUTOMÁTICO
========================================================= */

.contact-submit {
    position: relative;
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 7px 6px 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-secundario), var(--color-primario));
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--color-primario) 22%, transparent);
    overflow: hidden;
    transition: .3s ease;
}

/* Efecto de destello automático para captar la atención */
.contact-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: shineEffect 5s infinite ease-in-out 1s;
}

.contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px color-mix(in srgb, var(--color-primario) 32%, transparent);
}

.submit-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .15);
    font-size: 17px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-submit:hover .submit-icon {
    transform: translateX(4px);
    background: rgba(255, 255, 255, .25);
}


/* =========================================================
   SECURITY
========================================================= */

.form-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 10px;
    text-align: center;
}

.form-security i {
    color: #64748b;
}


/* =========================================================
   ANIMACIÓN DE ENTRADA AL HACER SCROLL (REVEAL)
========================================================= */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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


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

@media(max-width:1000px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-info {
        max-width: 700px;
        margin: auto;
        text-align: center;
    }

    .contact-description {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-benefits {
        align-items: flex-start;
        display: inline-flex;
        text-align: left;
    }

    .contact-whatsapp {
        text-align: left;
    }
}

@media(max-width:650px) {
    .contact-premium {
        padding: 48px 0;
    }

    .contact-info h2 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .contact-description {
        font-size: 15px;
    }

    .contact-form-card {
        padding: 25px 18px;
        border-radius: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .form-field.full {
        grid-column: auto;
    }

    .form-header h3 {
        font-size: 19px;
    }

    .contact-whatsapp {
        flex-wrap: wrap;
    }

    .whatsapp-content {
        min-width: calc(100% - 75px);
    }

    .whatsapp-button {
        width: 100%;
        justify-content: center;
    }
}

@media(max-width:400px) {
    .contact-info h2 {
        font-size: 33px;
    }

    .form-header {
        align-items: flex-start;
    }

    .form-step {
        flex-shrink: 0;
    }
}