body {
    margin: 0;
    background: #000;
    position: relative;
    z-index: 0;
}


html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout */

.container,
.section-divider {
    width: min(88vw, 760px);
    margin-left: auto;
    margin-right: auto;
}

.container {
    margin: 0 auto;
}

/* Navegación superior */

.topbar {
    width: min(88vw, 760px);
    margin: 20px auto 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav,
.lang-switch {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav a,
.lang-switch a,
.lang-switch span {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav a:hover,
.lang-switch a:hover {
    color: #FFFFFF;
}

.lang-switch a.active {
    color: #FFFFFF;
}


/* Hero */

.hero {
    padding-top: 2rem;
    padding-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}


.h1 {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.375;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.h2 {
    color: #FFFFFF;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.125;
    margin-bottom: -8px;
}

.h3 {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.375;
    letter-spacing: 0.01;
    margin-bottom: 0;
}

/* Secciones */

.section {
    padding-top: 8px;
    padding-bottom: 24px;
}

.section-title {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.375;
    margin-bottom: 10px;
}

.section-text {
    color: #B0B3B8;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0;
}


/* Separadores principales */

.section-divider {
    height: 1px;
    background: #FFFFFF;
    margin-top: 12px;
    margin-bottom: 16px;
}

/* Services */

.service-subtitle {
    color: #FFFFFF;
    font-style: italic;
    font-weight: 400;
    margin-left: 16px;
    margin-bottom: 12px;
}

.service-description {
    color: #B0B3B8;
    line-height: 1.375;
    margin-left: 16px;
    margin-bottom: 12px;
}

.service-list {
    color: #B0B3B8;
    line-height: 1.2;
    padding-left: 32px;
    margin-left: 16px;
    margin-top: 0;
    margin-bottom: 0;
}

.service-list li {
    margin-bottom: 2px;
}

.service-divider {
    width: 60%;
    height: 1px;
    background: #B0B3B8;
    opacity: 0.7;
    margin: 30px auto;
}

/* Contact */

.contact-icons {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 16px;
}

.contact-icon {
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.25s ease;
}


.contact-icon:hover {
    opacity: 0.7;
}

#about,
#services,
#contact {
    scroll-margin-top: 30px;
}

.linkedin-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.linkedin-link:hover {
    opacity: 0.7;
}

/* Logo */

.logo-word {
    font-family: "Perpetua", serif;
    font-size: 4.5rem;
    color: #FFFFFF;
    letter-spacing: clamp(0.25em, 0.5vw, 0.6em);
    font-weight: 400;
    margin-bottom: 12px;

    width: 100%;
    text-align: center;
}

.e-accent {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.e-accent::before {
    content: "";
    position: absolute;

    left: 40%;
    transform: translateX(-55%);

    top: 0.12em;

    width: 0.35em;
    height: 1.5px;

    background: #FFFFFF;
}

/* MOBILE */
@media (max-width: 768px) {

    /* TOPBAR */
    .topbar {
        margin-top: 16px;
    }

    .nav,
    .lang-switch {
        gap: 8px;
    }

    .nav a,
    .lang-switch a,
    .lang-switch span {
        font-size: 0.9rem;
    }

    /* HERO */
    .hero {
        padding-top: 1.5rem;
    }

    /* LOGO */
    .logo-word {
        font-size: 3rem;
        letter-spacing: 0.3em;
    }

    .e-accent::before {
        top: 0.06em;
        width: 0.3em;
    }

    /* TIPOGRAFÍA */
    .h1 {
        font-size: 0.95rem;
    }

    .h2 {
        font-size: 1.15rem;
        line-height: 1.2;
    }


    .h3 {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-text,
    .service-description,
    .service-list {
        font-size: 0.95rem;
    }

    /* CONTROL HERO TEXT 2 (CLAVE) */
    .hero-text-2 {
        line-height: 1.2;
        max-height: calc(2.4em);
        overflow: hidden;
        display: block;
    }

    /* ESPACIADOS SERVICIOS */
    .service-subtitle {
        margin-left: 8px;
    }

    .service-description {
        margin-left: 8px;
    }

    .service-list {
        margin-left: 8px;
        padding-left: 24px;
    }

    .contact-icons {
        gap: 24px;
    }

    .mobile-break {
        display: none;
    }
}


body::before {
    content: "";
    position: fixed;
    inset: 0;

    z-index: 0;
    pointer-events: none;

    background-image: url("../images/fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.16;
}

.topbar,
.container,
.section-divider {
    position: relative;
    z-index: 1;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: white;
    margin: 30px 0 15px;
}