@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --bg: #000000;
    --bg-soft: #080808;
    --panel: rgba(15, 15, 15, 0.92);
    --panel-strong: #141414;
    --panel-hover: #1b1b1b;
    --text: #ffffff;
    --muted: #a1a1aa;
    --muted-strong: #d4d4d8;
    --accent: #91b9d0;
    --accent2: #c5ddeb;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.17);
    --max: 1120px;
    --glass-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    min-height: 100vh;
    background: #000000;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent2);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
a:hover { color: #ffffff; }

/* Encabezado */
.site-header,
.site-footer {
    max-width: var(--max);
    margin: auto;
    padding: 23px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: Manrope, sans-serif;
    font-weight: 800;
    letter-spacing: -.045em;
    font-size: 20px;
}
.brand:hover { color: #ffffff; }

.brand-mark {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(142, 187, 210, .42);
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: linear-gradient(145deg, rgba(142, 187, 210, .13), rgba(142, 187, 210, .025));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 5px 22px rgba(0, 0, 0, .2);
}
.brand-mark span { color: var(--accent); }

nav,
.footer-links { display: flex; gap: 27px; }
nav a,
.footer-links a { font-size: 13px; color: #c4c4c8; }
nav a:hover,
.footer-links a:hover { color: var(--text); }

/* Portada */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: var(--max);
    margin: auto;
    padding: 118px 28px 132px;
    min-height: 570px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 13px rgba(142, 187, 210, .85);
}

h1, h2, h3 {
    font-family: Manrope, sans-serif;
    line-height: 1.12;
    letter-spacing: -.06em;
}
h1 {
    font-size: clamp(54px, 8vw, 88px);
    margin: 23px 0;
    max-width: 760px;
    font-weight: 700;
}
h1 span,
h2 span {
    color: var(--accent);
    background: linear-gradient(100deg, #e5f0f5 0%, #a9c9dc 55%, #91b9d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead {
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted-strong);
    max-width: 630px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    padding: 13px 18px;
    border: 1px solid rgba(210, 231, 243, .36);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(190, 216, 232, .96), rgba(126, 164, 190, .96));
    color: #071017;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 30px rgba(95, 145, 178, .13), inset 0 1px rgba(255, 255, 255, .55);
}
.button:hover {
    background: linear-gradient(135deg, #e1edf4, #a9c9dc);
    color: #05090d;
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(95, 145, 178, .2);
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(142, 187, 210, .12);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 80px rgba(89, 134, 166, .035), inset 0 0 80px rgba(89, 134, 166, .025);
}
.orbit-one { width: 550px; height: 550px; right: -65px; top: 42px; }
.orbit-two {
    width: 365px;
    height: 365px;
    right: 27px;
    top: 135px;
    border-color: rgba(142, 187, 210, .19);
}

/* Secciones */
.section {
    max-width: var(--max);
    margin: auto;
    padding: 72px 28px 112px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 31px;
    gap: 25px;
}
.section-heading h2,
.about-band h2 { font-size: 46px; margin: 10px 0; }
.section-heading > p {
    max-width: 300px;
    color: #b4b4bb;
    font-size: 14px;
}

/* Tarjeta de proyecto */
.project-card {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow), inset 0 1px rgba(255, 255, 255, .035);
    position: relative;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(145, 185, 208, .32);
    background: var(--panel-hover);
}

.project-icon {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(142, 187, 210, .17), rgba(142, 187, 210, .045));
    border: 1px solid rgba(142, 187, 210, .27);
    display: grid;
    place-items: center;
    font: 800 32px Manrope;
    color: var(--accent);
    box-shadow: inset 0 1px rgba(255, 255, 255, .09);
}
.project-icon span {
    font-size: 13px;
    position: absolute;
    margin: -26px 0 0 30px;
}
.project-copy { max-width: 620px; }
.project-meta {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}
.project-copy h3 { font-size: 30px; margin: 8px 0; }
.project-copy p,
.feature p {
    color: #c4c4c8;
    margin: 0 0 18px;
}
.text-link { font-weight: 700; font-size: 13px; }
.text-link span {
    display: inline-block;
    transition: transform .2s ease;
}
.text-link:hover span { transform: translateX(4px); }

.project-tag {
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    padding: 6px 11px;
    color: #c4c4c8;
    background: #111111;
    font-size: 10px;
    white-space: nowrap;
}

.future-note {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 13px;
}
.future-note strong { color: var(--text); }
.plus {
    width: 34px;
    height: 34px;
    border: 1px dashed rgba(142, 187, 210, .55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 20px;
    background: rgba(142, 187, 210, .045);
}

/* Acerca de */
.about-band {
    position: relative;
    overflow: hidden;
    padding: 88px max(28px, calc((100% - 1064px)/2));
    background: #080808;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.about-band h2 { font-size: clamp(38px, 5vw, 56px); }
.about-band p {
    color: #c4c4c8;
    max-width: 590px;
}

/* Pie de página */
.site-footer {
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    padding-bottom: 35px;
}
.site-footer small { color: #a1a1aa; font-size: 11px; }

/* Páginas interiores */
.subpage,
.policy {
    max-width: var(--max);
    margin: auto;
    padding: 65px 28px 110px;
    min-height: 65vh;
}
.subpage h1,
.policy h1 {
    font-size: clamp(48px, 7vw, 76px);
    margin-top: 30px;
}
.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 48px;
}
.back-link:hover { color: var(--text); }

/* Características */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 65px 0 45px;
}
.feature {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #0d0d0d;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 35px rgba(0, 0, 0, .3);
    transition: transform .22s ease, border-color .22s ease;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(142, 187, 210, .24);
}
.feature > span {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .12em;
}
.feature h3 {
    font-size: 20px;
    letter-spacing: -.03em;
    margin: 22px 0 10px;
}
.feature p { font-size: 13px; }

/* Avisos y notas */
.notice {
    padding: 22px 24px;
    background: rgba(142, 187, 210, .065);
    border: 1px solid rgba(142, 187, 210, .19);
    border-radius: 13px;
    margin: 35px 0;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.notice p {
    color: #d0d0d4;
    margin: 5px 0 0;
}
.fine-print {
    font-size: 12px;
    color: #b4b4bb;
    max-width: 760px;
    margin-top: 28px;
}

/* Política de privacidad */
.policy { max-width: 850px; }
.policy h1 { margin-bottom: 8px; }
.policy-date { font-size: 12px; color: var(--muted); }
.policy h2 {
    font-size: 21px;
    letter-spacing: -.025em;
    margin: 38px 0 10px;
}
.policy p { color: #d0d0d4; }

.warning {
    border-color: rgba(240, 190, 110, .3);
    background: rgba(150, 105, 42, .09);
}
.warning strong { color: #e8c68e; }

/* Contacto */
.contact-page { min-height: 66vh; }
.contact-email {
    display: inline-flex;
    gap: 25px;
    align-items: center;
    font: 700 clamp(20px, 4vw, 32px) Manrope;
    margin-top: 35px;
    border-bottom: 1px solid rgba(142, 187, 210, .55);
    padding-bottom: 10px;
}
.contact-email:hover { border-color: var(--accent2); }

/* Accesibilidad */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}
::selection {
    background: rgba(142, 187, 210, .3);
    color: #ffffff;
}

/* Diseño adaptable */
@media (max-width: 700px) {
    .site-header {
        padding: 17px 20px;
        align-items: center;
        gap: 14px;
    }
    nav {
        gap: 13px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    nav a { font-size: 11px; }
    .hero {
        padding: 86px 22px 100px;
        min-height: 510px;
    }
    .hero-orbit {
        opacity: .42;
        right: -310px;
    }
    .section { padding: 55px 22px 75px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 10px; }
    .project-card {
        padding: 23px;
        gap: 17px;
        flex-wrap: wrap;
    }
    .project-tag { margin-left: 0; }
    .feature-grid {
        grid-template-columns: 1fr;
        margin: 40px 0;
    }
    .about-band { padding: 65px 22px; }
    .site-footer {
        padding: 25px 20px;
        gap: 18px;
    }
    .site-footer small { width: 100%; }
    .subpage,
    .policy { padding: 45px 22px 80px; }
    .back-link { margin-bottom: 35px; }
}

/* Respeto por movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
