/* CONTACTO CANVORA */

#contacto.cv-contact {
    padding: 28px 0;
    background: #fff;
}

#contacto,
#contacto * {
    box-sizing: border-box;
}

#contacto .cv-contact-container {
    width: calc(100% - 40px);
    max-width: 1240px;
    margin-inline: auto;
    padding: 0;
}

/* Fondo */
#contacto .cv-contact-scene {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    padding: 32px;

    /* Cambia este nombre por el de tu foto real */
    background-image: url("../images/contacto-canvora.png");
    background-color: #061737;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(6, 23, 55, .12);
}

/* Contenedor del efecto 3D */
#contacto .cv-contact-stage {
    position: relative;
    width: 460px;
    max-width: 100%;
    perspective: 1100px;
}

/* Tarjeta */
#contacto #contacto-card {
    --giro-x: 0deg;
    --giro-y: 0deg;

    position: relative;
    width: 100%;
    min-height: 0;
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #f5f8ff);
    color: #061737;
    box-shadow: 0 18px 40px rgba(6, 23, 55, .22);

    transform: rotateX(var(--giro-x)) rotateY(var(--giro-y));
    transform-style: preserve-3d;
    transition: transform .18s ease-out, box-shadow .2s ease;
}

#contacto .cv-contact-stage.is-active #contacto-card {
    box-shadow: 0 26px 48px rgba(6, 23, 55, .3);
}

/* Etiqueta */
#contacto .cv-contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

#contacto .cv-contact-line {
    width: 34px;
    height: 2px;
    flex: 0 0 34px;
    background: #1d4ed8;
}

/* Título */
#contacto #cv-contact-title {
    margin: 0 0 18px;
    color: #061737;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
}

/* Descripción */
#contacto .cv-contact-description {
    margin: 0 0 24px;
    color: #647899;
    font-size: 16px;
    line-height: 1.6;
}

/* Botón */
#contacto .cv-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 14px 16px;

    border-radius: 13px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 10px 22px rgba(29, 78, 216, .22);
    transition: background .2s ease;
}

#contacto .cv-contact-button:hover {
    background: #163eaf;
    color: #fff;
}

#contacto .cv-contact-button span {
    flex: 0 1 auto;
    min-width: 0;
}

/* Tamaño fijo de los iconos */
#contacto .cv-contact-button svg {
    display: block;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px !important;
    margin: 0;
}

/* Teléfono */
#contacto .cv-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #647899;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

#contacto .cv-contact-phone svg {
    display: block;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;
    min-height: 19px !important;
    max-height: 19px !important;
    flex: 0 0 19px !important;
}

#contacto .cv-contact-phone:hover {
    color: #1d4ed8;
}

#contacto .cv-contact-button:focus-visible,
#contacto .cv-contact-phone:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 5px;
}

/* Tablet */
@media (max-width: 991px) {
    #contacto .cv-contact-scene {
        padding: 28px;
        background-position: 65% center;
    }

    #contacto .cv-contact-stage {
        width: 420px;
    }

    #contacto #contacto-card {
        padding: 28px;
    }
}

/* Celular */
@media (max-width: 575px) {
    #contacto.cv-contact {
        padding: 24px 0;
    }

    #contacto .cv-contact-container {
        width: calc(100% - 28px);
    }

    #contacto .cv-contact-scene {
        align-items: flex-end;
        min-height: 460px;
        padding: 18px;
        border-radius: 22px;
        background-position: 70% center;
    }

    #contacto .cv-contact-stage {
        width: 100%;
    }

    #contacto #contacto-card {
        padding: 24px;
        border-radius: 18px;
    }

    #contacto .cv-contact-eyebrow {
        gap: 8px;
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    #contacto .cv-contact-line {
        width: 24px;
        flex-basis: 24px;
    }

    #contacto #cv-contact-title {
        font-size: 32px;
    }

    #contacto .cv-contact-description {
        font-size: 15px;
    }

    #contacto .cv-contact-button {
        gap: 8px;
        padding-inline: 12px;
        font-size: 14px;
    }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    #contacto #contacto-card {
        transform: none;
        transition: none;
    }

    #contacto .cv-contact-button {
        transition: none;
    }
}