/* ====================================
   CONTACTO — DRAU Design
   ==================================== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.contact-page {
    background: #E8EEF2;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

.contact-page .logo-link {
    position: relative !important;
    top: 50px;
    left: 50px;
    z-index: 50 !important;
}

@media only screen and (max-width: 480px) {
	.contact-page .logo-link {
		top: 30px !important;
		left: 30px !important;
	}
}

.contact-page .menu-toggle-label {
    position: absolute !important;
    z-index: 151;
}

.contact-page .menu-nav {
    position: fixed !important;
    z-index: 149;
}

.logo-contact {
    position: absolute;
    margin: 50px 0 0 50px;
    z-index: 40;
    width: 100px;
    height: 42px;
}

.contact-page .nav { z-index: 999999; }
.contact-page .menu-icon { z-index: 1000000; }

/* Ocultar elementos de soporte de chat cuando el menú está activo */
.contact-page.nav-active iframe[src*="wadesk"],
.contact-page.nav-active [id^="wadesk"],
.contact-page.nav-active [class*="wadesk"] {
    display: none !important;
}

/* ===== HERO WRAP CON MAPA DE FONDO ===== */
.contact-hero-wrap {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Eliminamos paddings asimétricos y usamos uno uniforme */
    padding: 100px 24px; 
    box-sizing: border-box;
}

.contact-bg {
    position: fixed; /* Cambiado a fixed para que se pegue al viewport */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.contact-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* Eliminamos cualquier filtro que pueda causar saltos de renderizado */
    filter: saturate(0.85) brightness(0.95);
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente con un poco más de opacidad arriba para fundir con el header */
    background: linear-gradient(180deg,
        rgba(232, 238, 242, 0.95) 0%,
        rgba(218, 220, 242, 0.7) 100%);
    z-index: 1;
}
.contact-bg-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 25, 126, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 25, 126, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}
@media only screen and (max-width: 768px) {
    .contact-bg-overlay::after { background-size: 18px 18px; }
}

.contact-grid {
    position: relative;
    width: 100%;
    /* Max-width ajustado para que no se pegue a los bordes en desktop */
    max-width: 1200px;
    /* margin: 0 auto es vital para que los márgenes laterales sean IGUALES */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Gap equilibrado */
    gap: 80px;
    align-items: center;
}

/* ===== COLUMNA IZQUIERDA: TEXTO E INFO ===== */
.contact-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-family: 'F37 Ginger', sans-serif;
    font-weight: bold;
    font-size: 45px;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #00197E;
    margin: 0 0 20px;
}

.contact-intro {
    font-size: 18px;
    line-height: 1.5;
    color: #4A5568;
    max-width: 480px;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.info-block h3 {
    font-family: 'F37 Ginger', sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00197E;
    margin-bottom: 8px;
}

.info-block p {
    font-size: 15px;
    line-height: 1.6;
    color: #4A5568;
}

.info-block a {
    color: #00197E;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 25, 126, 0.3);
    transition: all 0.2s ease;
}

.info-block a:hover {
    border-color: #00197E;
    color: #05A0E6;
}

/* ===== COLUMNA DERECHA: FORMULARIO ===== */
.contact-card {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 30px 70px -20px rgba(0, 25, 126, 0.15);
    box-sizing: border-box;
}

.contact-eyebrow {
    display: inline-block;
    margin: 0 0 30px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8F2D24 0%, #C94A3A 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(237, 106, 90, 0.2);
}

.contact-form {
    font-family: 'F37 Ginger', sans-serif;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #00197E;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-field label .req {
    color: #ED6A5A;
}

.form-field label .opt {
    color: #8b95b8;
    font-weight: normal;
    margin-left: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
    font-family: 'F37 Ginger', sans-serif;
    font-size: 16px;
    color: #00197E;
    background: #F5F7FB;
    border: 1.5px solid #DADCF2;
    padding: 12px 16px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease;
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.contact-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%2300197E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form input::placeholder {
    color: #8b95b8;
    font-weight: normal;
}

.contact-form select option[disabled] {
    color: #8b95b8;
}

.contact-form select:invalid {
    color: #8b95b8;
}

.contact-form input:focus,
.contact-form select:focus {
    border-color: #00197E;
    background: #ffffff;
}

/* intl-tel-input overrides para que calce con el resto del form */
.contact-form .iti {
    width: 100%;
    display: block;
}
.contact-form .iti__tel-input,
.contact-form .iti input[type="tel"] {
    width: 100%;
    padding-left: 92px !important;
}
.contact-form .iti__country-list {
    font-family: 'F37 Ginger', sans-serif;
    border-radius: 10px;
    border: 1.5px solid #DADCF2;
    box-shadow: 0 12px 32px -10px rgba(0, 25, 126, 0.25);
    z-index: 5;
}
.contact-form .iti--separate-dial-code .iti__selected-flag {
    background-color: transparent;
    border-radius: 10px 0 0 10px;
    padding: 0 12px;
}
.contact-form .iti__selected-dial-code {
    color: #00197E;
    font-weight: bold;
    font-size: 15px;
}

.contact-submit {
    display: inline-block;
    margin-top: 30px;
    padding: 18px 40px;
    background: #00197E;
    color: #ffffff;
    font-family: 'F37 Ginger', sans-serif;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%; /* Botón completo en móvil, auto en desktop vía media query */
}

.contact-submit:hover {
    background: #05A0E6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(5, 160, 230, 0.3);
}

/* Honeypot */
.hp-field {
    display: none;
}

/* ===== RESPONSIVE ===== */

@media only screen and (min-width: 769px) {
    .contact-submit {
        width: auto;
    }
}

@media only screen and (max-width: 1100px) {
    .logo-contact { margin: 30px 0 0 30px; }
    .contact-grid { gap: 40px; padding: 0 20px; }
    .contact-card { padding: 40px; }
    .contact-title { font-size: 36px; }
}

@media only screen and (max-width: 900px) {
	.logo-contact { width: 70px; margin: 20px 0 0 20px; }
    .contact-hero-wrap { padding: 120px 5% 60px; }
    .contact-grid { grid-template-columns: 1fr; max-width: 600px; }
    .contact-left { order: 2; text-align: center; }
    .contact-title { font-size: 24px; text-align: left;}
    .contact-intro { font-size: 16px; text-align: left;}
    .contact-info { text-align: left; }
    .contact-card { order: 1; }
}

@media only screen and (max-width: 480px) {
    .logo-contact { width: 60px; }
    .contact-card { padding: 30px 20px; }
    .contact-intro { font-size: 16px; text-align: left;}
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select { font-size: 15px; padding: 10px 14px; }
    .form-field label { font-size: 12px; }
    .contact-info { grid-template-columns: 1fr; }
}