/* ============================================================================
   PÁGINA: Contacto
   ============================================================================ */

.container-contacto { width: 100%; }

/* ============ BANDA HERO (mismo formato que servicios / sitios) ============ */
.contacto-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    aspect-ratio: 16 / 7;
    max-height: 600px;
    background-image: url('../../imagen/contactanos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.contacto-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 25, 50, 0.85) 0%,
        rgba(8, 25, 50, 0.55) 50%,
        rgba(8, 25, 50, 0.15) 100%
    );
    z-index: 1;
}

.contacto-hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-white);
    margin-left: clamp(1rem, 6vw, 4rem);
}

.contacto-hero__content .eyebrow {
    color: var(--color-white);
    margin-bottom: 1rem;
}
.contacto-hero__content .eyebrow::before {
    background: var(--color-white);
}

.contacto-hero__content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 1rem;
    overflow: hidden;
}

.contacto-hero__content h1 .slide-left,
.contacto-hero__content h1 .slide-right {
    display: block;
    opacity: 0;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: forwards;
}
.contacto-hero__content h1 .slide-left {
    transform: translateX(-110%);
    animation-name: contacto-slide-left;
    animation-delay: 0.15s;
}
.contacto-hero__content h1 .slide-right {
    transform: translateX(110%);
    animation-name: contacto-slide-right;
    animation-delay: 0.55s;
}

@keyframes contacto-slide-left {
    0%   { transform: translateX(-110%); opacity: 0; }
    100% { transform: translateX(0);     opacity: 1; }
}
@keyframes contacto-slide-right {
    0%   { transform: translateX(110%); opacity: 0; }
    100% { transform: translateX(0);    opacity: 1; }
}

.contacto-hero__lead {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.6;
    opacity: 0;
    animation: contacto-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.6s;
}

@keyframes contacto-fade-up {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .contacto-hero__content h1 .slide-left,
    .contacto-hero__content h1 .slide-right,
    .contacto-hero__lead {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

@media (max-width: 800px) {
    .contacto-hero {
        aspect-ratio: auto;
        min-height: 320px;
    }
    .contacto-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 25, 50, 0.65) 0%,
            rgba(8, 25, 50, 0.85) 100%
        );
    }
    .contacto-hero__content {
        margin-left: 0;
        text-align: center;
    }
    .contacto-hero__content .eyebrow {
        justify-content: center;
    }
}

/* ============ FOTO DEL EQUIPO (rectangular en lugar de circular) ============ */
.contact-photo--team {
    width: 100% !important;
    max-width: 420px;
    height: auto !important;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    border: 4px solid var(--color-primary);
    overflow: hidden;
    position: relative;
    background: var(--color-bg-soft);
}

.contact-photo--team img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder mientras no exista la imagen */
.contact-photo__placeholder {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--color-text-soft);
    text-align: center;
    padding: 1rem;
}
.contact-photo__placeholder i {
    font-size: 2.5rem;
    color: var(--color-primary);
    opacity: 0.6;
}
.contact-photo__placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}
.contact-photo--placeholder .contact-photo__placeholder {
    display: flex;
}

/* ============ ENLACE DE DIRECCIÓN (Google Maps) ============ */
.contact-link--map {
    color: var(--color-text);
    align-items: flex-start;
    line-height: 1.45;
}
.contact-link--map i {
    color: var(--color-primary);
    margin-top: 3px;
}
.contact-link--map:hover {
    color: var(--color-primary);
}
.contact-link--map:hover i {
    transform: scale(1.1);
}
.contact-link--map i {
    transition: transform 0.3s ease;
}

/* ============ FEEDBACK DEL FORMULARIO ============ */
.form-feedback {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    display: none;
}
.form-feedback--ok,
.form-feedback--error {
    display: block;
    animation: feedback-pop 0.4s ease;
}
.form-feedback--ok {
    background: rgba(24, 192, 32, 0.12);
    color: #0e7a16;
    border: 1px solid rgba(24, 192, 32, 0.4);
}
.form-feedback--error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.35);
}
@keyframes feedback-pop {
    0%   { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Resaltado de campos faltantes (validación servidor) */
.form-container .input-error {
    border-color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.form-container .input-error:focus {
    outline: none;
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}


