/* ─── VARIABLES ─── */
:root {
    --azul:      #1a3a5c;
    --azul-deep: #0d1f3c;
    --oro:       #d4a017;
    --rojo:      #c0392b;
    --gris-claro:#f5f2ee;
    --gris-medio:#8a8278;
    --crema:     #faf8f4;
}

/* ─── ANIMACIONES ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-5px); }
    40%,80% { transform: translateX(5px); }
}

.reveal { opacity: 0; }
.reveal.visible { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ─── HERO ─── */
.contact-hero {
    background: var(--azul-deep);
    min-height: 420px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    padding: 0 max(24px, calc((100vw - 1320px) / 2));
}
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg, transparent, transparent 40px,
        rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px
    );
}
.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--oro) 0%, var(--rojo) 50%, var(--oro) 100%);
}
.hero-left {
    padding: 80px 60px 80px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: slideRight 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--oro);
    margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--oro);
    flex-shrink: 0;
}
.hero-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.4rem;
}
.hero-left h1 em { font-style: italic; color: var(--oro); }
.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,.58);
    line-height: 1.8;
    max-width: 400px;
}
.hero-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-ornament {
    position: relative;
    width: 280px;
    height: 280px;
    animation: fadeIn 1.2s ease 0.5s both;
}
.hero-ornament .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212,160,23,.15);
}
.hero-ornament .ring-1 {
    inset: 0;
    animation: spinSlow 40s linear infinite;
    border-top-color: rgba(212,160,23,.5);
    border-width: 2px;
}
.hero-ornament .ring-2 {
    inset: 30px;
    animation: spinSlow 28s linear infinite reverse;
    border-right-color: rgba(212,160,23,.35);
}
.hero-ornament .ring-3 {
    inset: 60px;
    animation: spinSlow 20s linear infinite;
    border-bottom-color: rgba(192,57,43,.4);
}
.hero-ornament .center-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-ornament .center-mark i { font-size: 3.5rem; color: var(--oro); opacity: .7; }

@media (max-width: 768px) {
    .contact-hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 60px 24px 40px; }
    .hero-right { display: none; }
}

/* ─── TIRA DE INFO ─── */
.info-strip { background: var(--azul); padding: 0; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid rgba(255,255,255,.08);
}
.info-item {
    padding: 40px 36px;
    border-right: 1px solid rgba(255,255,255,.08);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: background .3s;
    cursor: default;
}
.info-item:hover { background: rgba(255,255,255,.04); }
.info-icon {
    width: 46px; height: 46px;
    background: rgba(212,160,23,.12);
    border: 1px solid rgba(212,160,23,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .3s;
}
.info-item:hover .info-icon { background: var(--oro); border-color: var(--oro); }
.info-icon i { color: var(--oro); font-size: 1.1rem; transition: color .3s; }
.info-item:hover .info-icon i { color: var(--azul-deep); }
.info-label {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--oro);
    margin-bottom: .35rem;
}
.info-value { font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.55; }
.info-value a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s; }
.info-value a:hover { color: var(--oro); }

@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .info-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 28px 24px; }
}

/* ─── SECCIÓN CENTRAL ─── */
.contact-main { padding: 0 0 100px; background: var(--crema); }
.central-section { padding: 90px 0 0; }
.section-kicker {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--oro);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
}
.section-kicker::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212,160,23,.4), transparent);
}
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--azul-deep);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-heading em { font-style: italic; color: var(--azul); }
.section-sub { font-size: .95rem; color: var(--gris-medio); line-height: 1.8; max-width: 480px; }
.mono { font-family: 'DM Mono', monospace; font-size: .7rem; color: var(--gris-medio); letter-spacing: .08em; }

/* ─── FORMULARIO ─── */
.form-wrap {
    background: #fff;
    border: 1px solid #e8e4dd;
    padding: 52px 48px;
    position: relative;
    box-shadow: 0 24px 80px rgba(26,58,92,.07);
}
.form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--oro), var(--rojo), var(--oro));
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group.full { grid-column: 1/-1; }
.form-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--azul);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.form-label .req { color: var(--rojo); font-size: .8rem; line-height: 1; }
.form-label .opt { font-size: .6rem; font-weight: 400; color: var(--gris-medio); text-transform: none; letter-spacing: 0; font-style: italic; }
.form-control-cp {
    width: 100%;
    background: #faf8f4;
    border: 1.5px solid #ddd9d2;
    padding: .8rem 1rem;
    font-size: .9rem;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--azul-deep);
    outline: none;
    border-radius: 0;
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
}
.form-control-cp:focus { border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgba(26,58,92,.08); }
.form-control-cp::placeholder { color: #b5b0a8; }
textarea.form-control-cp { resize: vertical; min-height: 140px; }
.form-control-cp.error { border-color: var(--rojo) !important; background: #fff8f8; box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.field-error { font-size: .7rem; color: var(--rojo); font-weight: 600; display: none; align-items: center; gap: .3rem; margin-top: 2px; }
.field-error.show { display: flex; }
.select-wrap { position: relative; }
.select-wrap::after {
    content: "\F282";
    font-family: 'Bootstrap Icons';
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--azul);
    font-size: .8rem;
    pointer-events: none;
}
.phone-wrap { display: flex; }
.phone-prefix {
    background: #f0ede8;
    border: 1.5px solid #ddd9d2;
    border-right: none;
    padding: .8rem .75rem;
    font-size: .88rem;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--azul-deep);
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 100px;
    appearance: none;
    transition: border-color .2s;
}
.phone-prefix:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(26,58,92,.08); }
.phone-number { flex: 1; border-radius: 0; }
.phone-wrap.error .phone-prefix,
.phone-wrap.error .phone-number { border-color: var(--rojo) !important; background: #fff8f8; }
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    background: var(--azul);
    color: #fff;
    border: none;
    padding: 1rem 2.4rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.btn-submit:hover::before { transform: translateX(100%); }
.btn-submit:hover { background: var(--azul-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,58,92,.28); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-submit i { font-size: 1rem; transition: transform .25s; }
.btn-submit:hover:not(:disabled) i { transform: translateX(4px); }
.form-notice {
    display: none;
    padding: 1.2rem 1.5rem;
    margin-top: 1.4rem;
    font-size: .88rem;
    font-weight: 600;
    align-items: center;
    gap: .8rem;
}
.form-notice.show { display: flex; }
.form-notice.success { background: #f0fff4; border: 1.5px solid #68d391; color: #276749; }
.form-notice.error-msg { background: #fff5f5; border: 1.5px solid #fc8181; color: #c53030; }
.form-notice i { font-size: 1.4rem; flex-shrink: 0; }
.form-legend { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--gris-medio); font-family: 'DM Mono', monospace; }
.form-legend .dot { color: var(--rojo); font-size: 1rem; line-height: 1; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-wrap { padding: 36px 24px; }
}

/* ─── MAPA ─── */
.map-section { margin-top: 80px; }
.map-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.map-frame { position: relative; background: var(--azul); border: 1px solid #ddd9d2; overflow: hidden; }
.map-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--oro), var(--rojo), var(--oro));
    z-index: 5;
}
.map-frame iframe { width: 100%; height: 420px; border: none; display: block; filter: grayscale(20%) contrast(1.05); transition: filter .4s; }
.map-frame:hover iframe { filter: grayscale(0%) contrast(1); }
.map-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--azul-deep);
    color: #fff;
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    z-index: 4;
    border-left: 3px solid var(--oro);
}
.map-badge i { color: var(--oro); }
.map-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--azul);
    text-decoration: none;
    border-bottom: 1.5px solid var(--azul);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}
.map-link:hover { color: var(--oro); border-color: var(--oro); }

/* ─── REDES ─── */
.social-section {
    margin-top: 80px;
    padding: 60px 0;
    background: var(--azul-deep);
    position: relative;
    overflow: hidden;
}
.social-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,.012) 40px, rgba(255,255,255,.012) 41px);
}
.social-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--oro), var(--rojo), var(--oro));
}
.social-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.social-text h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.social-text p { font-size: .88rem; color: rgba(255,255,255,.5); }
.social-links { display: flex; gap: .75rem; }
.social-link {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.social-link::before { content: ''; position: absolute; inset: 0; background: var(--oro); transform: translateY(100%); transition: transform .25s cubic-bezier(0.22,1,0.36,1); }
.social-link i { position: relative; z-index: 1; transition: color .25s; }
.social-link:hover::before { transform: translateY(0); }
.social-link:hover { border-color: var(--oro); }
.social-link:hover i { color: var(--azul-deep); }

/* ─── PIE ─── */
.contact-footer-note {
    margin-top: 60px;
    border-top: 1px solid #ddd9d2;
    padding-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.contact-footer-note p { font-size: .78rem; color: var(--gris-medio); }
.org-links { display: flex; gap: 1.5rem; align-items: center; }
.org-links img { height: 32px; opacity: .6; filter: grayscale(100%); transition: opacity .2s, filter .2s; }
.org-links img:hover { opacity: 1; filter: grayscale(0%); }
.org-nav-link { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--azul); font-size: .82rem; font-weight: 600; transition: color .2s; }
.org-nav-link:hover { color: var(--oro); }