/**
 * ============================================================
 * PROYECTO : manproces.com
 * ARCHIVO  : contacto.css
 * PROPÓSITO: Estilos de la página de contacto
 *            - Hero con gradiente
 *            - Split screen: Formulario + Info
 *            - Glassmorphism en formulario
 *            - Bento Grid para métodos de contacto
 *            - Micro-interactions
 * UBICACIÓN: assets/css/pages/
 * ------------------------------------------------------------
 * AUTOR DEV: DaKaInnova — contacto@dakainnova.com.mx
 * CLIENTE  : ManProces — info@manproces.com
 * FECHA    : 03/03/2026
 * VERSIÓN  : 1.0
 * ============================================================
 */

/* ============================================================
   HERO CONTACTO
   ============================================================ */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-20);
}

.contact-hero__background {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            135deg,
            var(--color-navy) 0%,
            var(--color-blue-mid) 50%,
            var(--color-cyan) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(8, 215, 255, 0.03) 35px,
            rgba(8, 215, 255, 0.03) 70px
        );
    z-index: -1;
}

.contact-hero__background::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(8, 215, 255, 0.15) 0%,
        transparent 70%
    );
    border-radius: var(--radius-full);
    animation: float 8s ease-in-out infinite;
}

.contact-hero__background::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(255, 202, 76, 0.12) 0%,
        transparent 70%
    );
    border-radius: var(--radius-full);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.contact-hero__content {
    position: relative;
    z-index: 1;
}

.contact-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.contact-hero__title span {
    display: block;
    background: linear-gradient(
        120deg,
        var(--color-cyan),
        var(--color-logo-gold)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero__subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero__subtitle strong {
    color: var(--color-logo-gold);
}

/* ============================================================
   SPLIT SCREEN SECTION
   ============================================================ */
.contact-split {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
    background: linear-gradient(
        180deg,
        var(--color-bg-light) 0%,
        rgba(255, 255, 255, 0.5) 100%
    );
}

.contact-split__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* ============================================================
   FORMULARIO — GLASSMORPHISM
   ============================================================ */
.contact-form-wrapper {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: 0 8px 32px rgba(11, 18, 149, 0.1),
        0 2px 8px rgba(11, 18, 149, 0.05);
    transition: all 0.3s ease;
}

.contact-form-card:hover {
    box-shadow: 0 12px 48px rgba(11, 18, 149, 0.15),
        0 4px 12px rgba(11, 18, 149, 0.08);
    transform: translateY(-4px);
}

.contact-form-card__header {
    margin-bottom: var(--space-8);
    text-align: center;
}

.contact-form-card__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}

.contact-form-card__desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

/* ============================================================
   FORM STYLES — MICRO-INTERACTIONS
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.form-label i {
    color: var(--color-cyan);
    font-size: 0.9em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-white);
    border: 2px solid rgba(11, 18, 149, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 4px rgba(8, 215, 255, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: var(--font-size-xs);
    color: var(--color-error);
    display: none;
    margin-top: var(--space-1);
}

.form-group.is-invalid .form-error {
    display: block;
}

.form-group.is-invalid .form-input,
.form-group.is-invalid .form-textarea {
    border-color: var(--color-error);
}

.form-disclaimer {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.form-disclaimer i {
    color: var(--color-cyan);
}

/* ============================================================
   MODAL OVERLAY (fondo oscuro) - DESHABILITADO
   ============================================================ */
.modal-overlay {
    display: none; /* Quitado por petición del usuario */
}

/* ============================================================
   SUCCESS MESSAGE — MODAL STYLE
   ============================================================ */
.form-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 520px;
    text-align: center;
    padding: var(--space-12);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid rgba(8, 215, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 25px 70px rgba(11, 18, 149, 0.25),
        0 10px 25px rgba(8, 215, 255, 0.15);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success.is-visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.form-success__icon {
    font-size: 5rem;
    color: var(--color-success);
    margin-bottom: var(--space-6);
    animation: successPulse 0.6s ease;
}

.form-success__icon i {
    display: inline-block;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.05);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.form-success__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
    margin-bottom: var(--space-4);
    animation: slideInUp 0.5s ease 0.2s both;
}

.form-success__text {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    animation: slideInUp 0.5s ease 0.3s both;
}

.form-success .btn {
    animation: slideInUp 0.5s ease 0.4s both;
}

/* ============================================================
   BENTO GRID — MÉTODOS DE CONTACTO
   ============================================================ */
.contact-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact-bento__item {
    background: var(--color-white);
    border: 1px solid rgba(11, 18, 149, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-bento__item:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 8px 24px rgba(8, 215, 255, 0.15);
    transform: translateY(-4px);
}

.contact-bento__item--featured {
    grid-column: 1 / -1;
    background: linear-gradient(
        135deg,
        rgba(8, 215, 255, 0.05) 0%,
        rgba(11, 18, 149, 0.05) 100%
    );
}

.contact-bento__item--address {
    grid-column: 1 / -1;
}

.contact-bento__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 215, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-cyan);
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    transition: all 0.3s ease;
}

.contact-bento__item:hover .contact-bento__icon {
    background: var(--color-cyan);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.contact-bento__icon--whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contact-bento__item:hover .contact-bento__icon--whatsapp {
    background: #25d366;
    color: var(--color-white);
}

.contact-bento__title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.contact-bento__link {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-bento__link:hover {
    color: var(--color-cyan);
}

.contact-bento__meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

.contact-bento__address {
    font-size: var(--font-size-base);
    font-style: normal;
    color: var(--color-navy);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-3);
}

.contact-bento__map-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-bento__map-link:hover {
    gap: var(--space-3);
}

/* ============================================================
   MAPA EMBEBIDO
   ============================================================ */
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11, 18, 149, 0.1);
    margin-bottom: var(--space-8);
    border: 1px solid rgba(11, 18, 149, 0.1);
}

.contact-map iframe {
    display: block;
    width: 100%;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.contact-map:hover iframe {
    filter: grayscale(0);
}

/* ============================================================
   REDES SOCIALES
   ============================================================ */
.contact-social {
    background: linear-gradient(
        135deg,
        rgba(11, 18, 149, 0.05) 0%,
        rgba(8, 215, 255, 0.05) 100%
    );
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}

.contact-social__title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}

.contact-social__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.contact-social__link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid rgba(11, 18, 149, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-navy);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social__link:hover {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    color: var(--color-white);
    transform: translateY(-4px) scale(1.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .contact-hero {
        min-height: 50vh;
        padding-top: calc(var(--header-height) + var(--space-12));
        padding-bottom: var(--space-12);
    }

    .contact-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .contact-split__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .contact-form-wrapper {
        position: static;
    }

    .contact-form-card {
        padding: var(--space-8);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .contact-bento {
        grid-template-columns: 1fr;
    }

    .contact-bento__item--featured,
    .contact-bento__item--address {
        grid-column: 1;
    }

    /* Modal responsive */
    .form-success {
        width: 95%;
        padding: var(--space-10);
    }

    .form-success__icon {
        font-size: 4rem;
    }

    .form-success__title {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 640px) {
    .contact-hero__title {
        font-size: 2rem;
    }

    .contact-form-card {
        padding: var(--space-6);
    }

    .contact-form-card__title {
        font-size: var(--font-size-xl);
    }

    .form-input,
    .form-textarea {
        padding: var(--space-3);
    }

    /* Modal más pequeño en mobile */
    .form-success {
        padding: var(--space-8);
    }

    .form-success__icon {
        font-size: 3rem;
    }

    .form-success__title {
        font-size: var(--font-size-lg);
    }

    .form-success__text {
        font-size: var(--font-size-base);
    }
}
