*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gris-borde:    #e0e3e8;
    --gris-fondo:    #f5f6f8;
    --texto-muted:   #6b7280;
    --texto-cuerpo:  #374151;
    --verde-dim:     rgba(45, 90, 39, 0.09);
    --verde-hover:   rgba(45, 90, 39, 0.15);
    --shadow-card:   0 2px 20px rgba(0,0,0,0.06);
}

body {
    background: var(--blanco);
    color: var(--texto-principal);
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
}
/* ─── HERO BANNER ─── */
.hero-banner {
    /*margin-top: 103px;altura del header de inicio.css */
    position: relative;
    height: 350px;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.72) 100%),
        url('../img/contacto.jpg') center/cover no-repeat;
    background-color: var(--negro);
    display: flex;
    align-items: flex-end;
    padding: 0 5% 2.8rem;
    overflow: hidden;
}
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--amarillo) 40%, var(--amarillo-hover) 60%, transparent 100%);
}
.hero-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}
.hero-label {
    font-family: var(--fuente-cuerpo);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amarillo);
    margin-bottom: 0.5rem;
    display: block;
}
.hero-title {
    font-family: var(--fuente-titulo);
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--blanco);
}
.hero-title span { color: var(--amarillo); }

/* ─── MAIN LAYOUT ─── */
.main-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 5% 5rem;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ─── INFO PANEL (izquierda) ─── */
.info-panel {
    position: sticky;
    top: 110px;
}
.info-panel-title {
    font-family: var(--fuente-titulo);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--negro);
    margin-bottom: 0.3rem;
}
.info-panel-sub {
    font-size: 0.85rem;
    color: var(--texto-muted);
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--plomo);
    padding-bottom: 1.4rem;
    line-height: 1.65;
}

/* Botones de contacto protegidos */
.contacto-btns {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.8rem;
}
.contacto-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio);
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--plomo);
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.contacto-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--amarillo);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s;
}
.contacto-btn:hover {
    background: #fffdf0;
    border-color: var(--amarillo-hover);
    transform: translateX(3px);
    box-shadow: 0 3px 12px rgba(242,183,5,0.15);
}
.contacto-btn:hover::before { transform: scaleY(1); }
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(242,183,5,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--verde);
}
.btn-content { flex: 1; }
.btn-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--verde);
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.btn-action {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--plomo);
}
.btn-arrow {
    color: #c5cad4;
    transition: color 0.2s;
    flex-shrink: 0;
}
.contacto-btn:hover .btn-arrow { color: var(--amarillo); }

/* ─── FORM PANEL (derecha) ─── */
.form-panel {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}
.form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--plomo);
}
.form-header h2 {
    font-family: var(--fuente-titulo);
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--negro);
    margin-bottom: 0.4rem;
}
.form-header h2 span { color: var(--verde); }
.form-header p {
    font-size: 0.88rem;
    color: var(--texto-muted);
    line-height: 1.7;
}
 
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
/* Labels — sobrescribimos el genérico de inicio.css si existiese */
.form-panel label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--texto-cuerpo);
}
.required { color: var(--verde); margin-left: 2px; }

/* Inputs */
.form-panel input,
.form-panel select,
.form-panel textarea {
    background: var(--gris-fondo);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio);
    padding: 0.75rem 1rem;
    color: var(--plomo);
    font-family: var(--fuente-cuerpo);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
}
.form-panel input::placeholder,
.form-panel textarea::placeholder { color: #b8bfc8; }
 
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
    background: var(--blanco);
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(45,90,39,0.1);
}
.form-panel select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-panel textarea { resize: vertical; min-height: 120px; }

/* Submit */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.submit-note {
    font-size: 0.77rem;
    color: var(--texto-muted);
    max-width: 280px;
    line-height: 1.5;
}
.btn-enviar {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--amarillo);
    color: #000;
    border: none;
    border-radius: var(--radio);
    padding: 0.85rem 2rem;
    font-family: var(--fuente-cuerpo);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-enviar:hover {
    background: var(--amarillo-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242,183,5,0.35);
}
.btn-enviar:active { transform: translateY(0); }

/* ─── SUCCESS ─── */
.success-msg {
    display: none;
    text-align: center;
    padding: 3.5rem 2rem;
}
.success-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--verde-dim);
    border: 2px solid var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--verde);
}
.success-msg h3 {
    font-family: var(--fuente-titulo);
    font-size: 2rem;
    letter-spacing: 0.08em;
    color: var(--negro);
    margin-bottom: 0.5rem;
}
.success-msg p {
    color: var(--texto-muted);
    font-size: 0.9rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .info-panel   { position: static; }
}
@media (max-width: 560px) {
    .form-row    { grid-template-columns: 1fr; }
    .form-panel  { padding: 1.5rem; }
    .hero-banner { height: 240px; }
    .form-submit { flex-direction: column; align-items: stretch; }
    .btn-enviar  { justify-content: center; }
}