/* ============================
   CONTACTO PREMIUM - NUEVO ESTILO
============================ */

.contacto-pro {
    padding: 70px 8%;
    background:
        radial-gradient(circle at bottom center, rgba(212, 175, 55, 0.08), transparent 34%),
        linear-gradient(to top, #050505 0%, #0d0d10 48%, #17171b 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    margin-left: 30px;
    margin-right: 30px;
    max-width: auto;
    border-radius: 24px;
}

.contacto-pro::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    bottom: -150px;
    right: -120px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
    pointer-events: none;
}

.contacto-pro::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -100px;
    left: -60px;
    background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 70%);
    pointer-events: none;
}

/* ============================
   ALERTAS
============================ */

.contacto-alert {
    max-width: 1000px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 12px;
    position: relative;
    z-index: 3;
}

.contacto-alert-success {
    background: #eaf8ee;
    border: 1px solid #b7e1c1;
    color: #1f6b35;
}

.contacto-alert-error {
    background: #fff4f4;
    border: 1px solid #f0b5b5;
    color: #9b1c1c;
}

/* ============================
   INTRO
============================ */

.contacto-intro {
    max-width: 1000px;
    margin: 0 auto 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contacto-tag {
    font-family: "Tangerine", serif;
    font-weight: 700;
    font-size: 100px;
    letter-spacing: 0.5px;
    color: #fff;
    display: inline-block;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 10px;
}

.contacto-tag-m {
    font-family: "Tangerine", serif;
    font-weight: 700;
    font-size: 80px;
    letter-spacing: 0.5px;
    color: #fff;
    display: inline-block;
    margin-bottom: 18px;
    line-height: 1;
}

/* ============================
   LAYOUT GENERAL
============================ */

.contacto-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 0;
    align-items: stretch;
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================
   FORMULARIO
============================ */

.contacto-form-box {
    background: linear-gradient(145deg, rgba(42, 42, 44, 0.96), rgba(20, 20, 22, 0.94));
    padding: 44px;
    border-radius: 34px 18px 18px 34px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    min-height: 100%;
}

.contacto-form-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34px 18px 18px 34px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(255,255,255,0.02));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.contacto-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    font-size: 1rem;
    font-family: inherit;
    color: #ffffff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

#tipo {
    background-color: rgba(4, 4, 4, 0.45);
}

.form-group select {
    color: rgba(255,255,255,0.85);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.full-width {
    grid-column: 1 / -1;
}

.contacto-submit {
    margin-top: 28px;
}

/* ============================
   PANEL LATERAL
   BOTONES JUSTO DEBAJO DEL TEXTO
============================ */

.contacto-info-box {
    background: linear-gradient(180deg, rgba(16,16,18,0.98) 0%, rgba(46,46,50,0.95) 100%);
    color: white;
    padding: 34px;
    border-radius: 18px 34px 34px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;

    margin-left: -22px;
    margin-top: 28px;

    min-height: unset;
    height: fit-content;   /* se ajusta al contenido */
    align-self: start;     /* no se estira dentro del grid */
}

.contacto-info-box::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(212,175,55,0),
        rgba(212,175,55,0.28),
        rgba(212,175,55,0)
    );
    pointer-events: none;
}

/* ============================
   CABECERA INFO
============================ */

.contacto-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.14);
    color: #f0cf65;
    border: 1px solid rgba(212, 175, 55, 0.24);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.contacto-info-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacto-info-top h3 {
    color: white;
    font-size: 1.7rem;
    margin: 0;
    line-height: 1.2;
}

.contacto-info-top p {
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin: 0;
}

/* ============================
   BOTONES DEL PANEL LATERAL
============================ */

.contacto-actions {
    display: grid;
    gap: 14px;
    margin-top: 0; /* ahora ya no lo empujamos abajo */
}

/* ============================
   BOTONES GENERALES
============================ */

.contacto-pro .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
    cursor: pointer;
}

/* botón gold */
.contacto-pro .btn.gold,
.contacto-submit .btn,
button.btn {
    color: #111111;
    background: linear-gradient(135deg, #d4af37, #f3d37a);
    box-shadow:
        0 10px 24px rgba(212, 175, 55, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.38);
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contacto-pro .btn.gold:hover,
.contacto-submit .btn:hover,
button.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 32px rgba(212, 175, 55, 0.38),
        0 0 24px rgba(243, 211, 122, 0.22);
    filter: brightness(1.03);
    color: #111111;
}

/* botón outline */
.contacto-pro .btn.outline {
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    color: #f0cf65;
    box-shadow: none;
}

.contacto-pro .btn.outline:hover {
    background: linear-gradient(135deg, #d4af37, #f3d37a);
    color: #111111;
    border-color: transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 32px rgba(212, 175, 55, 0.28),
        0 0 24px rgba(243, 211, 122, 0.18);
}

.contacto-submit .btn:focus,
.contacto-submit .btn:active,
button.btn:focus,
button.btn:active {
    outline: none;
    border: none;
}

.btn-wide,
.btn-full {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 992px) {
    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contacto-form-box {
        border-radius: 26px;
    }

    .contacto-form-box::before {
        border-radius: 26px;
    }

    .contacto-info-box {
        margin-left: 0;
        margin-top: 0;
        min-height: auto;
        border-radius: 26px;
    }
}

@media (max-width: 768px) {
    .contacto-pro {
        padding: 0px 16px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .contacto-tag {
        font-size: 70px;
    }

    .contacto-tag-m {
        font-size: 60px;
        margin-left: 0;
        text-align: center;
        display: block;
    }

    .contacto-form-box,
    .contacto-info-box {
        padding: 26px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .contacto-pro .btn,
    .btn-wide,
    .btn-full {
        width: 100%;
    }
}
