* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url("assets/fondo.jpg");

    display: flex;
    justify-content: center;
    align-items: flex-start;

    min-height: 100vh;
}

.device {
    width: min(100%, 583px);
    min-height: 100vh;
    padding: 8px 11px 0;
}

.site {
    position: relative;

    width: 531px;
    height: 807px;
    max-width: 100%;

    overflow: hidden;
}

.visual {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: left top;

    z-index: 0;

    user-select: none;
    pointer-events: none;
}

.header {
    position: absolute;

    z-index: 2;

    top: 0;
    left: 0;
    right: 0;

    height: 81px;
}

.logo-link {
    position: absolute;

    left: 25px;
    top: 18px;

    width: 42px;
    height: 46px;

    display: block;
}

.menu-button {
    position: absolute;

    top: 27px;
    right: 31px;

    width: 27px;
    height: 25px;

    border: 0;
    background: transparent;

    padding: 4px 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 19px;
    height: 2px;

    margin-left: auto;

    background: #263c50;

    border-radius: 2px;
}

.hero {
    position: absolute;

    z-index: 1;

    left: 0;
    right: 0;
    top: 81px;
    bottom: 0;
}

.copy {
    position: absolute;

    left: 25px;
    top: 250px;

    color: #28465f;
}

.eyebrow {
    margin: 0 0 33px;

    font-size: 15px;
    line-height: 1;

    letter-spacing: 6px;
}

h1 {
    margin: 0 0 28px;

    font-family: Georgia, "Times New Roman", serif;

    font-weight: 400;

    font-size: 48px;
    line-height: .99;

    letter-spacing: -2px;
}

h1 em {
    color: #4d7192;

    font-weight: 600;
    font-style: italic;
}

.description {
    margin: 0;

    font-size: 21px;
    line-height: 1.54;

    letter-spacing: .05px;
}

.actions {
    display: flex;

    gap: 20px;

    margin-top: 47px;
}

.action {
    height: 62px;

    border-radius: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 17px;

    position: relative;
}

.primary {
    width: 246px;

    background: #2d4561;
    color: white;
}

.primary span {
    font-size: 27px;

    margin-left: 15px;

    line-height: 0;
}

.secondary {
    width: 208px;

    background: rgba(255, 255, 255, .88);

    color: #445a70;

    border: 1px solid rgba(65, 84, 104, .28);
}

.mobile-menu {
    position: absolute;

    z-index: 5;

    top: 81px;
    right: 0;

    width: 230px;

    padding: 18px 24px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    background: rgba(224, 239, 253, .97);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);

    transform: translateX(110%);

    transition: transform .25s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    color: #29445d;

    text-decoration: none;

    font-weight: 600;
}


/* =========================================
   SERVICIOS
   ========================================= */

.servicios-mobile {
    display: block;
}


/* =========================================
   FORMULARIO
   ========================================= */

.formulario-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    background: rgba(35, 55, 75, .55);

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.formulario-overlay.activo {
    display: flex;
}

.formulario-box {
    position: relative;

    width: 100%;
    max-width: 400px;

    max-height: 90vh;

    overflow-y: auto;

    background: #eef4f9;

    padding: 32px 25px;

    border-radius: 3px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .25);
}

.formulario-cerrar {
    position: absolute;

    top: 12px;
    right: 15px;

    border: 0;

    background: transparent;

    font-size: 32px;

    font-weight: 300;

    color: #28465f;

    cursor: pointer;
}

.formulario-eyebrow {
    margin: 0 0 12px;

    color: #4d7192;

    font-size: 11px;

    letter-spacing: 4px;
}

.formulario-box h2 {
    margin: 0 0 12px;

    color: #28465f;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 36px;

    font-weight: 400;
}

.formulario-texto {
    margin: 0 0 25px;

    color: #597087;

    font-size: 15px;

    line-height: 1.5;
}

.campo {
    margin-bottom: 16px;
}

.campo label {
    display: block;

    margin-bottom: 7px;

    color: #28465f;

    font-size: 12px;

    font-weight: 600;
}

.campo input,
.campo textarea {
    width: 100%;

    border: 1px solid #ccd8e2;

    background: rgba(255, 255, 255, .8);

    padding: 13px 14px;

    border-radius: 4px;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;

    color: #28465f;
}

.campo textarea {
    resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
    border-color: #6e9cc1;
}

.formulario-enviar {
    width: 100%;

    height: 52px;

    border: 0;

    border-radius: 28px;

    background: #2d4561;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================
   RESPONSIVE
   Funciona en celulares pequeños,
   celulares grandes y tablets
   ========================================= */

@media (max-width: 900px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        display: block;
    }

    .device {
        width: 100%;
        max-width: 100%;

        padding: 0;

        min-height: 100vh;
    }

    .site {
        width: 100%;
        max-width: 100%;

        height: auto;

        /*
         * Mantiene exactamente la proporción
         * original de 531 x 807.
         */
        aspect-ratio: 531 / 807;

        min-height: 0;
    }

    .visual {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* =========================================
       HEADER
       ========================================= */

    .logo-link {
        left: 6.1%;
        top: 2.2%;

        width: 7.9%;
        height: 5.7%;
    }

    .menu-button {
        top: 3.35%;
        right: 6.1%;

        width: 7%;
        height: 3.1%;

        padding: .5% 0;
    }

    .menu-button span {
        width: 70%;
        height: 2px;
    }


    /* =========================================
       HERO
       ========================================= */

    .hero {
        top: 10.1%;
    }

    .copy {
        left: 6.1%;
        top: 31%;
    }

    .eyebrow {
        font-size: clamp(11px, 2.6vw, 15px);

        letter-spacing: clamp(3px, .9vw, 6px);

        margin-bottom: clamp(20px, 5vw, 33px);
    }

    h1 {
        font-size: clamp(36px, 10vw, 48px);

        line-height: .99;

        letter-spacing: -2px;

        margin-bottom: clamp(20px, 5vw, 28px);
    }

    .description {
        font-size: clamp(16px, 4vw, 21px);

        line-height: 1.54;
    }

    .actions {
        gap: clamp(8px, 4vw, 20px);

        margin-top: clamp(25px, 7vw, 47px);

        flex-wrap: nowrap;
    }

    .action {
        height: clamp(50px, 12vw, 62px);

        font-size: clamp(14px, 3.4vw, 17px);
    }

    .primary {
        width: 46vw;
        max-width: 246px;
    }

    .secondary {
        width: 39vw;
        max-width: 208px;
    }

    .primary span {
        font-size: clamp(21px, 6vw, 27px);

        margin-left: clamp(8px, 3vw, 15px);
    }


    /* =========================================
       MENU MOBILE
       ========================================= */

    .mobile-menu {
        top: 10.1%;

        width: min(230px, 70vw);

        max-height: calc(100vh - 10.1%);

        overflow-y: auto;
    }


    /* =========================================
       SERVICIOS
       ========================================= */

    .servicios-mobile {
        display: block;

        width: 100%;

        padding:
            clamp(40px, 12vw, 65px)
            6.1%
            clamp(45px, 13vw, 70px);

        background: #eef4f9;

        color: #28465f;
    }


    /* =========================================
       ENCABEZADO SERVICIOS
       ========================================= */

    .servicios-header {
        padding-bottom: 30px;

        border-bottom: 1px solid #ccd7e1;
    }

    .servicios-numero {
        margin: 0 0 20px;

        color: #4d7192;

        font-size: clamp(10px, 2.6vw, 12px);

        letter-spacing: clamp(3px, 1vw, 4px);
    }

    .servicios-header h2 {
        margin: 0 0 25px;

        font-family: Georgia, "Times New Roman", serif;

        font-size: clamp(30px, 8vw, 40px);

        line-height: 1.05;

        font-weight: 400;

        letter-spacing: -1px;
    }

    .servicios-header h2 em {
        color: #4d7192;

        font-style: italic;

        font-weight: 600;
    }

    .servicios-intro {
        margin: 0;

        color: #597087;

        font-size: clamp(14px, 3.8vw, 17px);

        line-height: 1.55;
    }


    /* =========================================
       SERVICIO
       ========================================= */

    .servicio-mobile {
        position: relative;

        display: flex;

        gap: clamp(12px, 4vw, 18px);

        padding: clamp(25px, 8vw, 35px) 0;

        border-bottom: 1px solid #ccd7e1;
    }

    .servicio-numero {
        flex-shrink: 0;

        width: clamp(40px, 12vw, 50px);

        padding-top: 3px;

        color: #7bb2d8;

        font-family: Georgia, "Times New Roman", serif;

        font-size: clamp(36px, 10vw, 43px);

        line-height: 1;
    }

    .servicio-info {
        position: relative;

        flex: 1;

        min-width: 0;

        padding-right: 45px;
    }

    .servicio-info h3 {
        margin: 0 0 7px;

        font-family: Georgia, "Times New Roman", serif;

        font-size: clamp(24px, 7vw, 30px);

        line-height: 1;

        font-weight: 400;

        color: #28465f;
    }

    .servicio-info span {
        display: block;

        margin-bottom: 18px;

        color: #60788d;

        font-size: clamp(8px, 2vw, 10px);

        letter-spacing: 2px;

        /*
         * Antes estaba en nowrap.
         * Eso podía generar overflow en
         * celulares con tamaños diferentes.
         */
        white-space: normal;
    }

    .servicio-info p {
        margin: 0;

        color: #597087;

        font-size: clamp(13px, 3.6vw, 16px);

        line-height: 1.55;
    }

    .servicio-btn {
        position: absolute;

        top: 0;
        right: 0;

        width: 34px;
        height: 34px;

        border: 1px solid #cbd7e1;

        border-radius: 50%;

        background: transparent;

        color: #28465f;

        font-size: 16px;

        display: flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;
    }

    .servicio-btn:active {
        transform: scale(.94);
    }
}


/* =========================================
   CELULARES MUY PEQUEÑOS
   ========================================= */

@media (max-width: 360px) {

    .copy {
        top: 29%;
    }

    .eyebrow {
        letter-spacing: 3px;
    }

    h1 {
        font-size: 35px;
    }

    .description {
        font-size: 15px;
    }

    .actions {
        gap: 8px;
    }

    .action {
        font-size: 13px;
    }

    .primary {
        width: 47vw;
    }

    .secondary {
        width: 38vw;
    }
}


/* =========================================
   PANTALLAS MUY ALTAS / CELULARES GRANDES
   ========================================= */

@media (min-width: 600px) and (max-width: 900px) {

    .device {
        max-width: 650px;
    }

    .site {
        width: 100%;
    }

    .copy {
        left: 6.1%;
        top: 31%;
    }

    .servicios-mobile {
        padding-left: 7%;
        padding-right: 7%;
    }
}


/* =========================================
   FORMULARIO EN PANTALLAS PEQUEÑAS
   ========================================= */

@media (max-width: 430px) {

    .formulario-overlay {
        padding: 12px;
    }

    .formulario-box {
        max-height: 94vh;

        padding:
            30px 20px
            25px;
    }

    .formulario-box h2 {
        font-size: 32px;
    }
}


/* =========================================
   EVITAR DESBORDAMIENTOS
   ========================================= */

img,
svg,
video {
    max-width: 100%;
}

button,
input,
textarea {
    max-width: 100%;
}
