/* ================================================================
   CONTACT — Panel de info + formulario (estilo base: jobs-embed)
   Radios 16-24px, tarjetas #0E0E0E con borde #1F1F1F, glow rojo en
   hover/acentos, Plus Jakarta Sans, transiciones 300ms ease.
   ================================================================ */

.contact-chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .contact-chips {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-chips {
        grid-template-columns: repeat(4, 1fr);
    }
}

.contact-chips--column {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: 0;
    height: 100%;
}

.contact-chips--column .contact-chip {
    flex: 1;
    padding: var(--space-xl);
    gap: var(--space-lg);
}

.contact-chips--column .contact-chip__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.contact-chips--column .contact-chip__icon svg {
    width: 26px;
    height: 26px;
}

.contact-chips--column .contact-chip__label {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.contact-chips--column .contact-chip__value {
    font-size: var(--text-lg);
}

.contact-chips--column .contact-chip__social a {
    width: 38px;
    height: 38px;
}

.contact-chips--column .contact-chip__social svg {
    width: 17px;
    height: 17px;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg);
    border: 1px solid #1F1F1F;
    border-radius: 18px;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.contact-chip:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.12);
}

.contact-chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--color-bg);
    border: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.18), inset 0 0 10px rgba(255, 0, 0, 0.08);
    color: var(--color-primary);
}

.contact-chip__icon svg {
    width: 19px;
    height: 19px;
}

.contact-chip__body {
    min-width: 0;
}

.contact-chip__label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-chip__value {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-secondary);
    overflow-wrap: anywhere;
}

.contact-chip__social {
    display: flex;
    gap: var(--space-sm);
}

.contact-chip__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #1F1F1F;
    color: var(--color-text-muted);
    transition: border-color 300ms ease, color 300ms ease;
}

.contact-chip__social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.contact-chip__social svg {
    width: 14px;
    height: 14px;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

@media (min-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-map {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
}

@media (min-width: 900px) {
    .contact-map {
        height: 100%;
    }
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6);
}

.contact-map--wide {
    height: 240px;
}

@media (min-width: 900px) {
    .contact-map--wide {
        height: 300px;
    }
}

.contact-panel {
    background: var(--color-bg);
    border: 1px solid #1F1F1F;
    border-radius: 24px;
    padding: var(--space-2xl);
}

.contact-panel--form {
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.08);
}

.contact-panel--map-wide {
    padding: 0;
    margin-top: var(--space-xl);
}

.contact-panel__title {
    margin-bottom: var(--space-md);
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 560px) {
    .contact-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    background: #040404;
    border: 1px solid #1F1F1F;
    border-radius: var(--radius-full);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text);
    transition: border-color 300ms ease;
}

.contact-form__textarea {
    border-radius: 20px;
    min-height: 160px;
    resize: vertical;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #666;
}

.contact-form__input:focus-visible,
.contact-form__textarea:focus-visible {
    border-color: var(--color-primary);
    outline: none;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    align-self: flex-start;
    margin-top: var(--space-sm);
    padding: var(--space-xs);
    padding-left: var(--space-xl);
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.contact-form__submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.contact-form__submit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
}

.contact-form__submit-icon svg {
    width: 16px;
    height: 16px;
}

.contact-form__status {
    font-size: var(--text-sm);
    font-weight: 600;
}

.contact-form__status[data-state="pending"] {
    color: var(--color-text-muted);
}

.contact-form__status[data-state="success"] {
    color: #4ADE80;
}

.contact-form__status[data-state="error"] {
    color: var(--color-primary);
}
