﻿/* =========================================
   contactanos.css — Barney Abogados
========================================= */
:root {
    --brown: #42322C;
    --brown-d: #2B201D;
    --gold: #C9A14A;
    --gold-l: #e8d4a8;
    --off-white: #F5F1F0;
    --bg-light: #EDE8E6;
    --text-dark: #111111;
    --text-mid: #444444;
    --text-muted: #777777;
    --border: rgba(0,0,0,0.08);
}

/* =========================================
   HERO
========================================= */
.contact-hero {
    height: 380px;
    background: url('/img/justicia.png') center/cover no-repeat;
    position: relative;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,12,10,0.88) 0%, rgba(66,50,44,0.70) 100%);
    display: flex;
    align-items: center;
}

.contact-hero-content {
    text-align: center;
}

.contact-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.contact-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

    .contact-hero-title em {
        font-style: italic;
        color: var(--gold-l);
    }

.contact-hero-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin: 0;
}

/* =========================================
   SECCIÓN PRINCIPAL
========================================= */
.contact-section {
    padding: 90px 0 80px;
    background: var(--bg-light);
}

/* Card formulario — sin border-radius, acento dorado superior */
.contact-form-card {
    background: #fff;
    border-radius: 0;
    padding: 44px 40px;
    box-shadow: 6px 6px 0 rgba(66,50,44,0.08);
    border: 1px solid rgba(66,50,44,0.08);
    border-top: 3px solid var(--gold);
}

.contact-form-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(66,50,44,0.08);
}

.form-eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.form-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 300;
    color: var(--brown-d);
    line-height: 1.15;
    margin: 0;
}

/* ── CAMPOS ───────────────────────────────── */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

    .contact-field:last-of-type {
        margin-bottom: 26px;
    }

    .contact-field label {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 2px;
        color: var(--text-dark);
        text-transform: uppercase;
    }

.required {
    color: var(--brown);
    margin-left: 2px;
}

.optional {
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

/* Input con énfasis en borde inferior */
.contact-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #C8BAB6;
    border-radius: 0;
    border-bottom: 2px solid #C8BAB6;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    transition: border-bottom-color .2s, background .2s;
    outline: none;
    appearance: none;
}

    .contact-input::placeholder {
        color: #C0AFA9;
    }

    .contact-input:focus {
        border-bottom-color: var(--gold);
        background: #fff;
    }

.select-wrapper {
    position: relative;
}

    .select-wrapper .contact-input {
        cursor: pointer;
        padding-right: 36px;
    }

.select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

    .select-chevron svg {
        width: 15px;
        height: 15px;
    }

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── BOTÓN SUBMIT ─────────────────────────── */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brown);
    color: #fff;
    padding: 13px 30px;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(66,50,44,0.25);
    transition: background .2s, box-shadow .2s, transform .2s;
}

    .btn-contact svg {
        width: 14px;
        height: 14px;
        stroke: #fff;
        transition: transform .25s;
    }

    .btn-contact:hover {
        background: var(--brown-d);
        box-shadow: 6px 6px 0 rgba(66,50,44,0.18);
        transform: translate(-2px,-2px);
    }

        .btn-contact:hover svg {
            transform: translateX(4px);
        }

    .btn-contact:active {
        transform: translate(1px,1px);
        box-shadow: 2px 2px 0 rgba(66,50,44,0.25);
    }

    .btn-contact:focus, .btn-contact:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 2px;
        box-shadow: none !important;
    }

/* ── PANEL INFO ───────────────────────────── */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tarjeta firma */
.contact-firm-card {
    background: var(--brown-d);
    border-radius: 0;
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
}

    /* Rombo decorativo */
    .contact-firm-card::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 180px;
        height: 180px;
        background: rgba(201,161,74,0.06);
        transform: rotate(45deg);
        pointer-events: none;
    }

.firm-card-accent {
    display: none;
}

.firm-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}

    .firm-name span {
        color: var(--gold-l);
        display: block;
    }

.firm-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.58);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

    .firm-location svg {
        width: 12px;
        height: 12px;
        stroke: var(--gold);
        flex-shrink: 0;
    }

.firm-tagline {
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
    opacity: 0.72;
}

/* Lista contacto */
.contact-data-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-data-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: #fff;
    border-radius: 0;
    border: 1px solid rgba(66,50,44,0.08);
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: border-left-color .18s, box-shadow .18s, transform .18s;
}

    .contact-data-item:hover {
        border-left-color: var(--gold);
        box-shadow: 3px 0 0 rgba(201,161,74,0.1);
        transform: translateX(3px);
    }

.contact-data-icon {
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brown-d);
    transition: background .18s;
}

.contact-data-item:hover .contact-data-icon {
    background: rgba(66,50,44,0.08);
}

.contact-data-icon svg {
    width: 15px;
    height: 15px;
}

.contact-data-icon--wa {
    color: #25D366;
    background: rgba(37,211,102,0.08);
}

.contact-data-item:hover .contact-data-icon--wa {
    background: rgba(37,211,102,0.14);
}

.contact-data-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-data-value {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Sociales */
.contact-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 0;
    border: 1px solid rgba(66,50,44,0.08);
}

.socials-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.socials-icons {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 0;
    border: 1px solid rgba(66,50,44,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-d);
    text-decoration: none;
    transition: background .18s, color .18s;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 88% 100%, 0 100%);
}

    .social-icon svg {
        width: 12px;
        height: 12px;
    }

    .social-icon:hover {
        background: var(--brown-d);
        color: #fff;
    }

/* =========================================
   SECCIÓN MAPA
========================================= */
.contact-map-section {
    background: var(--bg-light);
    padding: 0 0 90px;
}

.contact-map-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-bottom: 28px;
}

.map-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
}

.contact-map {
    overflow: hidden;
    border-radius: 0;
    background: #fafafa;
    border: 1px solid rgba(66,50,44,0.08);
    box-shadow: 6px 6px 0 rgba(66,50,44,0.06);
    padding: 6px;
    transition: box-shadow .25s;
}

    .contact-map:hover {
        box-shadow: 8px 8px 0 rgba(66,50,44,0.10);
    }

/* =========================================
   FEEDBACK
========================================= */
.contact-success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(34,197,94,0.07);
    border-left: 3px solid #22c55e;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.contact-success-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: rgba(34,197,94,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #16a34a;
}

    .contact-success-icon svg {
        width: 16px;
        height: 16px;
    }

.contact-success-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 4px;
}

.contact-success-sub {
    font-size: 0.78rem;
    color: #166534;
    margin: 0;
    line-height: 1.5;
}

.contact-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(66,50,44,0.05);
    border-left: 3px solid var(--brown);
    padding: 11px 15px;
    font-size: 0.8rem;
    color: var(--brown);
    margin-bottom: 18px;
}

    .contact-error svg {
        width: 14px;
        height: 14px;
        stroke: var(--brown);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        flex-shrink: 0;
    }

.field-error {
    font-size: 0.68rem;
    color: var(--brown);
    margin-top: 3px;
    display: block;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 991.98px) {
    .contact-form-card {
        padding: 28px 22px;
    }

    .contact-info-panel {
        margin-top: 8px;
    }
}

@media (max-width: 767.98px) {
    .contact-hero {
        height: 280px;
    }

    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-section {
        padding: 56px 0;
    }

    .contact-map-section {
        padding-bottom: 56px;
    }
}
