/* ================================================================
   contacto.css — Página de Contacto | Defany Industrial
   ================================================================ */

/* ── Tipografía base ── */
.cnt-hero, .cnt-info, .cnt-ubicacion, .cnt-corp, .cnt-form, .cnt-cta {
    font-family: 'Poppins', sans-serif;
}

/* ── Contenedor centrado ── */
.cnt-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   HERO
   ================================================================ */
.cnt-hero {
    position: relative;
    width: 100%;
    height: 38vh;
    min-height: 220px;
    background: url('../img/iniciofondo.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cnt-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 4, 43, 0.88) 0%,
        rgba(2, 4, 43, 0.70) 60%,
        rgba(2, 4, 43, 0.55) 100%
    );
}

.cnt-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    padding: 0 20px;
}

.cnt-hero__sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: #D5EBF8;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.cnt-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 20px;
    line-height: 1.1;
}

.cnt-hero__line {
    width: 56px;
    height: 3px;
    background: #D5EBF8;
    margin: 0 auto;
    border-radius: 2px;
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.cnt-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.cnt-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   SECCIÓN 1 — INFO DE CONTACTO
   ================================================================ */
.cnt-info {
    background: #FFFFFF;
    padding: 72px 0;
}

.cnt-info__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cnt-info__card {
    background: #FFFFFF;
    border: 1px solid #E8EFF5;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(2, 4, 43, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cnt-info__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(2, 4, 43, 0.12);
}

.cnt-info__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #D5EBF8;
    color: #02042B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: background 0.2s;
}

.cnt-info__card:hover .cnt-info__icon {
    background: #02042B;
    color: #D5EBF8;
}

.cnt-info__icon--wa {
    background: #e8f8ef;
    color: #25D366;
}

.cnt-info__card:hover .cnt-info__icon--wa {
    background: #25D366;
    color: #FFFFFF;
}

.cnt-info__card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #02042B;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cnt-info__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.cnt-info__list li {
    margin-bottom: 8px;
}

.cnt-info__list li a,
.cnt-info__placeholder a {
    color: #5B5B5B;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.cnt-info__list li a:hover,
.cnt-info__placeholder a:hover {
    color: #02042B;
}

.cnt-info__placeholder {
    color: #5B5B5B;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 20px;
}

.cnt-info__wabtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25D366;
    color: #FFFFFF;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.cnt-info__wabtn:hover {
    background: #1ebe5d;
    transform: scale(1.04);
}

/* ================================================================
   SECCIONES 2 & 3 — UBICACIONES (MAPA + INFO)
   ================================================================ */
.cnt-ubicacion {
    padding: 80px 0;
}

.cnt-ubicacion--gray {
    background: #F4F6F8;
}

.cnt-ubicacion--white {
    background: #FFFFFF;
}

.cnt-ubicacion__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cnt-ubicacion--reverse .cnt-ubicacion__grid {
    direction: rtl;
}

.cnt-ubicacion--reverse .cnt-ubicacion__grid > * {
    direction: ltr;
}

.cnt-ubicacion__map iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(2, 4, 43, 0.10);
    display: block;
}

.cnt-ubicacion__tag {
    display: inline-block;
    background: #D5EBF8;
    color: #02042B;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.cnt-ubicacion__info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #02042B;
    margin: 0 0 16px;
    line-height: 1.2;
}

.cnt-ubicacion__desc {
    color: #5B5B5B;
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0 0 28px;
}

.cnt-ubicacion__addr {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #FFFFFF;
    border-left: 3px solid #D5EBF8;
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(2, 4, 43, 0.05);
}

.cnt-ubicacion--white .cnt-ubicacion__addr {
    background: #F4F6F8;
}

.cnt-ubicacion__addr i {
    color: #02042B;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.cnt-ubicacion__addr address {
    font-style: normal;
    color: #5B5B5B;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ================================================================
   SECCIÓN 4 — CORPORATIVO
   ================================================================ */
.cnt-corp {
    background: #F4F6F8;
    padding: 80px 0;
}

.cnt-corp__card {
    max-width: 600px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(2, 4, 43, 0.08);
    border: 1px solid #E8EFF5;
    transition: box-shadow 0.3s;
}

.cnt-corp__card:hover {
    box-shadow: 0 16px 60px rgba(2, 4, 43, 0.14);
}

.cnt-corp__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #02042B;
    color: #D5EBF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.cnt-corp__tag {
    display: inline-block;
    background: #D5EBF8;
    color: #02042B;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.cnt-corp__card h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #02042B;
    margin: 0 0 14px;
}

.cnt-corp__card p {
    color: #5B5B5B;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 28px;
}

.cnt-corp__addr {
    display: inline-flex;
    gap: 12px;
    align-items: flex-start;
    background: #F4F6F8;
    border-radius: 8px;
    padding: 16px 22px;
    text-align: left;
}

.cnt-corp__addr i {
    color: #02042B;
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.cnt-corp__addr address {
    font-style: normal;
    color: #5B5B5B;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ================================================================
   SECCIÓN 5 — FORMULARIO
   ================================================================ */
.cnt-form {
    background: #FFFFFF;
    padding: 80px 0;
}

.cnt-form__header {
    text-align: center;
    margin-bottom: 52px;
}

.cnt-form__header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #02042B;
    margin: 0 0 12px;
}

.cnt-form__header p {
    color: #5B5B5B;
    font-size: 0.97rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.cnt-form__form {
    max-width: 860px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E8EFF5;
    border-radius: 16px;
    padding: 52px 52px 44px;
    box-shadow: 0 8px 40px rgba(2, 4, 43, 0.07);
}

.cnt-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.cnt-form__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cnt-form__group--full {
    grid-column: 1 / -1;
}

.cnt-form__group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F1F1F;
    letter-spacing: 0.02em;
}

.cnt-form__group label span {
    color: #02042B;
}

.cnt-form__group input,
.cnt-form__group textarea {
    padding: 13px 16px;
    border: 1.5px solid #D5EBF8;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: #1F1F1F;
    background: #FAFBFD;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
}

.cnt-form__group input::placeholder,
.cnt-form__group textarea::placeholder {
    color: #AABAC8;
}

.cnt-form__group input:focus,
.cnt-form__group textarea:focus {
    border-color: #02042B;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(2, 4, 43, 0.07);
}

.cnt-form__submit {
    text-align: center;
    margin-top: 12px;
}

.cnt-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #02042B;
    color: #FFFFFF;
    border: none;
    padding: 15px 44px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(2, 4, 43, 0.20);
}

.cnt-form__btn:hover {
    background: #0d1660;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(2, 4, 43, 0.28);
}

/* ================================================================
   CTA FINAL
   ================================================================ */
.cnt-cta {
    background: #02042B;
    padding: 80px 24px;
    text-align: center;
}

.cnt-cta__content {
    max-width: 640px;
    margin: 0 auto;
}

.cnt-cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.cnt-cta p {
    color: #B0C8E0;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 36px;
}

.cnt-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #FFFFFF;
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.30);
}

.cnt-cta__btn i {
    font-size: 1.3rem;
}

.cnt-cta__btn:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.40);
}

/* ================================================================
   FOTO UBICACIÓN
   ================================================================ */
.cnt-ubicacion__media {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cnt-ubicacion__media iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(2, 4, 43, 0.10);
    display: block;
}

.cnt-ubicacion__photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(2, 4, 43, 0.10);
    line-height: 0;
}

.cnt-ubicacion__photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.50s ease;
}

.cnt-ubicacion__photo:hover img {
    transform: scale(1.05);
}

/* ================================================================
   MODAL ÉXITO
   ================================================================ */
.cnt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 4, 43, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.30s ease;
}

.cnt-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cnt-modal__box {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 56px 48px 48px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 32px 96px rgba(2, 4, 43, 0.26);
    transform: scale(0.90) translateY(24px);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.30s ease;
}

.cnt-modal.is-open .cnt-modal__box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cnt-modal__icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #1ebe5d;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cnt-modal__title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #02042B;
    margin: 0 0 14px;
    line-height: 1.2;
}

.cnt-modal__text {
    font-size: 0.95rem;
    line-height: 1.78;
    color: #5B5B5B;
    margin: 0 0 34px;
}

.cnt-modal__close {
    background: #02042B;
    color: #FFFFFF;
    border: none;
    padding: 13px 44px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(2, 4, 43, 0.20);
    transition: background 0.25s, color 0.25s, transform 0.20s;
}

.cnt-modal__close:hover {
    background: #D5EBF8;
    color: #02042B;
    transform: translateY(-1px);
}

/* Botón enviando */
.cnt-form__btn:disabled {
    opacity: 0.70;
    cursor: not-allowed;
    transform: none !important;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .cnt-info__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .cnt-ubicacion__grid {
        gap: 40px;
    }

    .cnt-form__form {
        padding: 40px 36px;
    }
}

/* Mobile-L */
@media (max-width: 768px) {
    .cnt-hero {
        height: 44vh;
    }

    .cnt-info {
        padding: 52px 0;
    }

    .cnt-info__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .cnt-info__card {
        padding: 32px 24px;
    }

    .cnt-ubicacion {
        padding: 56px 0;
    }

    .cnt-ubicacion__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cnt-ubicacion--reverse .cnt-ubicacion__grid {
        direction: ltr;
    }

    .cnt-ubicacion__map iframe,
    .cnt-ubicacion__media iframe {
        height: 240px;
    }

    .cnt-ubicacion__photo img {
        height: 160px;
    }

    .cnt-modal__box {
        padding: 40px 28px 36px;
    }

    .cnt-corp__card {
        padding: 40px 28px;
    }

    .cnt-form {
        padding: 56px 0;
    }

    .cnt-form__form {
        padding: 32px 20px;
    }

    .cnt-form__row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cnt-form__btn {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
    }

    .cnt-corp {
        padding: 56px 0;
    }

    .cnt-cta {
        padding: 60px 20px;
    }

    .cnt-cta__btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
}

/* Mobile-S */
@media (max-width: 480px) {
    .cnt-hero {
        height: 46vh;
    }

    .cnt-hero__title {
        font-size: 1.8rem;
    }

    .cnt-ubicacion__addr {
        flex-direction: column;
        gap: 8px;
    }

    .cnt-corp__addr {
        flex-direction: column;
        gap: 8px;
    }

    .cnt-info__card {
        padding: 28px 20px;
    }
}
