/* ========================================================= */
/* FUENTES                                                   */
/* ========================================================= */

@font-face {
    font-family: "Helvetica Neue 73 Bold Extended";
    src: url("../multimedia/fuentes/HelveticaNeue-BoldExt.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gotham";
    src: url("../multimedia/fuentes/Gotham-Light.woff2")
        format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}


/* ========================================================= */
/* VARIABLES                                                 */
/* ========================================================= */

:root {

    --color-acento: #d0224d;

    --color-negro: #050505;
    --color-blanco: #ffffff;

    --color-texto: #121212;
    --color-texto-secundario: #292929;

    --fuente-titulo:
        "Helvetica Neue 73",
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    --fuente-texto:
        "Gotham",
        "Helvetica Neue",
        Arial,
        sans-serif;

    --ancho-maximo: 1600px;

    --margen-horizontal:
        clamp(22px, 7.5vw, 150px);

    --alto-pie:
        clamp(110px, 16vh, 150px);

    --radio-boton:
        10px;

    --transicion-rapida:
        180ms cubic-bezier(0.2, 0.8, 0.2, 1);

    --transicion-media:
        500ms cubic-bezier(0.16, 1, 0.3, 1);

    --transicion-frase:
        720ms cubic-bezier(0.16, 1, 0.3, 1);

}


/* ========================================================= */
/* REINICIO                                                  */
/* ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


body {
    width: 100%;
    min-height: 100%;

    margin: 0;

    overflow-x: hidden;

    background: var(--color-negro);

    color: var(--color-texto);

    font-family: var(--fuente-texto);

    font-weight: 300;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


img,
video,
svg {
    display: block;
    max-width: 100%;
}


button,
input {
    font: inherit;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


/* ========================================================= */
/* SELECCIÓN                                                 */
/* ========================================================= */

::selection {
    background: var(--color-acento);
    color: var(--color-blanco);
}


/* ========================================================= */
/* CONTENIDO PRINCIPAL                                       */
/* ========================================================= */

#contenido-principal {
    width: 100%;
}


/* ========================================================= */
/* SECCIÓN INICIO                                            */
/* ========================================================= */

.seccion-inicio {
    position: relative;
    display: flex;
    width: 100%;
    min-height:
        calc(100svh - var(--alto-pie));
    overflow: hidden;
    isolation: isolate;
    background: #eeeeee;
}


/* ========================================================= */
/* VIDEO                                                     */
/* ========================================================= */

.contenedor-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.video-principal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.015);
    will-change: transform;
}


/*
    Esta capa permite utilizar vídeo sin perder
    legibilidad del texto negro y del logo.

    Si quieres ver MÁS vídeo:
    cambia 0.72 por 0.55.

    Si quieres verlo MÁS blanco:
    cambia 0.72 por 0.82.
*/

.capa-video {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.84) 0%,
            rgba(255, 255, 255, 0.76) 42%,
            rgba(255, 255, 255, 0.56) 100%
        );

    z-index: 1;
}


/* ========================================================= */
/* CONTENEDOR                                                */
/* ========================================================= */

.contenedor-principal {
    display: flex;
    flex-direction: column;
    width: min(
        calc(100% - (var(--margen-horizontal) * 2)),
        var(--ancho-maximo)
    );
    min-height: 100%;
    margin-inline: auto;
    padding-top:
        clamp(38px, 9vh, 92px);
    padding-bottom:
        clamp(40px, 7vh, 82px);
}


/* ========================================================= */
/* CABECERA                                                  */
/* ========================================================= */

.cabecera {
    display: flex;
    width: 100%;
    align-items: center;
    flex-shrink: 0;
}

.enlace-logotipo {
    display: inline-flex;
    width:
        clamp(270px, 29vw, 455px);
    max-width: 100%;
}

.logotipo {
    width: 95%;
    height: auto;
}

/* ========================================================= */
/* BLOQUE PRINCIPAL                                          */
/* ========================================================= */

.bloque-principal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    width:
        min(100%, 1150px);
    padding-top:
        clamp(55px, 8vh, 110px);
    padding-bottom:
        clamp(25px, 4vh, 55px);
}

/* ========================================================= */
/* TÍTULO                                                    */
/* ========================================================= */

.titulo-principal,
.titulo-fijo,
.frase-cambiante {
    font-family: "Helvetica Neue 73 Bold Extended", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
}

.titulo-principal {
    display: flex;
    flex-direction: column;
    gap:
        clamp(3px, 0.3vw, 8px);
    margin: 0;
    font-family: var(--fuente-titulo);
    font-size:
        clamp(
            2.0rem,
            3.8vw,
            4.8rem
        );
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.045em;
    text-wrap: balance;
}


.titulo-fijo {
    display: block;
    color: var(--color-texto);
}


/* ========================================================= */
/* FRASE CAMBIANTE - FADE SUAVE DE ARRIBA HACIA ABAJO        */
/* ========================================================= */

.contenedor-frase {
    position: relative;
    display: block;
    min-height: 1.0em;
    overflow: hidden;
    color: var(--color-acento);
}


.frase-cambiante {
    display: block;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
    will-change:
        transform,
        opacity,
        filter;
    backface-visibility: hidden;
}


/* ========================================================= */
/* FRASE ACTUAL DESAPARECE                                   */
/* ========================================================= */

.frase-cambiante.esta-saliendo {

    opacity: 0;
    /*
        Baja muy ligeramente mientras desaparece.
        No queremos que parezca que "se desliza".
    */
    transform:
        translate3d(0, 14px, 0);
    filter:
        blur(2px);
    transition:
        opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 750ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 650ms ease;
}


/* ========================================================= */
/* NUEVA FRASE PREPARADA ARRIBA                              */
/* ========================================================= */

.frase-cambiante.preparada-para-entrar {

    opacity: 0;
    /*
        La nueva frase empieza ligeramente por encima.
        Mantener poca distancia hace que el efecto sea fino.
    */
    transform:
        translate3d(0, -22px, 0);
    filter:
        blur(3px);
    transition: none;
}


/* ========================================================= */
/* NUEVA FRASE ENTRA DE ARRIBA HACIA ABAJO                   */
/* ========================================================= */

.frase-cambiante.esta-entrando {

    opacity: 1;
    transform:
        translate3d(0, 0, 0);
    filter:
        blur(0);
    transition:
        opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 800ms ease;
}
/* ========================================================= */
/* CONTACTO                                                  */
/* ========================================================= */

.bloque-contacto {
    width:
        min(100%, 660px);
    margin-top:
        clamp(34px, 5vh, 62px);
}


.texto-contacto {
    margin:
        0 0
        clamp(18px, 2.4vh, 30px);
    max-width: 650px;
    font-family: var(--fuente-texto);
    font-size:
        clamp(
            0.95rem,
            1.15vw,
            1.3rem
        );
    font-weight: 300;
    line-height: 1.38;
    letter-spacing: -0.02em;
    color: var(--color-texto-secundario);
}


/* ========================================================= */
/* FORMULARIO                                                */
/* ========================================================= */

.formulario-contacto {
    width: 100%;
}

/* ========================================================= */
/* FORMULARIO DE CONTACTO                                    */
/* ========================================================= */

.formulario-contacto {
    width: 100%;
    max-width: 760px;
}

.cuadricula-contacto {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 42px;
}

.grupo-campo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.grupo-campo label {
    margin-bottom: 7px;
    font-family: var(--fuente-texto);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(18, 18, 18, 0.65);
}

.grupo-campo input {
    width: 100%;
    padding: 7px 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(18, 18, 18, 0.4);
    outline: none;
    background: transparent;
    color: var(--color-texto);
    font-family: var(--fuente-texto);
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    font-weight: 500;
    transition: border-color 300ms ease;
}

.grupo-campo input::placeholder {
    color: rgba(18, 18, 18, 0.20); /*Linea para bajar opacidad en los campos de texto en fomrulario 0.20*/
}

.grupo-campo input:focus {
    border-color: var(--color-acento);
}

.acciones-formulario {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
}

.mensaje-formulario {
    min-height: 18px;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--color-texto-secundario);
}

.mensaje-formulario.es-error {
    color: var(--color-acento);
}

.mensaje-formulario.es-correcto {
    color: #166534;
}

.boton-enviar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: clamp(48px, 4.5vw, 56px);
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-acento);
    color: var(--color-blanco);
    cursor: pointer;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.boton-enviar:hover {
    transform: scale(1.06);
}

.boton-enviar:active {
    transform: scale(0.96);
}

.boton-enviar:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.icono-flecha {
    width: 42%;
    height: 42%;
}

/* ========================================================= */
/* BOTÓN                                                     */
/* ========================================================= */

.boton-enviar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width:
        clamp(48px, 4.5vw, 58px);
    aspect-ratio: 1;
    padding: 0;
    border-radius:
        var(--radio-boton);
    background:
        var(--color-acento);
    color:
        var(--color-blanco);
    transition:
        transform var(--transicion-rapida),
        border-radius var(--transicion-rapida),
        background-color var(--transicion-rapida);
    cursor: pointer;
}


.boton-enviar:hover {
    transform:
        scale(1.06);
}

.boton-enviar:active {
    transform:
        scale(0.96);
}

.boton-enviar:focus-visible {
    outline:
        3px solid
        rgba(208, 34, 77, 0.28);

    outline-offset: 4px;
}

.icono-flecha {
    width: 42%;
    height: 42%;
}


/* ========================================================= */
/* MENSAJES DEL FORMULARIO                                   */
/* ========================================================= */

.mensaje-formulario {
    min-height: 20px;
    margin:
        10px 0 0;
    font-size:
        0.75rem;
    line-height: 1.4;
    color:
        var(--color-texto-secundario);
}


.mensaje-formulario.es-error {
    color:
        #a40025;
}
.mensaje-formulario.es-correcto {
    color:
        #166534;
}


/* ========================================================= */
/* ETIQUETA ACCESIBLE OCULTA                                 */
/* ========================================================= */

.etiqueta-oculta {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ========================================================= */
/* PIE DE PÁGINA                                             */
/* ========================================================= */

.pie-pagina {
    display: flex;
    align-items: center;
    width: 100%;
    min-height:
        var(--alto-pie);
    background:
        var(--color-negro);
    color:
        var(--color-blanco);
}


.contenedor-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: min(
        calc(100% - (var(--margen-horizontal) * 2)),
        var(--ancho-maximo)
    );
    margin-inline: auto;
    padding-block:
        30px;
}


/* ========================================================= */
/* REDES SOCIALES                                            */
/* ========================================================= */

/* ========================================================= */
/* REDES SOCIALES                                            */
/* ========================================================= */

.redes-sociales {
    display: flex;
    align-items: center;

    gap: 12px;
}


.enlace-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition:
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 300ms ease;
}

.icono-red {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.enlace-red:hover {
    transform: translateY(-3px);
}

.enlace-red:hover .icono-red {
    transform: scale(1.1);
}


/* ========================================================= */
/* TEXTO PIE                                                 */
/* ========================================================= */

.informacion-pie {
    text-align: right;
}


.informacion-pie p {
    margin: 0;

    font-size:
        clamp(
            0.68rem,
            0.75vw,
            0.85rem
        );

    line-height: 1.45;

    color:
        rgba(255, 255, 255, 0.85);
}


.informacion-pie strong {
    color:
        var(--color-acento);

    font-weight: 700;
}


/* ========================================================= */
/* CURSOR PERSONALIZADO                                      */
/* ========================================================= */

.cursor-personalizado {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background:
        var(--color-acento);
    pointer-events: none;
    opacity: 0;
    transform:
        translate3d(-100px, -100px, 0)
        translate(-50%, -50%);
    transition:
        width 220ms cubic-bezier(0.16, 1, 0.3, 1),
        height 220ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 180ms ease,
        background-color 180ms ease;

    will-change: transform;
}


.cursor-personalizado.es-visible {
    opacity: 1;
}


.cursor-personalizado.esta-sobre-elemento {
    width: 34px;
    height: 34px;
    background:
        rgba(208, 34, 77, 0.78);
}


/* ========================================================= */
/* CURSOR SKIRLA ACTIVO                                      */
/* ========================================================= */

body.cursor-skirla-activo,
body.cursor-skirla-activo a,
body.cursor-skirla-activo button {
    cursor: none;
}

body.cursor-skirla-activo input {
    cursor: text;
}

/* ========================================================= */
/* PORTÁTILES / TABLETS HORIZONTALES                         */
/* ========================================================= */

@media (max-width: 1100px) {

    :root {
        --margen-horizontal:
            clamp(26px, 6vw, 70px);
    }


    .titulo-principal {
        font-size:
            clamp(
                2.8rem,
                6.7vw,
                5.2rem
            );
    }


    .bloque-principal {
        width: 100%;
    }

}


/* ========================================================= */
/* TABLET                                                    */
/* ========================================================= */

@media (max-width: 768px) {

    :root {
        --alto-pie: auto;
    }


    .seccion-inicio {
        min-height:
            100svh;
    }


    .contenedor-principal {
        width:
            calc(100% - 44px);
        padding-top:
            clamp(26px, 6vh, 50px);
        padding-bottom:
            55px;
    }


    .cabecera {
        margin-bottom:
            25px;
    }


    .enlace-logotipo {
        width:
            clamp(235px, 55vw, 350px);
    }


    .bloque-principal {
        justify-content: center;
        padding-top:
            clamp(25px, 7vh, 75px);
        padding-bottom:
            10px;
    }


    .titulo-principal {
        font-size:
            clamp(
                2.35rem,
                9vw,
                4rem
            );

        line-height:
            0.98;
        letter-spacing:
            -0.045em;
    }


    .bloque-contacto {
        margin-top:
            clamp(35px, 6vh, 55px);
    }


    .capa-video {
        background:
            rgba(255, 255, 255, 0.72);
    }


    .contenedor-pie {
        width:
            calc(100% - 44px);
        flex-direction: column;
        align-items: flex-start;
        gap:
            28px;
        padding-block:
            34px;
    }


    .informacion-pie {
        text-align: left;
    }

}


/* ========================================================= */
/* MÓVIL                                                     */
/* ========================================================= */

@media (max-width: 520px) {

    .contenedor-principal {
        width:
            calc(100% - 34px);
    }


    .enlace-logotipo {
        width:
            min(83vw, 320px);
    }


    .titulo-principal {
        font-size:
            clamp(
                2rem,
                10vw,
                3.15rem
            );

        line-height:
            1;
    }


    .contenedor-frase {
        min-height:
            2.05em;
    }


    .texto-contacto {
        font-size:
            0.95rem;
    }


    .grupo-correo {
        grid-template-columns:
            minmax(0, 1fr)
            48px;
    }


    .campo-correo {
        padding:
            13px 10px
            13px 0;
    }


    .boton-enviar {
        width: 48px;
    }


    .contenedor-pie {
        width:
            calc(100% - 34px);
    }

}


/* ========================================================= */
/* MÓVILES MUY PEQUEÑOS                                      */
/* ========================================================= */

@media (max-width: 360px) {

    .contenedor-principal {
        width:
            calc(100% - 28px);
    }

    .titulo-principal {
        font-size:
            1.9rem;
    }

    .contenedor-pie {
        width:
            calc(100% - 28px);
    }

}


/* ========================================================= */
/* PANTALLAS GRANDES                                         */
/* ========================================================= */

@media (min-width: 1900px) {

    :root {
        --ancho-maximo:
            1850px;
    }

    .titulo-principal {
        font-size:
            clamp(
                5.5rem,
                5vw,
                7.4rem
            );
    }

    .bloque-principal {
        width:
            min(100%, 1350px);
    }

    .bloque-contacto {
        width:
            min(100%, 760px);
    }

}


/* ========================================================= */
/* PANTALLAS ULTRAWIDE / 30 PULGADAS                         */
/* ========================================================= */

@media (min-width: 2400px) {

    :root {
        --ancho-maximo:
            2100px;
    }

    .titulo-principal {
        font-size:
            clamp(
                6.5rem,
                4.7vw,
                8.8rem
            );
    }

    .bloque-principal {
        width:
            min(100%, 1600px);
    }

    .texto-contacto {
        font-size:
            1.35rem;
    }

}


/* ========================================================= */
/* ALTURAS PEQUEÑAS                                          */
/* ========================================================= */

@media (max-height: 700px) and (min-width: 769px) {

    .contenedor-principal {
        padding-top:
            38px;

        padding-bottom:
            35px;
    }


    .bloque-principal {
        padding-top:
            40px;

        padding-bottom:
            15px;
    }

    .titulo-principal {
        font-size:
            clamp(
                2.8rem,
                4.6vw,
                4.5rem
            );
    }

    .bloque-contacto {
        margin-top:
            28px;
    }

}


/* ========================================================= */
/* REDUCCIÓN DE MOVIMIENTO                                   */
/* ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration:
            0.01ms !important;
        animation-iteration-count:
            1 !important;
        transition-duration:
            0.01ms !important;
    }


    .cursor-personalizado {
        display: none;
    }
}

/* ========================================================= */
/* NUEVAS DIMENSIONES PARA NUEVO FORMULARIO                               */
/* ========================================================= */

    @media (max-width: 700px) {
    .cuadricula-contacto {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .formulario-contacto {
        max-width: 100%;
    }

    .acciones-formulario {
        margin-top: 22px;
    }
}

/* ========================================================= */
/* CASILLA PARA EL FORMULARIO DE ACEPTACIÓN                   */
/* ========================================================= */

.informacion-privacidad {
    margin: 14px 0 0;
    font-size: 0.60rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(18, 18, 18, 0.60);
}

.informacion-privacidad a {
    color: var(--color-acento);
    text-decoration: none;
}

.informacion-privacidad a:hover {
    text-decoration: underline;
}

}