/* =========================
   VARIABLES
========================= */

:root {
    --bg-main: #11151b;
    --bg-secondary: #171d25;
    --bg-card: #1d2530;
    --bg-soft: #222b37;

    --text-main: #f4f1eb;
    --text-secondary: #aeb6c2;

    --accent-red: #9f2f3f;
    --accent-red-light: #c44b5d;

    --accent-gold: #d7b96f;
    --accent-gold-soft: rgba(215, 185, 111, 0.15);

    --border: rgba(255, 255, 255, 0.08);

    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 32px;

    --max-width: 1180px;

    --transition: 0.3s ease;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    overflow-x: hidden;

    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at top right,
            rgba(159, 47, 63, 0.12),
            transparent 35%
        ),
        var(--bg-main);

    color: var(--text-main);

    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ACCESIBILIDAD */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}


/* Evita que el navbar tape el inicio de una sección
   cuando se navega mediante enlaces # */

section {
    scroll-margin-top: 25px;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    width: min(92%, var(--max-width));
    height: 82px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;

    z-index: 100;
}


/* =========================
   BRAND
========================= */

.brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 14px;

    overflow: hidden;

    background: transparent;

    box-shadow:
        0 10px 30px rgba(159, 47, 63, 0.25);
}

.brand-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
}

.brand-subtitle {
    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 2px;
}


/* =========================
   NAV LINKS
========================= */

.nav-links {
    display: flex;
    align-items: center;

    gap: 34px;
}

.nav-links a {
    position: relative;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 500;

    transition:
        color var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}


/* Línea sutil al pasar el mouse */

.nav-links a::after {
    content: "";

    width: 0;
    height: 1px;

    position: absolute;

    left: 0;
    bottom: -5px;

    background: var(--accent-red-light);

    transition:
        width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================
   MENU BUTTON
========================= */

.menu-button {
    width: 42px;
    height: 42px;

    display: none;

    justify-content: center;
    align-items: center;

    border: 1px solid transparent;

    border-radius: 12px;

    background: transparent;

    color: var(--text-main);

    font-size: 25px;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.04);

    border-color: var(--border);
}


/* =========================
   HERO
========================= */

.hero {
    width: min(92%, var(--max-width));

    min-height: calc(100vh - 82px);

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 80px;

    padding: 80px 0 110px;
}

.hero-content {
    max-width: 650px;
}


/* =========================
   EYEBROW
========================= */

.eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--accent-gold);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2.5px;
}


/* =========================
   HERO TITLE
========================= */

.hero h1 {
    font-family: "Cinzel", serif;

    font-size: clamp(48px, 6vw, 78px);

    line-height: 1.08;

    font-weight: 600;
}

.hero h1 span {
    display: block;

    color: var(--text-secondary);

    font-weight: 500;
}


/* =========================
   HERO DESCRIPTION
========================= */

.hero-content > p {
    max-width: 580px;

    margin-top: 28px;

    color: var(--text-secondary);

    font-size: 18px;
}


/* =========================
   BUTTONS
========================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 38px;
}

.button {
    min-height: 50px;

    padding: 0 24px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button.primary {
    background:
        linear-gradient(
            135deg,
            var(--accent-red),
            #7d2633
        );

    color: white;

    box-shadow:
        0 14px 35px rgba(159, 47, 63, 0.2);
}

.button.primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(159, 47, 63, 0.3);
}

.button.secondary {
    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-main);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.07);

    border-color: rgba(255, 255, 255, 0.13);
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    min-height: 520px;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================
   BIG SYMBOL
========================= */

.wing-symbol {
    width: 330px;
    height: 330px;

    border-radius:
        40% 60% 55% 45% /
        40% 40% 60% 60%;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(159, 47, 63, 0.22),
            rgba(215, 185, 111, 0.06)
        );

    border:
        1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        inset 0 0 60px rgba(255, 255, 255, 0.02),
        0 40px 80px rgba(0, 0, 0, 0.35);
}

.wing-symbol::before {
    content: "";

    width: 250px;
    height: 250px;

    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(215, 185, 111, 0.15);
}

.wing-symbol img {
    width: 75%;
    height: 75%;

    position: relative;

    z-index: 2;

    object-fit: contain;
}


/* =========================
   FLOATING CARDS
========================= */

.floating-card {
    position: absolute;

    padding: 14px 18px;

    border-radius: 14px;

    background:
        rgba(29, 37, 48, 0.85);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}

.card-one {
    top: 85px;
    right: 10px;
}

.card-two {
    bottom: 80px;
    left: 0;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
    width: min(92%, var(--max-width));

    margin: 0 auto;

    padding: 110px 0;
}

.section-heading {
    max-width: 640px;

    margin-bottom: 50px;
}

.section-heading h2,
.studio-copy h2,
.contact-box h2 {
    font-family: "Cinzel", serif;

    font-size: clamp(34px, 4vw, 52px);

    line-height: 1.15;

    font-weight: 600;
}

.section-heading > p {
    margin-top: 18px;

    color: var(--text-secondary);
}


/* =========================
   PROJECTS
========================= */

.projects-grid {
    display: grid;

    grid-template-columns: 1.5fr 0.8fr;

    gap: 24px;
}


/* =========================
   PROJECT CARD
========================= */

.project-card {
    min-height: 390px;

    padding: 38px;

    border-radius: var(--radius-large);

    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            var(--bg-card),
            var(--bg-secondary)
        );

    transition:
        transform var(--transition),
        border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(255, 255, 255, 0.13);
}


/* =========================
   GRIMORIO CARD
========================= */

.grimorio-card {
    background:
        radial-gradient(
            circle at bottom right,
            rgba(215, 185, 111, 0.16),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #232a33,
            #192028
        );
}

.project-badge {
    display: inline-block;

    padding: 8px 12px;

    border-radius: 999px;

    background: var(--accent-gold-soft);

    color: var(--accent-gold);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.5px;
}

.project-content {
    max-width: 540px;

    position: relative;

    z-index: 2;
}

.project-type {
    display: block;

    margin-top: 38px;

    color: var(--text-secondary);

    font-size: 13px;
}

.project-card h3 {
    margin-top: 8px;

    font-family: "Cinzel", serif;

    font-size: 40px;
    font-weight: 600;
}

.project-card p {
    max-width: 500px;

    margin-top: 16px;

    color: var(--text-secondary);
}

.project-link {
    margin-top: 30px;

    display: inline-flex;
    align-items: center;

    gap: 12px;

    color: var(--accent-gold);

    font-weight: 600;

    transition:
        color var(--transition);
}

.project-link span {
    transition:
        transform var(--transition);
}

.project-link:hover span {
    transform: translateX(5px);
}


/* =========================
   GRIMORIO SCREENSHOT
========================= */

.project-decoration {
    width: 280px;
    height: 280px;

    position: absolute;

    right: -40px;
    bottom: -65px;
}

.book-shape {
    width: 190px;
    height: 250px;

    position: absolute;

    right: 20px;
    bottom: 0;

    border-radius:
        12px 24px 24px 12px;

    transform: rotate(13deg);

    background-image:
        url("../src/biblioteca_grimorio.png");

    background-size: cover;

    background-position:
        top center;

    background-repeat: no-repeat;

    border:
        1px solid rgba(215, 185, 111, 0.18);

    box-shadow:
        -20px 30px 50px rgba(0, 0, 0, 0.3);
}


/* =========================
   FUTURE CARD
========================= */

.future-card {
    display: flex;
    flex-direction: column;

    justify-content: space-between;
}

.future-card .project-type {
    margin-top: 0;
}

.future-card h3 {
    font-size: 29px;
}

.future-symbol {
    width: 65px;
    height: 65px;

    margin-top: 50px;

    border-radius: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 30px;
}


/* =========================
   STUDIO
========================= */

.studio {
    border-top:
        1px solid var(--border);
}

.studio-grid {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 80px;

    align-items: start;
}

.studio-copy h2 span {
    display: block;

    color: var(--accent-red-light);
}

.studio-copy p {
    max-width: 520px;

    margin-top: 22px;

    color: var(--text-secondary);
}


/* =========================
   VALUES
========================= */

.values {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.value-card {
    padding: 26px;

    display: grid;

    grid-template-columns:
        50px 150px 1fr;

    align-items: center;

    gap: 10px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform var(--transition),
        background var(--transition);
}

.value-card:hover {
    background:
        rgba(255, 255, 255, 0.045);

    transform: translateX(4px);
}

.value-card > span {
    color: var(--accent-gold);

    font-family: "Cinzel", serif;

    font-size: 13px;
}

.value-card h3 {
    font-size: 16px;
}

.value-card p {
    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================
   CONTACT
========================= */

.contact-box {
    padding: 70px;

    text-align: center;

    border-radius:
        var(--radius-large);

    border:
        1px solid var(--border);

    background:
        radial-gradient(
            circle at top center,
            rgba(159, 47, 63, 0.15),
            transparent 45%
        ),
        var(--bg-secondary);
}

.contact-box h2 {
    max-width: 700px;

    margin: 0 auto;
}

.contact-box p {
    max-width: 600px;

    margin:
        20px auto
        30px;

    color: var(--text-secondary);
}


/* =========================
   FOOTER
========================= */

footer {
    width:
        min(92%, var(--max-width));

    margin: 0 auto;

    padding: 45px 0;

    border-top:
        1px solid var(--border);

    display: grid;

    grid-template-columns:
        1fr auto auto;

    gap: 40px;

    align-items: center;
}

footer strong {
    font-family: "Cinzel", serif;

    font-size: 17px;
}

footer > div:first-child p {
    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 12px;
}

.footer-links {
    display: flex;

    gap: 24px;

    color: var(--text-secondary);

    font-size: 13px;
}

.footer-links a {
    transition:
        color var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================
   TABLET / MOBILE NAV
========================= */

@media (max-width: 900px) {

    .nav-links {
        width: 220px;

        display: none;

        position: absolute;

        top: 72px;
        right: 0;

        padding: 20px;

        flex-direction: column;
        align-items: flex-start;

        gap: 18px;

        border-radius: 18px;

        background:
            rgba(29, 37, 48, 0.97);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        border:
            1px solid var(--border);

        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.35);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
    }

    .menu-button {
        display: flex;
    }


    /* HERO */

    .hero {
        grid-template-columns: 1fr;

        min-height: auto;

        padding-top: 80px;

        gap: 30px;
    }

    .hero-visual {
        min-height: 420px;
    }

    .wing-symbol {
        width: 270px;
        height: 270px;
    }

    .wing-symbol::before {
        width: 200px;
        height: 200px;
    }


    /* PROJECTS */

    .projects-grid {
        grid-template-columns: 1fr;
    }


    /* STUDIO */

    .studio-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .value-card {
        grid-template-columns:
            45px 120px 1fr;
    }


    /* FOOTER */

    footer {
        grid-template-columns: 1fr;

        gap: 22px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .navbar {
        height: 72px;
    }


    /* HERO */

    .hero {
        padding:
            60px 0
            85px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }


    /* HERO VISUAL */

    .hero-visual {
        min-height: 330px;
    }

    .wing-symbol {
        width: 220px;
        height: 220px;
    }

    .wing-symbol::before {
        width: 165px;
        height: 165px;
    }

    .floating-card {
        padding: 10px 13px;

        font-size: 11px;
    }

    .card-one {
        top: 25px;
        right: 0;
    }

    .card-two {
        bottom: 25px;
        left: 0;
    }


    /* SECTIONS */

    .section {
        padding: 80px 0;
    }


    /* PROJECTS */

    .project-card {
        min-height: 360px;

        padding: 27px;
    }

    .project-card h3 {
        font-size: 32px;
    }

    .project-decoration {
        right: -70px;
        bottom: -75px;

        opacity: 0.48;
    }


    /* VALUES */

    .value-card {
        display: block;
    }

    .value-card h3 {
        margin-top: 10px;
    }

    .value-card p {
        margin-top: 7px;
    }


    /* CONTACT */

    .contact-box {
        padding: 45px 25px;
    }


    /* FOOTER */

    .footer-links {
        flex-wrap: wrap;
    }
}


/* =========================
   VERY SMALL DEVICES
========================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 36px;
    }

    .brand-subtitle {
        letter-spacing: 1.5px;
    }

    .wing-symbol {
        width: 195px;
        height: 195px;
    }

    .wing-symbol::before {
        width: 145px;
        height: 145px;
    }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}