/**
 * Página pública /contacto/ — layout y formulario (tema MAC en marko-design-system.css).
 * Nota: styles.css define img,video,iframe,svg { max-width:100%; height:auto } lo que puede
 * inflar iconos SVG en grillas; aquí se fijan tamaños explícitos.
 */

/* !important: marko-design-system fuerza .contact { background: transparent } en mac-contact */
body.mac-landing.mac-contact #contacto.contact.mac-contact-section {
    background: linear-gradient(180deg, var(--mac-bg-deep, #0a0a0a) 0%, var(--mac-bg, #111) 100%) !important;
    min-height: auto !important;
}

body.mac-landing.mac-contact .contact#contacto {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

body.mac-landing.mac-contact .contact__content {
    display: grid;
    /* Sidebar con ancho acotado: el formulario usa el resto y los inputs no quedan en columnas de ~100px */
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(1.5rem, 4vw, 2.75rem);
    margin-top: 2.5rem;
    align-items: start;
    max-width: min(1100px, 100%);
    margin-left: auto;
    margin-right: auto;
}

body.mac-landing.mac-contact .contact__form-wrapper {
    width: 100%;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 16px;
    border: 1px solid var(--mac-border, rgba(255, 255, 255, 0.08));
    background: var(--mac-bg-raised, #141414);
}

body.mac-landing.mac-contact .contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

body.mac-landing.mac-contact .contact__form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin: 0;
    width: 100%;
}

body.mac-landing.mac-contact .contact__form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    min-width: 0;
}

body.mac-landing.mac-contact .contact__form-group--full {
    width: 100%;
}

body.mac-landing.mac-contact .contact__form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

body.mac-landing.mac-contact .contact__form-group input,
body.mac-landing.mac-contact .contact__form-group textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
}

body.mac-landing.mac-contact .contact__form-group textarea {
    min-height: 140px;
    resize: vertical;
}

body.mac-landing.mac-contact .contact__form .btn.btn--full {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
}

body.mac-landing.mac-contact .contact__form-feedback {
    margin-top: 0.75rem;
    min-height: 0;
}

/* Columna lateral: mismos bloques que la landing */
body.mac-landing.mac-contact .contact__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

body.mac-landing.mac-contact .contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: 12px;
    margin: 0;
}

body.mac-landing.mac-contact .contact__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Iconos: anulan el reset global de svg */
body.mac-landing.mac-contact .contact .contact__icon svg {
    display: block;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0;
}

body.mac-landing.mac-contact .contact__item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

body.mac-landing.mac-contact .contact__item p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

body.mac-landing.mac-contact .contact__social {
    margin-top: 0.25rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--mac-border, rgba(255, 255, 255, 0.08));
    background: var(--mac-bg-elevated, #1a1a1a);
}

body.mac-landing.mac-contact .contact__social-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

body.mac-landing.mac-contact .social__links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

body.mac-landing.mac-contact .contact .social__link {
    box-sizing: border-box;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

/* Anula el reset global (svg { max-width:100%; height:auto }) que puede inflar iconos */
body.mac-landing.mac-contact .contact .social__link svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    min-width: 0 !important;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    body.mac-landing.mac-contact .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body.mac-landing.mac-contact .contact__form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.mac-landing.mac-contact .contact#contacto {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
}
