﻿
/* ── Layout ── */
.dm-contact-section {
    min-height: 88vh;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    overflow: hidden;
}

/* ── Left info panel ── */
.dm-info-panel {
    width: 42%;
    padding: 4.5rem 3.5rem 4.5rem 4rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    background: linear-gradient(135deg, #2f6e51 0%, #1B3328 55%, #120b07 100%);
    z-index: 1;
}

    .dm-info-panel::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }

.dm-eyebrow {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.dm-main-title {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 0.88;
    color: #EDE8DF;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

    .dm-main-title .accent {
        color: #D4580A;
    }

.dm-description {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 30ch;
    position: relative;
    z-index: 1;
}

.dm-address-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #D4580A;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

    .dm-address-card i {
        color: #D4580A;
        font-size: 1.15rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

.dm-address-text {
    font-size: 0.82rem;
    color: #B0A090;
    line-height: 1.55;
}

    .dm-address-text strong {
        display: block;
        color: #EDE8DF;
        font-weight: 500;
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

.dm-social-row {
    display: flex;
    gap: 0.625rem;
    position: relative;
    z-index: 1;
}

.dm-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4580A;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

    .dm-social-link:hover {
        background: #D4580A;
        color: #1C0E05;
        border-color: #D4580A;
    }

/* ── Right form panel ── */
.dm-form-panel {
    flex: 1;
    padding: 4.5rem 4rem 4.5rem 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dm-form-header {
    margin-bottom: 2rem;
}

.dm-form-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.dm-form-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    color: #1C0E05;
    letter-spacing: 0.04em;
    line-height: 1;
}

/* ── Alerts ── */
.dm-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.125rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.dm-alert-success {
    background: #EEFAF3;
    color: #186D3B;
    border: 1px solid #A8DFC0;
}

.dm-alert-danger {
    background: #FDF2F2;
    color: #8B2020;
    border: 1px solid #F0AAAA;
}

/* ── Form fields ── */
.dm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.dm-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .dm-form-group.span-2 {
        grid-column: 1 / -1;
    }

.dm-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7A6558;
}

.dm-input,
.dm-textarea {
    border: 1.5px solid #DDD4C8;
    border-radius: 7px;
    padding: 0.75rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    background: #FFFFFF;
    color: #1C0E05;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

    .dm-input:focus,
    .dm-textarea:focus {
        border-color: #D4580A;
        box-shadow: 0 0 0 3px rgba(212, 88, 10, 0.1);
    }

    .dm-input::placeholder,
    .dm-textarea::placeholder {
        color: #C2B5AA;
    }

.dm-textarea {
    min-height: 130px;
    resize: vertical;
}

/* ── Submit row ── */
.dm-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.dm-btn-submit {
    color: #FFFFFF;
    border: none;
    border-radius: 7px;
    padding: 0.825rem 2.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

    .dm-btn-submit:hover {
        background: #B84A08 !important;
    }

    .dm-btn-submit:active {
        transform: scale(0.98);
    }

/* ── Map ── */
.dm-map-wrapper {
    width: 100%;
    height: 380px;
    display: block;
    position: relative;
}

    .dm-map-wrapper iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
        filter: grayscale(20%) contrast(1.05);
    }

/* ═══════════════════════════════════════════
   RESPONSIVE  — alineado con breakpoints Bootstrap
   lg  ≤ 991px  → columna: info arriba, form abajo
   sm  ≤ 575px  → ajustes de padding y grid
═══════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .dm-contact-section {
        flex-direction: column !important;
        min-height: auto;
        overflow: visible; /* elimina el clip-path overflow */
    }

    .dm-info-panel {
        width: 100% !important;
        clip-path: none !important; /* quita el corte diagonal */
        padding: 3.5rem 2rem 4rem; /* más padding inferior por el recorte eliminado */
    }

    .dm-main-title {
        font-size: clamp(3rem, 10vw, 4.5rem);
    }

    .dm-description {
        max-width: 100%;
    }

    .dm-form-panel {
        flex: unset;
        width: 100% !important;
        padding: 3rem 2rem 4rem;
    }
}

@media (max-width: 575.98px) {
    .dm-form-grid {
        grid-template-columns: 1fr;
    }

    .dm-form-group.span-2 {
        grid-column: 1;
    }

    .dm-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dm-btn-submit {
        text-align: center;
        width: 100%;
    }

    .dm-recaptcha-wrapper {
        width: 100%;
    }
}
