/* ============================================================
   PÁGINA DE CONTACTO — CAINCO El Alto
   assets/css/front/contacto.css
   ============================================================ */

:root {
    --navy:      #002B5B;
    --navy-mid:  #0a3d7a;
    --orange:    #FF6B00;
    --orange-lt: #ff8c33;
    --white:     #ffffff;
    --gray-bg:   #f0f3f8;
    --gray-card: #f7f9fc;
    --gray-text: #5a6475;
    --border:    rgba(0,43,91,.08);
    --success:   #1db954;
    --danger:    #e53935;
    --radius:    14px;
    --shadow:    0 4px 24px rgba(0,43,91,.09);
}

/* ── Reset base ── */
*, *::before, *::after { box-sizing: border-box; }

/* Honeypot anti-spam — NUNCA cambiar estas propiedades */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ══════════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-38px); }
}
@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40%                  { transform: translateX(-50%) translateY(-16px); }
    60%                  { transform: translateX(-50%) translateY(-7px); }
}
@keyframes pulse {
    0%,100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.18); opacity: .75; }
}

/* Reveal scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-l { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.rv-l.vis { opacity: 1; transform: translateX(0); }
.rv-r { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; }
.rv-r.vis { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero-contacto {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.45) 55%,
        rgba(0,0,0,.2) 100%);
    z-index: 1;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.hero-blob-1 {
    top: 15%; left: 5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,107,0,.2) 0%, transparent 70%);
    animation: float 11s ease-in-out infinite;
}
.hero-blob-2 {
    bottom: 20%; right: 8%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(40,167,69,.15) 0%, transparent 70%);
    animation: float 14s ease-in-out infinite reverse;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    width: 100%;
}
.hero-text-col {
    padding-left: 1rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,107,0,.95);
    padding: .65rem 1.75rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255,255,255,.38);
    box-shadow: 0 8px 28px rgba(255,107,0,.5);
    animation: fadeInUp .9s ease-out both;
}
.hero-badge span {
    color: #fff;
    font-weight: 800;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}
.hero-badge i {
    margin-right: .65rem;
    animation: pulse 2s ease-in-out infinite;
}
.hero-contacto h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.5vw, 3.7rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 22px rgba(0,0,0,1), 3px 3px 9px rgba(0,0,0,1);
    animation: fadeInUp .9s ease-out .12s both;
}
.hero-sub {
    color: #fff;
    font-size: 1.12rem;
    margin: 0 0 2rem;
    line-height: 1.78;
    text-shadow: 0 3px 12px rgba(0,0,0,1);
    animation: fadeInUp .9s ease-out .22s both;
}
.hero-line {
    width: 110px; height: 4px;
    background: linear-gradient(90deg, var(--orange), transparent);
    border-radius: 3px;
    box-shadow: 0 0 26px rgba(255,107,0,.75);
    animation: fadeInUp .9s ease-out .3s both;
}
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}
.scroll-indicator a {
    color: #fff; text-decoration: none;
    display: flex; flex-direction: column;
    align-items: center; gap: .5rem; opacity: .84;
}
.scroll-indicator span {
    font-size: .76rem; text-transform: uppercase;
    letter-spacing: 3px; font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0,0,0,1);
}

/* ══════════════════════════════════════════════
   PÁGINA WRAPPER
══════════════════════════════════════════════ */
.contacto-page {
    background: var(--gray-bg);
    padding-bottom: 5rem;
}

/* Flash */
.flash-outer { padding: 2.5rem 1.5rem 0; max-width: 860px; margin: 0 auto; }
.alert {
    display: flex; align-items: center; gap: .9rem;
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius);
    font-size: .96rem; border: none;
}
.alert i { font-size: 1.4rem; flex-shrink: 0; }
.alert-success { background: #d4edda; color: #155724; border-left: 5px solid var(--success); }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 5px solid var(--danger); }

/* ══════════════════════════════════════════════
   BLOQUES — layout zigzag
   Cada bloque: .cblock con .cblock-label + .cblock-card
   Alterno: .cblock-even invierte el lado del label
══════════════════════════════════════════════ */
.cblock { padding: 3.5rem 1.5rem 0; }
.cblock-inner {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0 2.5rem;
    align-items: start;
}
/* Par: label a la DERECHA, card a la izquierda */
.cblock-even .cblock-inner {
    grid-template-columns: 1fr 260px;
}
.cblock-even .cblock-label { order: 2; }
.cblock-even .cblock-card  { order: 1; }

/* ── Label (texto fuera del card) ── */
.cblock-label { padding-top: .5rem; }
.cblock-num {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--orange);
    opacity: .45;
    letter-spacing: -2px;
    display: block;
    margin-bottom: .5rem;
}
.cblock-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .6rem;
}
.cblock-desc {
    font-size: .88rem;
    color: var(--gray-text);
    line-height: 1.68;
    margin: 0;
}

/* Label sobre fondo navy (bloques 02 y 05) */
.cblock-navy .cblock-label { background: transparent; }
.cblock-navy .cblock-num   { color: var(--orange); }
.cblock-navy .cblock-title { color: #fff; }
.cblock-navy .cblock-desc  { color: rgba(255,255,255,.65); }
.cblock-navy { background: var(--navy); padding: 3.5rem 1.5rem 3.5rem; }

/* ── Card ── */
.cblock-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    min-width: 0;
}

/* ══════════════════════════════════════════════
   FORMULARIO
══════════════════════════════════════════════ */
.form-body { padding: 2rem 2.25rem; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}
.form-group { margin-bottom: 1.15rem; }
.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: #1a2540;
    margin-bottom: .4rem;
}
.form-label i { color: var(--orange); margin-right: .35rem; }
.req { color: var(--danger); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: .7rem 1rem;
    border: 2px solid #dde3ec;
    border-radius: 9px;
    font-size: .93rem;
    color: #1a2540;
    background: #fff;
    transition: border-color .22s, box-shadow .22s, transform .18s;
}
.form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,0,.11);
    transform: translateY(-1px);
}
.form-control.error  { border-color: var(--danger);  box-shadow: 0 0 0 3px rgba(229,57,53,.09); }
.form-control.valido { border-color: var(--success); box-shadow: 0 0 0 3px rgba(29,185,84,.09); }
textarea.form-control { resize: vertical; min-height: 95px; }

.field-error { display: none; font-size: .78rem; color: var(--danger); font-weight: 600; margin-top: 3px; }
.form-hint   { display: block; font-size: .77rem; color: var(--gray-text); margin-top: 3px; }

.btn-enviar {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .82rem 2.2rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-lt));
    color: #fff;
    font-size: .97rem;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255,107,0,.36);
    transition: all .3s;
    margin-top: .4rem;
}
.btn-enviar:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,107,0,.46); }
.btn-enviar:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════
   INFO GRID
══════════════════════════════════════════════ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid #edf0f5;
    border-right: 1px solid #edf0f5;
}
.info-item:nth-child(even)     { border-right: none; }
.info-item:nth-last-child(-n+2){ border-bottom: none; }
.info-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-icon i { color: #fff; font-size: .95rem; }
.info-text strong {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gray-text);
    margin-bottom: .25rem;
}
.info-text p,
.info-text a {
    margin: 0;
    font-size: .9rem;
    color: #1a2540;
    text-decoration: none;
    line-height: 1.5;
}
.info-text a:hover { color: var(--orange); }

/* ══════════════════════════════════════════════
   CONTACTO DIRECTO
══════════════════════════════════════════════ */
.direct-grid { display: grid; grid-template-columns: 1fr 1fr; }

.direct-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #edf0f5;
    transition: background .25s, transform .25s;
}
.direct-btn:last-child { border-right: none; }
.direct-btn:hover { transform: translateY(-2px); }
.direct-btn-wa:hover   { background: #f0fdf5; }
.direct-btn-mail:hover { background: #fff8f7; }

.direct-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: transform .28s;
}
.direct-btn:hover .direct-icon { transform: scale(1.12) rotate(-6deg); }
.direct-btn-wa   .direct-icon { background: #25D366; color: #fff; }
.direct-btn-mail .direct-icon { background: #EA4335; color: #fff; }

.direct-text { flex: 1; }
.direct-text strong { display: block; font-size: .95rem; font-weight: 700; color: #1a2540; margin-bottom: .15rem; }
.direct-text span   { font-size: .8rem; color: var(--gray-text); }

.direct-arrow { color: #ccc; font-size: .82rem; transition: transform .25s, color .25s; }
.direct-btn:hover .direct-arrow { transform: translateX(4px); color: var(--orange); }

/* ══════════════════════════════════════════════
   REDES SOCIALES
══════════════════════════════════════════════ */
.redes-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    padding: 2rem 1.75rem 2.25rem;
}
.red-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
    border-radius: 12px;
    min-width: 82px;
    flex: 0 0 auto;
    transition: background .25s, transform .3s;
}
.red-btn:hover { background: rgba(0,0,0,.04); transform: translateY(-5px); }
.red-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transition: box-shadow .28s, transform .28s;
}
.red-btn:hover .red-icon { box-shadow: 0 8px 20px rgba(0,0,0,.26); transform: scale(1.1); }
.red-btn span { font-size: .73rem; font-weight: 600; color: var(--gray-text); text-align: center; }

/* ══════════════════════════════════════════════
   MAPA
══════════════════════════════════════════════ */
.mapa-frame { height: 320px; display: block; }
.mapa-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .cblock-inner,
    .cblock-even .cblock-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem 0;
    }
    .cblock-even .cblock-label { order: 0; }
    .cblock-even .cblock-card  { order: 0; }
    .cblock-num { font-size: 2.4rem; }
    .form-row-2 { grid-template-columns: 1fr; }
    .info-grid  { grid-template-columns: 1fr; }
    .info-item  { border-right: none; }
    .info-item:nth-last-child(-n+2){ border-bottom: 1px solid #edf0f5; }
    .info-item:last-child { border-bottom: none; }
    .direct-grid { grid-template-columns: 1fr; }
    .direct-btn  { border-right: none; border-bottom: 1px solid #edf0f5; }
    .direct-btn:last-child { border-bottom: none; }
    .redes-body { justify-content: center; }
    .hero-contacto { min-height: 80vh; background-attachment: scroll; }
    .form-body { padding: 1.5rem; }
    .btn-enviar { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .cblock { padding: 2.5rem 1rem 0; }
    .hero-contacto h1 { letter-spacing: -1px; }
}