@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ============================================================
   TIPOGRAFÍA BASE — evita herencias no deseadas de Bootstrap
   ============================================================ */

.contact-page,
.contact-page input,
.contact-page select,
.contact-page textarea,
.contact-page button,
.contact-page label {
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
}

/* Syne sólo donde corresponde */
.sidebar-badge,
.sidebar-title,
.steps-title,
.info-text label,
.form-group label,
.form-header h2,
.form-header p,
.btn-send {
    font-family: 'Syne', sans-serif;
}

::-webkit-scrollbar { display: none; }

/* ============================================================
   LAYOUT
   ============================================================ */

.contact-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 0;
}

/* ============================================================
   PANEL IZQUIERDO — SIDEBAR
   ============================================================ */

.contact-sidebar {
    background: var(--azul);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contact-sidebar::before,
.contact-sidebar::after { display: none; }

.sidebar-top { position: relative; z-index: 1; }

.sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: #9BB8D4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.sidebar-title span { color: var(--celeste); }

.sidebar-desc {
    color: #9BB8D4;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 300;
}

/* Info items */
.contact-info-items { position: relative; z-index: 1; }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideUp .5s ease forwards;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--celeste);
    transition: background .25s;
}

.info-text label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 3px;
}

.info-text p {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

/* Pasos */
.sidebar-steps {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.steps-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    animation: slideUp .5s ease forwards;
}

.step-num {
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-text strong {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.step-text span {
    font-size: 12px;
    font-weight: 300;
    color: #9BB8D4;
    line-height: 1.5;
}

/* ============================================================
   PANEL DERECHO — FORMULARIO
   ============================================================ */

.contact-main {
    margin-top: -80px;
    background: var(--gris);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

/* Header */
.form-header {
    margin: 36px 36px 24px;
    opacity: 0;
}

.form-header p {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--celeste);
    margin-bottom: 8px;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--azul);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.form-header small {
    font-family: 'DM Sans', sans-serif;
    color: #64748b;
    font-size: 13px;
    font-weight: 300;
}

/* Grid del formulario */
.form-grid {
    margin: 0 36px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: slideUp .4s ease forwards;
}

.form-group.full { grid-column: span 2; }

/* Labels */
.form-group label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

/* Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--texto);
    outline: none;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0bec5;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 4px rgba(0,43,85,.08);
}

.form-group textarea {
    resize: none;
    line-height: 1.6;
}

/* Acciones */
.form-actions {
    margin: 0 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Checkbox */
.form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    animation: slideUp .4s ease .65s forwards;
}

.form-check-custom input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: white;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--azul);
}

.form-check-custom label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.6;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0;
}

.form-check-custom label a {
    color: var(--azul);
    font-weight: 600;
    text-decoration: none;
}

.form-check-custom label a:hover { text-decoration: underline; }
/* Botón enviar */
.btn-send {
    width: 100%;
    background-color: transparent;
    border: 2px solid var(--azul);
    border-radius: 14px;
    padding: 13px 28px;

    position: relative;
    overflow: hidden;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;

    opacity: 0;
    animation: slideUp .4s ease .7s forwards;
}

/* Capa azul que avanza de izquierda a derecha */
.btn-send::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    height: 100%;
    background-color: var(--azul);
    z-index: 0;

    transition: width .75s cubic-bezier(.4, 0, .2, 1);
}

/* Texto */
.btn-send-text {
    position: relative;
    z-index: 2;

    color: var(--azul);
    display: inline-block;
    white-space: nowrap;

    transform: translateX(0);
    opacity: 1;

    transition:
        transform .75s cubic-bezier(.4, 0, .2, 1),
        color .75s cubic-bezier(.4, 0, .2, 1),
        opacity .75s cubic-bezier(.4, 0, .2, 1);
}

/* Hover: fondo se rellena */
.btn-send:hover::before {
    width: 100%;
}

/* Hover: texto acompaña la animación */
.btn-send:hover .btn-send-text {
    transform: translateX(calc(100vw - 800px));
    color: #ffffff;
    opacity: 1;
}

/* Footer */
.form-footer {
    opacity: 0;
    animation: fadeIn .4s ease .75s forwards;
}

.form-footer p {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #94a3b8;
    margin: 0;
}

.form-footer a {
    color: var(--azul);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover { text-decoration: underline; }

/* ============================================================
   ANIMACIONES
   ============================================================ */

.anm { animation: fadeIn .6s ease .2s both; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .contact-page {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        min-height: auto;
        padding: 40px 28px;
    }

    .sidebar-steps { display: none; }

    .contact-main {
        padding: 0;
        justify-content: flex-start;
    }

    .form-header {
        margin: 32px 28px 20px;
        opacity: 1;
        animation: none;
    }

    .form-grid {
        margin: 0 28px 20px;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .form-actions { margin: 0 28px 28px; }

    .form-header h2 { font-size: 1.6rem; }

    .btn-send:hover .btn-send-text {
    transform: translateX(calc(100vw - 250px));
    color: #ffffff;
    opacity: 1;
    }

}

@media (max-width: 600px) {
    .contact-sidebar { padding: 32px 20px; }

    .sidebar-title { font-size: 1.6rem; }

    .form-header {
        margin: 28px 20px 18px;
    }

    .form-header h2 { font-size: 1.4rem; }

    .form-grid {
        grid-template-columns: 1fr;
        margin: 0 20px 18px;
        gap: 14px;
    }

    .form-group.full { grid-column: span 1; }

    .form-actions {
        margin: 0 20px 28px;
        gap: 14px;
    }

    .btn-send {
        width: 100%;
        justify-content: center;
    }

    .btn-send:hover .btn-send-text {
    transform: translateX(calc(100vw - 300px));
    color: #ffffff;
    opacity: 1;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* evita zoom en iOS */
        padding: 11px 14px;
    }

    .info-item { margin-bottom: 14px; }
}