/*
 * contacto.css — Página Contacto — Impala Victoria (R1)
 * Standalone: no depende de global.css
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --fuente-display: 'Cormorant Garamond', Georgia, serif;
    --fuente-ui:      'Barlow Condensed', sans-serif;
    --fuente-cuerpo:  'Barlow', sans-serif;
    --h-fondo:        #0d2535;
    --h-fondo-alt:    #0a1e2c;
    --h-fondo-claro:  #112840;
    --h-dorado:       #c9a84c;
    --h-dorado-claro: #e0bf6e;
    --h-texto:        #ffffff;
    --h-texto-suave:  rgba(255,255,255,0.75);
    --h-texto-tenue:  rgba(255,255,255,0.4);
    --h-borde:        rgba(201,168,76,0.22);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    background: var(--h-fondo);
    color: var(--h-texto);
    font-family: var(--fuente-cuerpo);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* En varios navegadores móviles body, no html, es el que scrollea de verdad —
       con overflow-x solo en html el movimiento lateral puede seguir aunque haya
       algo empujando el ancho (ver ajuste puntual en el formulario más abajo) */
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--h-dorado); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
}
.nav.scrolled {
    background: var(--h-nav-bg, rgba(13,37,53,0.97));
    backdrop-filter: blur(8px);
    padding: 12px 0;
    border-bottom: 1px solid var(--h-borde);
}
.nav__inner {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.nav__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__logo img { height: 78px; width: auto; }
.nav__logo-texto { display: flex; flex-direction: column; line-height: 1.2; }
.nav__logo-nombre {
    font-family: var(--fuente-display);
    font-size: 2.08rem; font-weight: 400; font-style: italic;
    color: #fff; letter-spacing: 0.02em;
}
.nav__logo-subtitulo {
    font-family: var(--fuente-ui);
    font-size: 14px; font-weight: 500;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--h-dorado);
}
.nav__menu {
    display: flex; gap: 36px;
    position: absolute; left: 0; right: 0;
    top: 50%; transform: translateY(-50%);
    justify-content: center; align-items: center;
}
.nav__menu a {
    font-family: var(--fuente-cuerpo);
    font-size: 14px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    position: relative; padding-bottom: 4px; transition: color 0.2s;
}
.nav__menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--h-dorado); transition: width 0.3s;
}
.nav__menu a:hover, .nav__menu a.activo { color: #fff; }
.nav__menu a:hover::after, .nav__menu a.activo::after { width: 100%; }
.nav__hamburguesa {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
    position: fixed; top: 24px; right: 20px; z-index: 10001;
}
.nav__hamburguesa span {
    display: block; width: 24px; height: 1.5px;
    background: #fff; transition: all 0.2s;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.contenedor {
    width: 100%; max-width: 1280px;
    margin: 0 auto; padding: 0 40px;
}

/* ============================================================
   BANNER
   ============================================================ */
.imagen-separadora {
    position: relative; height: 340px;
    overflow: hidden; margin-top: 118px;
}
.imagen-separadora img {
    width: 100%; height: 100%;
    object-fit: cover; filter: brightness(0.4);
}
.imagen-separadora__breadcrumb {
    position: absolute; bottom: 20px;
    left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 1280px; padding: 0 40px;
}
.imagen-separadora__breadcrumb span,
.imagen-separadora__breadcrumb a {
    font-family: var(--fuente-ui); font-size: 0.72rem;
    font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--h-texto-suave);
}
.imagen-separadora__breadcrumb a:hover { color: var(--h-dorado); }
.imagen-separadora__breadcrumb .separador { margin: 0 0.5rem; color: var(--h-dorado); }

/* ============================================================
   SECCIÓN CONTACTO
   ============================================================ */
.contacto-section { padding: 70px 0 80px; }

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 70px;
    align-items: start;
}

/* ============================================================
   INFO — columna izquierda
   ============================================================ */
.contacto-info__titulo {
    font-family: var(--fuente-display);
    font-size: 3rem; font-weight: 600; font-style: italic;
    color: var(--h-texto); line-height: 1.2;
    margin-bottom: 10px;
}
.contacto-info__sep {
    width: 40px; height: 1px;
    background: var(--h-dorado);
    margin: 16px 0 32px;
}
.contacto-info__intro {
    font-size: 0.95rem;
    color: var(--h-texto-suave);
    line-height: 1.7;
    margin-bottom: 36px;
}
.contacto-info__lista {
    display: flex; flex-direction: column; gap: 28px;
    margin-bottom: 36px;
}
.contacto-info__item {
    display: flex; align-items: flex-start; gap: 16px;
}
.contacto-info__icono {
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--h-dorado);
}
.contacto-info__label {
    display: block;
    font-family: var(--fuente-ui);
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--h-dorado);
    margin-bottom: 3px;
}
.contacto-info__valor {
    font-size: 0.95rem;
    color: var(--h-texto-suave);
    line-height: 1.5;
}
.contacto-info__redes {
    display: flex; gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--h-borde);
    margin-top: 4px;
}
.contacto-info__red {
    width: 50px; height: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--h-texto-suave);
    transition: border-color 0.2s, color 0.2s;
}
.contacto-info__red:hover { border-color: var(--h-dorado); color: var(--h-dorado); }
.contacto-info__red svg { width: 21px; height: 21px; }

/* ============================================================
   FORMULARIO — columna derecha
   ============================================================ */
.contacto-form {
    background: var(--h-fondo-claro);
    border: 1px solid var(--h-borde);
    padding: 44px 40px;
}
.contacto-form__titulo {
    font-family: var(--fuente-display);
    font-size: 1.9rem; font-weight: 600; font-style: italic;
    color: var(--h-texto); margin-bottom: 8px;
}
.contacto-form__sep {
    width: 40px; height: 1px;
    background: var(--h-dorado);
    margin: 14px 0 32px;
}
.form-grupo { margin-bottom: 22px; }
.form-label {
    display: block;
    font-family: var(--fuente-ui);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--h-texto-suave);
    margin-bottom: 8px;
}
.form-label__opt {
    font-weight: 400; letter-spacing: 0;
    text-transform: none; font-size: 0.72rem;
    color: var(--h-texto-tenue);
}
.form-requerido { color: var(--h-dorado); }
.form-opcional {
    font-weight: 400; letter-spacing: 0;
    text-transform: none; font-size: 0.72rem;
    color: var(--h-texto-tenue);
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--h-fondo-alt);
    border: 1px solid var(--h-borde-sutil-12, rgba(255,255,255,0.12));
    color: var(--h-texto);
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--h-dorado); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--h-texto-tenue); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.form-select option { background: var(--h-fondo, #0d2535); color: #fff; }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* File input */
.form-adjunto-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}
.form-adjunto-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--h-texto-suave);
    font-family: var(--fuente-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.form-adjunto-btn:hover { border-color: var(--h-dorado); color: var(--h-dorado); }
.form-adjunto-nombre {
    font-size: 0.85rem;
    color: var(--h-texto-tenue);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.form-adjunto-real {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

/* Submit */
.form-submit {
    width: 100%;
    padding: 15px 32px;
    background: var(--h-dorado);
    color: var(--h-fondo);
    border: none;
    font-family: var(--fuente-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s;
    margin-top: 8px;
}
.form-submit:hover { background: var(--h-dorado-claro); }

/* Mensajes de estado */
.form-errores {
    background: rgba(200,60,60,0.12);
    border: 1px solid rgba(200,60,60,0.4);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    color: #f08080;
    line-height: 1.6;
}
.form-errores ul { padding-left: 16px; }
.form-errores li { list-style: disc; }

.form-exito {
    text-align: center;
    padding: 50px 20px;
}
.form-exito__icono {
    width: 52px; height: 52px;
    border: 2px solid var(--h-dorado);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--h-dorado);
}
.form-exito__icono svg { width: 24px; height: 24px; }
.form-exito h3 {
    font-family: var(--fuente-display);
    font-size: 1.7rem; font-weight: 600; font-style: italic;
    color: var(--h-texto); margin-bottom: 10px;
}
.form-exito p {
    font-size: 0.9rem;
    color: var(--h-texto-suave);
}

/* ============================================================
   MODAL ÉXITO
   ============================================================ */
.modal-exito {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}
.modal-exito__caja {
    background: var(--h-fondo-claro);
    border: 1px solid var(--h-borde);
    padding: 50px 44px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.modal-exito__icono {
    width: 56px; height: 56px;
    border: 2px solid var(--h-dorado);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    color: var(--h-dorado);
}
.modal-exito__icono svg { width: 26px; height: 26px; }
.modal-exito__caja h3 {
    font-family: var(--fuente-display);
    font-size: 1.8rem; font-weight: 600; font-style: italic;
    color: var(--h-texto); margin-bottom: 12px;
}
.modal-exito__caja p {
    font-size: 0.95rem;
    color: var(--h-texto-suave);
    line-height: 1.7;
    margin-bottom: 32px;
}
.modal-exito__btn {
    padding: 12px 36px;
    background: var(--h-dorado);
    color: var(--h-fondo);
    border: none;
    font-family: var(--fuente-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-exito__btn:hover { background: var(--h-dorado-claro); }

/* ============================================================
   MAPA
   ============================================================ */
.mapa-section { padding: 0 0 80px; }
.mapa-section .contenedor { padding: 0; }
.mapa-iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    filter: grayscale(30%) contrast(1.1);
}

/* ============================================================
   PIE
   ============================================================ */
.pie {
    background: var(--h-pie-fondo, #070f16);
    border-top: 1px solid var(--h-borde);
    padding: 70px 0 30px;
}
.pie .contenedor { max-width: 1280px; }
.pie__logo-top { text-align: center; margin-bottom: 36px; }
.pie__logo-top img { height: 78px; margin: 0 auto 12px; }
.pie__logo-nombre {
    font-family: var(--fuente-display);
    font-size: 2.08rem; font-weight: 400; font-style: italic;
    color: #fff; letter-spacing: 0.02em;
}
.pie__logo-sub {
    font-family: var(--fuente-ui);
    font-size: 14px; font-weight: 500;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--h-dorado); margin-top: 4px;
}
.pie__separador { width: 50px; height: 1px; background: var(--h-borde); margin: 0 auto 50px; }
.pie__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.pie__col-titulo {
    font-family: var(--fuente-ui); font-size: 14px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--h-dorado); margin-bottom: 20px;
}
.pie__col-texto, .pie__col p, .pie__col a {
    font-family: var(--fuente-cuerpo); font-size: 15px;
    color: var(--h-texto-tenue); line-height: 2;
}
.pie__col a:hover { color: var(--h-dorado); }
.pie__col--nav nav { display: flex; flex-direction: column; gap: 6px; }
.pie__col--nav nav a { font-size: 15px; color: var(--h-texto-tenue); transition: color 0.2s; }
.pie__col--nav nav a:hover { color: var(--h-dorado); }
.pie__redes { display: flex; gap: 10px; margin-top: 16px; }
.pie__redes a {
    width: 34px; height: 34px;
    border: 1px solid var(--h-borde-sutil, rgba(255,255,255,0.15)); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--h-texto-tenue); transition: all 0.2s;
}
.pie__redes a:hover { border-color: var(--h-dorado); color: var(--h-dorado); }
.pie__copyright {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px; text-align: center;
    font-family: var(--fuente-ui); font-size: 12px;
    color: rgba(255,255,255,0.25); letter-spacing: 0.08em;
}

/* ============================================================
   BTN TOP
   ============================================================ */
.btn-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    width: 44px; height: 44px;
    background: var(--h-dorado); color: var(--h-fondo);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s; pointer-events: none;
}
.btn-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.btn-top:hover { background: var(--h-dorado-claro); }
.btn-top svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .nav__logo img { height: 56px; }
    .nav__logo-nombre { font-size: 1.5rem; }
    .nav__logo-subtitulo { font-size: 11px; }
    .nav__hamburguesa { display: flex; }
    .nav__menu {
        position: fixed !important; top: 0 !important; right: -225px !important;
        left: auto !important; bottom: 0 !important;
        width: 185px !important; height: 100vh !important;
        margin: 0 !important; padding: 110px 24px 40px !important;
        background: var(--h-nav-mobile-bg, rgba(13,37,53,0.98)) !important;
        display: flex !important; flex-direction: column !important;
        align-items: stretch !important; justify-content: flex-start !important;
        text-align: right !important; gap: 22px !important;
        z-index: 10000 !important; transition: none !important;
        border-left: 1px solid rgba(255,255,255,0.08) !important;
        backdrop-filter: blur(10px) !important;
        overflow-y: auto !important; transform: none !important;
        box-shadow: -10px 0 30px rgba(0,0,0,.35);
    }
    .nav__menu.abierto { right: 0 !important; transition: right .35s ease !important; }
    .nav__menu a { display: block; width: 100%; text-align: right; font-size: 15px; margin: 0; padding: 6px 0; color: #fff; }
    .nav__menu a:hover { color: var(--h-dorado); }
    .imagen-separadora { margin-top: 96px; }
}

@media (max-width: 960px) {
    .contacto-layout { grid-template-columns: 1fr; gap: 50px; }
    .contacto-form { padding: 34px 28px; }
    .imagen-separadora { height: 260px; margin-top: 90px; }
    .contacto-section { padding: 50px 0 60px; }
    .mapa-section { padding: 0 0 60px; }
    .mapa-iframe { height: 320px; }
}

@media (max-width: 700px) {
    .contenedor { padding: 0 20px; }
    .imagen-separadora { height: 200px; }
    .imagen-separadora__breadcrumb { padding: 0 20px; }
    .contacto-form { padding: 24px 20px; }
    .mapa-iframe { height: 260px; }
    .pie__grid { grid-template-columns: 1fr; gap: 30px; }

    /* Orden en celular: Hablemos → Formulario → Contactate (datos) */
    .contacto-layout {
        display: flex;
        flex-direction: column;
    }
    .contacto-info { display: contents; }
    .contacto-info__hablemos { order: 1; min-width: 0; }
    .contacto-form-wrap      { order: 2; min-width: 0; max-width: 100%; overflow-x: hidden; }
    .contacto-info__datos    { order: 3; min-width: 0; }
    .contacto-form { max-width: 100%; }

    /* El botón "Examinar archivo" + nombre no se achicaban y desbordaban el ancho de pantalla */
    .form-adjunto-wrap { min-width: 0; }
    .form-adjunto-nombre { flex: 1 1 0; min-width: 0; }
}
