/* =========================================================
   INSTITUTO UNGARETTI
   Sitio en construcción
========================================================= */

/* =========================================================
   1. VARIABLES
========================================================= */

:root {
    --primary: #34a798;
    --primary-dark: #287f76;
    --primary-light: #e2f4f1;

    --gray: #75787b;
    --gray-light: #eef1f0;

    --dark: #182522;
    --dark-soft: #293936;

    --white: #ffffff;
    --off-white: #f7f9f8;
    --text: #596461;
    --border: #dce4e2;

    --font-primary: "Manrope", Arial, sans-serif;

    --container-width: 1440px;
    --container-padding: 48px;

    --radius-small: 8px;
    --radius-medium: 18px;
    --radius-large: 30px;

    --shadow-small: 0 10px 35px rgba(16, 40, 35, 0.08);
    --shadow-large: 0 30px 80px rgba(16, 40, 35, 0.14);

    --transition: 0.3s ease;
}

/* =========================================================
   2. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background-color: var(--off-white);
    color: var(--text);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

address {
    font-style: normal;
}

::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* =========================================================
   3. CONTENEDOR PRINCIPAL
========================================================= */

.construction {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto auto;
    overflow: hidden;
    background:
        linear-gradient(
            115deg,
            var(--white) 0%,
            var(--white) 55%,
            var(--off-white) 55%,
            var(--off-white) 100%
        );
}

/* =========================================================
   4. FONDO DECORATIVO
========================================================= */

.construction__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(2px);
}

.shape--one {
    top: -240px;
    right: -170px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(52, 167, 152, 0.14);
    background-color: rgba(52, 167, 152, 0.05);
    animation: floatOne 12s ease-in-out infinite alternate;
}

.shape--two {
    right: 12%;
    bottom: -300px;
    width: 520px;
    height: 520px;
    background-color: rgba(52, 167, 152, 0.06);
    animation: floatTwo 15s ease-in-out infinite alternate;
}

.shape--three {
    top: 40%;
    left: -200px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(117, 120, 123, 0.1);
    animation: floatOne 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatOne {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-35px, 35px, 0) scale(1.08);
    }
}

@keyframes floatTwo {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(30px, -40px, 0);
    }
}

/* =========================================================
   5. ENCABEZADO
========================================================= */

.construction__header {
    position: relative;
    z-index: 10;
    display: flex;
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );
    min-height: 100px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-inline: auto;
    border-bottom: 1px solid var(--border);
}

.construction__brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.construction__brand::before {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    content: "IU";
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.header-link i {
    color: var(--primary);
    font-size: 11px;
    transition: transform var(--transition);
}

.header-link:hover {
    color: var(--primary-dark);
}

.header-link:hover i {
    transform: translate(3px, -3px);
}

/* =========================================================
   6. CONTENIDO PRINCIPAL
========================================================= */

.construction__content {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );
    grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(70px, 9vw, 160px);
    margin-inline: auto;
    padding: 75px 0;
}

/* =========================================================
   7. LOGO
========================================================= */

.construction__logo-wrapper {
    position: relative;
    display: grid;
    min-height: 480px;
    place-items: center;
    padding: 50px;
    border: 1px solid rgba(52, 167, 152, 0.16);
    border-radius: var(--radius-large);
    background-color: var(--white);
    box-shadow: var(--shadow-large);
}

.construction__logo-wrapper::before {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow:
        -19px 0 0 rgba(52, 167, 152, 0.55),
        -38px 0 0 rgba(52, 167, 152, 0.2);
    content: "";
}

.construction__logo-wrapper::after {
    position: absolute;
    right: -20px;
    bottom: 55px;
    width: 95px;
    height: 3px;
    background-color: var(--primary);
    content: "";
}

.construction__logo {
    position: relative;
    z-index: 2;
    max-width: 610px;
    height: auto;
    mix-blend-mode: multiply;
}

/* =========================================================
   8. MENSAJE
========================================================= */

.construction__message {
    max-width: 720px;
}

.construction__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.construction__eyebrow::before {
    width: 42px;
    height: 2px;
    background-color: var(--primary);
    content: "";
}

.construction__message h1 {
    max-width: 750px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(56px, 5vw, 86px);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.construction__message > p {
    max-width: 650px;
    margin-bottom: 16px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
}

.construction__availability {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--dark) !important;
    font-size: 13px !important;
    font-weight: 700;
}

.construction__availability::before {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 0 6px rgba(52, 167, 152, 0.12);
    content: "";
}

.construction__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

/* =========================================================
   9. BOTONES
========================================================= */

.button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-3px);
}

.button--primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 14px 35px rgba(52, 167, 152, 0.24);
}

.button--primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 18px 40px rgba(40, 127, 118, 0.3);
}

.button--primary i {
    transition: transform var(--transition);
}

.button--primary:hover i {
    transform: translateX(5px);
}

.button--secondary {
    border-color: var(--border);
    background-color: var(--white);
    color: var(--dark);
}

.button--secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: var(--shadow-small);
}

/* =========================================================
   10. INFORMACIÓN INFERIOR
========================================================= */

.construction__footer {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-inline: auto;
    padding: 34px 0;
    border-top: 1px solid var(--border);
}

.locations {
    display: flex;
    align-items: center;
    gap: 60px;
}

.location {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location > i {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px;
}

.location div {
    display: flex;
    flex-direction: column;
}

.location span {
    margin-bottom: 2px;
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location address {
    color: var(--text);
    font-size: 12px;
}

.social-area {
    display: flex;
    align-items: center;
    gap: 17px;
}

.social-area > span {
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 9px;
}

.social-links a {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background-color: var(--white);
    color: var(--dark);
    font-size: 15px;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.social-links a:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* =========================================================
   11. FOOTER LEGAL
========================================================= */

.legal-footer {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-inline: auto;
    padding: 20px 0 24px;
    border-top: 1px solid var(--border);
    color: #8a9491;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   12. ESTADOS DE FOCO
========================================================= */

a:focus-visible {
    outline: 3px solid rgba(52, 167, 152, 0.4);
    outline-offset: 5px;
}

/* =========================================================
   13. ANIMACIÓN DE ENTRADA
========================================================= */

.construction__logo-wrapper {
    animation: logoEntrance 0.9s ease both;
}

.construction__message {
    animation: contentEntrance 0.9s 0.15s ease both;
}

.construction__footer {
    animation: contentEntrance 0.9s 0.3s ease both;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateX(-35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contentEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   14. NOTEBOOKS
========================================================= */

@media (max-width: 1200px) {
    :root {
        --container-padding: 32px;
    }

    .construction__content {
        grid-template-columns: minmax(380px, 0.9fr) minmax(450px, 1.1fr);
        gap: 70px;
        padding-block: 60px;
    }

    .construction__logo-wrapper {
        min-height: 430px;
        padding: 35px;
    }

    .construction__message h1 {
        font-size: clamp(55px, 6vw, 74px);
    }

    .locations {
        gap: 35px;
    }
}

/* =========================================================
   15. TABLETS
========================================================= */

@media (max-width: 950px) {
    :root {
        --container-padding: 25px;
    }

    .construction {
        background: var(--off-white);
    }

    .construction__content {
        grid-template-columns: 1fr;
        gap: 65px;
        padding-block: 60px 75px;
    }

    .construction__logo-wrapper {
        width: min(100%, 680px);
        min-height: 410px;
        justify-self: center;
    }

    .construction__message {
        max-width: 750px;
        text-align: center;
        justify-self: center;
    }

    .construction__eyebrow {
        justify-content: center;
    }

    .construction__message > p {
        margin-inline: auto;
    }

    .construction__availability {
        justify-content: center;
    }

    .construction__actions {
        justify-content: center;
    }

    .construction__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
    }

    .social-area {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   16. CELULARES GRANDES
========================================================= */

@media (max-width: 700px) {
    :root {
        --container-padding: 18px;
    }

    .construction__header {
        min-height: 82px;
    }

    .construction__brand {
        font-size: 10px;
    }

    .construction__brand::before {
        width: 36px;
        height: 36px;
    }

    .header-link {
        font-size: 9px;
    }

    .header-link i {
        display: none;
    }

    .construction__content {
        gap: 50px;
        padding-block: 45px 60px;
    }

    .construction__logo-wrapper {
        min-height: 330px;
        padding: 25px;
        border-radius: 22px;
    }

    .construction__logo-wrapper::after {
        right: -10px;
        width: 65px;
    }

    .construction__message h1 {
        font-size: clamp(43px, 12vw, 60px);
    }

    .construction__message > p {
        font-size: 15px;
    }

    .construction__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .construction__actions .button {
        width: 100%;
    }

    .locations {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .location {
        width: 100%;
    }

    .legal-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================================
   17. CELULARES MEDIANOS
========================================================= */

@media (max-width: 480px) {
    :root {
        --container-padding: 15px;
    }

    .construction__header {
        min-height: 75px;
    }

    .construction__brand {
        max-width: 170px;
        line-height: 1.25;
    }

    .header-link {
        max-width: 80px;
        text-align: right;
        line-height: 1.3;
    }

    .construction__logo-wrapper {
        min-height: 270px;
        padding: 18px;
    }

    .construction__logo-wrapper::before {
        top: 19px;
        right: 19px;
    }

    .construction__logo-wrapper::after {
        display: none;
    }

    .construction__eyebrow {
        gap: 9px;
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .construction__eyebrow::before {
        width: 25px;
    }

    .construction__message h1 {
        margin-bottom: 23px;
        font-size: clamp(39px, 12vw, 50px);
    }

    .construction__availability {
        align-items: flex-start;
        font-size: 12px !important;
    }

    .social-area {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   18. CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 360px) {
    .construction__brand {
        font-size: 8px;
    }

    .construction__brand::before {
        width: 32px;
        height: 32px;
        font-size: 9px;
    }

    .construction__message h1 {
        font-size: 38px;
    }

    .construction__logo-wrapper {
        min-height: 235px;
    }
}

/* =========================================================
   19. MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}