/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
    --bg: #061b18;
    --bg-deep: #03110f;
    --surface: rgba(8, 39, 34, 0.72);

    --text: #f4fbf8;
    --text-soft: #a9c3ba;

    --green: #78e68f;
    --green-bright: #a5ff9d;
    --turquoise: #42e0d0;
    --blue: #54bfff;
    --violet: #b66cff;
    --gold: #f2c66d;

    --border: rgba(190, 255, 228, 0.18);

    --header-height: 76px;

    --transition: 250ms ease;
}


/* ==========================================================================
   2. Reset y base
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(circle at 50% 40%,
            #103c34 0%,
            #071f1b 35%,
            #03110f 75%);

    overflow-x: hidden;
}

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

button,
input {
    font: inherit;
}


/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;
    width: 100%;

    background: rgba(3, 17, 15, 0.64);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(1400px, calc(100% - 48px));
    height: var(--header-height);

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ==========================================================================
   4. Marca
   ========================================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand__icon {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;

    font-size: 25px;

    border-radius: 50%;

    background:
        radial-gradient(circle at 35% 30%,
            #a5ff9d,
            #399f5b 65%,
            #17693c);

    box-shadow:
        0 0 22px rgba(120, 230, 143, 0.26);
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__text strong {
    font-size: 1.1rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.brand__text small {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 0.64rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}


/* ==========================================================================
   5. Acciones del header
   ========================================================================== */

.header-actions {
    display: flex;
    gap: 10px;
}

.header-action {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    color: var(--text);

    font-size: 25px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border);
    border-radius: 14px;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.header-action:hover {
    transform: translateY(-2px);

    background: rgba(120, 230, 143, 0.09);

    border-color: rgba(120, 230, 143, 0.55);

    box-shadow:
        0 0 22px rgba(120, 230, 143, 0.12);
}


/* Cuadrícula tipo Google */

.apps-grid {
    width: 20px;
    height: 20px;

    display: grid;

    grid-template-columns: repeat(3, 4px);
    grid-template-rows: repeat(3, 4px);

    gap: 4px;
}

.apps-grid i {
    width: 4px;
    height: 4px;

    display: block;

    border-radius: 50%;

    background: currentColor;
}


/* ==========================================================================
   6. Home orbital
   ========================================================================== */

.site-main {
    min-height: 100vh;
}

.home-orbit {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: var(--header-height);

    isolation: isolate;

    overflow: hidden;
}


/* ==========================================================================
   7. Fondo
   ========================================================================== */

.home-orbit__background {
    position: absolute;
    z-index: -5;

    inset: 0;

    background:
        radial-gradient(circle at 12% 60%,
            rgba(44, 137, 75, 0.18),
            transparent 30%),
        radial-gradient(circle at 88% 25%,
            rgba(63, 182, 165, 0.14),
            transparent 27%),
        radial-gradient(circle at 50% 45%,
            rgba(41, 125, 103, 0.18),
            transparent 42%),
        linear-gradient(135deg,
            #03110f,
            #08231e 45%,
            #031411);
}

.home-orbit::before,
.home-orbit::after {
    content: "";

    position: absolute;
    z-index: -4;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.14;

    pointer-events: none;
}

.home-orbit::before {
    left: -220px;
    bottom: -180px;

    background: var(--green);
}

.home-orbit::after {
    right: -220px;
    top: 60px;

    background: var(--turquoise);
}


/* ==========================================================================
   8. Escena
   ========================================================================== */

.home-orbit__scene {
    position: relative;

    width: min(1180px, 92vw);
    height: 680px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   9. Líneas orbitales
   ========================================================================== */

.orbit-line {
    position: absolute;

    top: 50%;
    left: 50%;

    border: 1px solid rgba(111, 255, 211, 0.16);

    border-radius: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.orbit-line--one {
    width: 850px;
    height: 400px;

    transform:
        translate(-50%, -50%) rotate(-8deg);
}

.orbit-line--two {
    width: 950px;
    height: 500px;

    border-color: rgba(94, 181, 255, 0.10);

    transform:
        translate(-50%, -50%) rotate(9deg);
}


/* ==========================================================================
   10. Núcleo
   ========================================================================== */

.home-core {
    position: relative;
    z-index: 10;

    width: 470px;
    height: 470px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 45px;

    text-align: center;

    border: 1px solid rgba(119, 255, 203, 0.27);
    border-radius: 50%;

    background:
        radial-gradient(circle at 50% 35%,
            rgba(37, 111, 90, 0.78),
            rgba(7, 35, 30, 0.88) 52%,
            rgba(3, 17, 15, 0.96) 78%);

    box-shadow:
        inset 0 0 70px rgba(89, 232, 174, 0.08),
        0 0 45px rgba(49, 198, 151, 0.12),
        0 0 110px rgba(49, 198, 151, 0.07);
}

.home-core::before,
.home-core::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.home-core::before {
    inset: -15px;

    border:
        1px solid rgba(95, 224, 191, 0.12);
}

.home-core::after {
    inset: 18px;

    border:
        1px solid rgba(166, 255, 220, 0.06);
}

.home-core__symbol {
    margin-bottom: 10px;

    font-size: 40px;

    filter:
        drop-shadow(0 0 12px rgba(120, 230, 143, 0.35));
}

.home-core h1 {
    margin: 0 0 26px;

    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.98;

    letter-spacing: -0.055em;
}


/* ==========================================================================
   11. Buscador central
   ========================================================================== */

.home-search {
    position: relative;
    z-index: 20;

    width: 520px;
    height: 58px;

    display: flex;
    align-items: center;

    padding-left: 19px;

    background: rgba(247, 255, 251, 0.97);

    border:
        2px solid rgba(102, 239, 184, 0.8);

    border-radius: 100px;

    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.26),
        0 0 28px rgba(79, 222, 166, 0.16);
}

.home-search__icon {
    flex: 0 0 auto;

    color: #174f43;

    font-size: 25px;
}

.home-search input {
    width: 100%;

    padding: 0 14px;

    color: #17342e;

    background: transparent;

    border: 0;
    outline: 0;
}

.home-search input::placeholder {
    color: #6f817d;
}

.home-search button {
    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    margin-right: 4px;

    display: grid;
    place-items: center;

    color: #fff;

    font-size: 25px;

    background:
        linear-gradient(135deg,
            #2d9b72,
            #17775f);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.home-search button:hover {
    transform: scale(1.06);

    box-shadow:
        0 0 20px rgba(49, 198, 151, 0.4);
}


/* ==========================================================================
   12. Sugerencias
   ========================================================================== */

.home-suggestions {
    position: relative;
    z-index: 20;

    margin-top: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 7px;

    color: var(--text-soft);

    font-size: 0.76rem;
}

.home-suggestions a {
    padding: 5px 9px;

    color: #dff9ee;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(183, 255, 226, 0.12);

    border-radius: 100px;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.home-suggestions a:hover {
    background:
        rgba(120, 230, 143, 0.13);

    border-color:
        rgba(120, 230, 143, 0.42);
}


/* ==========================================================================
   13. Elementos orbitales
   ========================================================================== */

.orbit-item {
    position: absolute;
    z-index: 15;

    width: 180px;
    height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 22px;

    text-align: center;

    border: 1px solid currentColor;
    border-radius: 50%;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.orbit-item::before {
    content: "";

    position: absolute;

    inset: 8px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 50%;
}

.orbit-item:hover {
    transform: scale(1.07);

    filter: brightness(1.13);
}

.orbit-item__icon {
    position: relative;
    z-index: 2;

    margin-bottom: 7px;

    font-size: 37px;
}

.orbit-item strong {
    position: relative;
    z-index: 2;

    display: block;

    color: #fff;

    font-size: 1.08rem;
}

.orbit-item small {
    position: relative;
    z-index: 2;

    margin-top: 5px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.67rem;
    line-height: 1.35;
}


/* Temas */

.orbit-item--topics {
    top: 35px;
    left: 145px;

    color: #f3a66c;

    background:
        radial-gradient(circle at 40% 30%,
            rgba(244, 152, 91, 0.35),
            rgba(77, 39, 25, 0.58));

    box-shadow:
        inset 0 0 35px rgba(255, 165, 104, 0.18),
        0 0 25px rgba(255, 147, 80, 0.18);
}


/* Plantas */

.orbit-item--plants {
    top: 270px;
    left: 20px;

    color: #8dec7f;

    background:
        radial-gradient(circle at 40% 30%,
            rgba(89, 201, 91, 0.38),
            rgba(20, 72, 35, 0.65));

    box-shadow:
        inset 0 0 35px rgba(109, 238, 112, 0.16),
        0 0 25px rgba(109, 238, 112, 0.17);
}


/* Preparaciones */

.orbit-item--preparations {
    bottom: 8px;
    left: 50%;

    color: var(--gold);

    background:
        radial-gradient(circle at 40% 30%,
            rgba(220, 173, 73, 0.37),
            rgba(77, 57, 18, 0.62));

    box-shadow:
        inset 0 0 35px rgba(242, 198, 109, 0.15),
        0 0 25px rgba(242, 198, 109, 0.16);

    transform: translateX(-50%);
}

.orbit-item--preparations:hover {
    transform:
        translateX(-50%) scale(1.07);
}


/* Artículos */

.orbit-item--articles {
    top: 270px;
    right: 20px;

    color: var(--blue);

    background:
        radial-gradient(circle at 40% 30%,
            rgba(67, 167, 227, 0.38),
            rgba(16, 58, 84, 0.65));

    box-shadow:
        inset 0 0 35px rgba(84, 191, 255, 0.15),
        0 0 25px rgba(84, 191, 255, 0.16);
}


/* Fuentes */

.orbit-item--sources {
    top: 35px;
    right: 145px;

    color: var(--violet);

    background:
        radial-gradient(circle at 40% 30%,
            rgba(164, 89, 225, 0.40),
            rgba(58, 26, 84, 0.65));

    box-shadow:
        inset 0 0 35px rgba(182, 108, 255, 0.16),
        0 0 25px rgba(182, 108, 255, 0.17);
}


/* ==========================================================================
   14. Explorar
   ========================================================================== */

.home-explore {
    position: absolute;

    left: 38px;
    bottom: 32px;

    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--text-soft);

    font-size: 0.9rem;
}

.home-explore span {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: var(--text);

    border:
        1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    transition:
        border-color var(--transition),
        transform var(--transition);
}

.home-explore:hover span {
    transform: translateY(3px);

    border-color: var(--green);
}


/* ==========================================================================
   15. Mensaje
   ========================================================================== */

.home-message {
    position: absolute;

    right: 45px;
    bottom: 32px;

    margin: 0;

    color:
        rgba(222, 247, 235, 0.58);

    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.45;

    text-align: right;
}


/* ==========================================================================
   16. Footer provisional
   ========================================================================== */




/* ==========================================================================
   17. Menú de aplicaciones
   ========================================================================== */

.apps-menu {
    position: fixed;
    z-index: 1100;

    top: calc(var(--header-height) + 12px);
    right: 24px;

    width: 360px;

    padding: 18px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    background:
        linear-gradient(145deg,
            rgba(10, 43, 37, 0.94),
            rgba(4, 24, 21, 0.96));

    border: 1px solid rgba(178, 255, 224, 0.18);
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.apps-menu[hidden] {
    display: none;
}

.apps-menu__item {
    min-height: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12px 8px;

    text-align: center;

    border: 1px solid transparent;
    border-radius: 18px;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.apps-menu__item:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.055);

    border-color: rgba(174, 255, 220, 0.12);
}

.apps-menu__icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin-bottom: 9px;

    font-size: 22px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.07);
}

.apps-menu__item strong {
    font-size: 0.82rem;
}

.apps-menu__item small {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 0.62rem;
    line-height: 1.25;
}

.apps-menu__icon--topics {
    color: #ffad73;
    background: rgba(255, 157, 91, 0.13);
}

.apps-menu__icon--plants {
    color: var(--green);
    background: rgba(120, 230, 143, 0.12);
}

.apps-menu__icon--preparations {
    color: var(--gold);
    background: rgba(242, 198, 109, 0.12);
}

.apps-menu__icon--articles {
    color: var(--blue);
    background: rgba(84, 191, 255, 0.12);
}

.apps-menu__icon--sources {
    color: var(--violet);
    background: rgba(182, 108, 255, 0.12);
}

.apps-menu__icon--explore {
    color: var(--turquoise);
    background: rgba(66, 224, 208, 0.12);
}

/* 18. Iconografía SVG de las esferas orbitales */
.orbit-item__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

.orbit-item__icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 9px currentColor);
}

.orbit-item:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 5px;
}


/* ========================================================================== 
   18. Esferas orbitales: acabado cristal 3D
   Añadir al FINAL de assets/css/styles.css
   ========================================================================== */

.orbit-item {
    isolation: isolate;
    overflow: hidden;
    border-color: color-mix(in srgb, currentColor 78%, transparent);
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, .20),
        inset 0 -18px 32px rgba(0, 0, 0, .20),
        inset 12px 0 28px rgba(255, 255, 255, .045),
        0 10px 32px rgba(0, 0, 0, .26),
        0 0 24px color-mix(in srgb, currentColor 24%, transparent);
    transition:
        transform 250ms ease,
        filter 250ms ease,
        box-shadow 250ms ease;
}

/* Luz reflejada en la superficie, sin bloquear los clics. */
.orbit-item::before {
    inset: 7px;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, .19);
    background: radial-gradient(ellipse at 38% 6%, rgba(255, 255, 255, .12), transparent 58%);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .045);
    pointer-events: none;
}

.orbit-item::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 8%;
    left: 19%;
    width: 62%;
    height: 24%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, .16), transparent 72%);
    filter: blur(9px);
    pointer-events: none;
}

.orbit-item__icon,
.orbit-item strong,
.orbit-item small {
    position: relative;
    z-index: 1;
}

/* Mantiene el color propio de cada módulo, pero añade profundidad. */
.orbit-item--topics {
    background-color: rgba(95, 52, 32, .72);
}

.orbit-item--plants {
    background-color: rgba(25, 89, 47, .72);
}

.orbit-item--preparations {
    background-color: rgba(93, 72, 28, .72);
}

.orbit-item--articles {
    background-color: rgba(18, 76, 109, .72);
}

.orbit-item--sources {
    background-color: rgba(79, 39, 115, .72);
}

.orbit-item:hover,
.orbit-item:focus-visible {
    filter: brightness(1.13) saturate(1.12);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .28),
        inset 0 -18px 32px rgba(0, 0, 0, .18),
        0 14px 38px rgba(0, 0, 0, .30),
        0 0 38px color-mix(in srgb, currentColor 40%, transparent);
}

/* Preparaciones tiene un translateX(-50%) que no debemos perder. */
.orbit-item--preparations:hover,
.orbit-item--preparations:focus-visible {
    transform: translateX(-50%) scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
    .orbit-item {
        transition: none;
    }
}



/* ==========================================================================
   19. Núcleo central - Cristal tridimensional
   ========================================================================== */

.home-core {
    background:
        radial-gradient(ellipse at 35% 17%,
            rgba(174, 255, 224, 0.20) 0%,
            transparent 43%),
        radial-gradient(circle at 75% 78%,
            rgba(0, 151, 155, 0.16),
            transparent 54%),
        radial-gradient(circle at 50% 40%,
            rgba(21, 101, 91, 0.82) 0%,
            rgba(7, 52, 48, 0.91) 49%,
            rgba(2, 24, 25, 0.97) 82%);

    border: 1px solid rgba(148, 255, 229, 0.38);

    box-shadow:
        inset 0 3px 12px rgba(198, 255, 237, 0.12),
        inset 0 -30px 65px rgba(0, 9, 13, 0.48),
        inset 15px 0 45px rgba(35, 202, 165, 0.08),
        0 0 36px rgba(57, 224, 193, 0.16),
        0 0 100px rgba(31, 171, 152, 0.10);
}

/* Reflejo sobre la superficie de cristal */
.home-core::before {
    inset: 7px;

    border: 1px solid rgba(207, 255, 246, 0.16);

    background:
        radial-gradient(ellipse at 48% 4%,
            rgba(219, 255, 247, 0.17),
            transparent 42%);

    box-shadow:
        inset 0 12px 20px rgba(166, 255, 231, 0.035);

    z-index: 0;
}

/* Anillo luminoso exterior */
.home-core::after {
    inset: -14px;

    border: 1px solid rgba(91, 235, 218, 0.20);

    background: transparent;

    box-shadow:
        0 0 25px rgba(60, 230, 204, 0.07),
        inset 0 0 20px rgba(60, 230, 204, 0.045);

    z-index: -1;
}

/* Mantener el contenido por encima de los reflejos */
.home-core__symbol,
.home-core h1,
.home-search,
.home-suggestions {
    position: relative;
    z-index: 2;
}

/* Detalle luminoso del símbolo botánico */
.home-core__symbol {
    filter:
        drop-shadow(0 0 12px rgba(149, 255, 171, 0.48)) drop-shadow(0 0 25px rgba(71, 224, 168, 0.22));
}


/* ==========================================================================
   20. Órbitas luminosas animadas
   ========================================================================== */

/* Permite colocar los puntos sobre cada órbita */
.orbit-line {
    overflow: visible;
}

/* Punto luminoso que recorre la elipse */
.orbit-light {
    position: absolute;

    width: 9px;
    height: 9px;

    top: 50%;
    left: 50%;

    border-radius: 50%;
    pointer-events: none;

    offset-path: ellipse(50% 50% at 50% 50%);
    offset-rotate: 0deg;

    animation: orbit-travel 24s linear infinite;
}

/* Luz verde turquesa */
.orbit-light--green {
    background: #a5ffe0;

    box-shadow:
        0 0 8px 3px rgba(165, 255, 224, 0.65),
        0 0 22px 7px rgba(70, 231, 184, 0.25);

    animation-duration: 24s;
}

/* Luz dorada */
.orbit-light--gold {
    background: #ffe4a0;

    box-shadow:
        0 0 8px 3px rgba(255, 228, 160, 0.65),
        0 0 22px 7px rgba(242, 198, 109, 0.25);

    animation-duration: 34s;
    animation-direction: reverse;
}

@keyframes orbit-travel {
    from {
        offset-distance: 0%;
    }

    to {
        offset-distance: 100%;
    }
}

/* Accesibilidad: respetar movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .orbit-light {
        animation: none;
        opacity: 0.65;
    }
}


/* ==========================================================================
   21. Seis mini esferas orbitales
   ========================================================================== */

/* Tamaño y apariencia tridimensional */
.orbit-light {
    width: 8px;
    height: 8px;

    margin: -4px 0 0 -4px;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;

    offset-rotate: 0deg;

    background:
        radial-gradient(circle at 30% 25%,
            #ffffff,
            var(--orb-color) 48%,
            var(--orb-dark) 100%);

    box-shadow:
        0 0 7px 2px var(--orb-glow),
        0 0 15px 3px var(--orb-glow);
}

/* Primera órbita: sentido horario */
.orbit-line--one .orbit-light {
    animation-duration: 28s;
    animation-direction: normal;
}

/* Segunda órbita: sentido contrario */
.orbit-line--two .orbit-light {
    animation-duration: 38s;
    animation-direction: reverse;
}

/* Separación uniforme de 120 grados */
.orbit-line .orbit-light:nth-child(1) {
    animation-delay: 0s;
}

.orbit-line .orbit-light:nth-child(2) {
    animation-delay: -9.333333s;
}

.orbit-line .orbit-light:nth-child(3) {
    animation-delay: -18.666667s;
}

/* Segunda órbita: ajustar separación a su velocidad */
.orbit-line--two .orbit-light:nth-child(2) {
    animation-delay: -12.666667s;
}

.orbit-line--two .orbit-light:nth-child(3) {
    animation-delay: -25.333333s;
}

/* Colores individuales */

.orbit-light--green {
    --orb-color: #a5ffe0;
    --orb-dark: #278e71;
    --orb-glow: rgba(89, 255, 184, 0.55);
}

.orbit-light--turquoise {
    --orb-color: #55f5e4;
    --orb-dark: #126d78;
    --orb-glow: rgba(85, 245, 228, 0.55);
}

.orbit-light--blue {
    --orb-color: #78cfff;
    --orb-dark: #225f9c;
    --orb-glow: rgba(84, 191, 255, 0.55);
}

.orbit-light--gold {
    --orb-color: #ffe4a0;
    --orb-dark: #a87822;
    --orb-glow: rgba(242, 198, 109, 0.55);
}

.orbit-light--violet {
    --orb-color: #d8a5ff;
    --orb-dark: #7644ad;
    --orb-glow: rgba(182, 108, 255, 0.55);
}

.orbit-light--orange {
    --orb-color: #ffbd86;
    --orb-dark: #a4522c;
    --orb-glow: rgba(255, 157, 91, 0.55);
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .orbit-light {
        animation: none;
        opacity: 0.65;
    }
}


/* ==========================================================================
   22. Atmósfera botánica - Fondo ambiental
   ========================================================================== */

.home-orbit__background {
    background:
        /* Luz vegetal inferior izquierda */
        radial-gradient(ellipse at 0% 90%,
            rgba(49, 130, 72, 0.30) 0%,
            rgba(21, 82, 52, 0.14) 28%,
            transparent 55%),

        /* Luz vegetal lateral derecha */
        radial-gradient(ellipse at 100% 75%,
            rgba(24, 105, 82, 0.24) 0%,
            transparent 46%),

        /* Reflejo turquesa superior */
        radial-gradient(ellipse at 70% 5%,
            rgba(36, 151, 139, 0.14) 0%,
            transparent 48%),

        /* Iluminación detrás del núcleo */
        radial-gradient(circle at 50% 45%,
            rgba(31, 115, 99, 0.20) 0%,
            transparent 48%),

        /* Fondo principal */
        linear-gradient(135deg,
            #03110f 0%,
            #08231e 45%,
            #031411 100%);
}

/* Profundidad ambiental */
.home-orbit__background::before,
.home-orbit__background::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

/* Resplandor vegetal izquierdo */
.home-orbit__background::before {
    width: 480px;
    height: 580px;

    left: -290px;
    bottom: -210px;

    background:
        radial-gradient(ellipse,
            rgba(75, 166, 90, 0.20),
            transparent 70%);

    filter: blur(35px);
}

/* Resplandor botánico derecho */
.home-orbit__background::after {
    width: 430px;
    height: 500px;

    right: -270px;
    top: 80px;

    background:
        radial-gradient(ellipse,
            rgba(39, 166, 140, 0.15),
            transparent 70%);

    filter: blur(40px);
}



/* ==========================================================================
   24. Fondo botánico intercambiable por temporada
   ========================================================================== */

.home-orbit__background {
    background-image:
        linear-gradient(rgba(2, 20, 17, 0.16),
            rgba(2, 20, 17, 0.30)),
        url("../images/fondos/home-natural.webp");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* La imagen no interfiere con los elementos interactivos */
.home-orbit__background {
    pointer-events: none;
}



/* ==========================================================================
   24. Ajuste de altura para pantallas de escritorio
   ========================================================================== */

@media (min-width: 1024px) and (max-height: 800px) {

    .home-orbit__scene {
        transform: scale(0.84);
        transform-origin: center center;
    }

    .home-orbit {
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
    }

}



/* ==========================================================================
   25. Ajuste vertical del contenido central
   ========================================================================== */

@media (min-width: 1024px) and (max-height: 800px) {

    .home-core__symbol,
    .home-core h1,
    .home-search,
    .home-suggestions {
        translate: 0 -20px;
    }
}




/* ==========================================================================
   26. Home móvil - concepto Galaxy Watch
   Añadir al FINAL de styles.css. No modifica escritorio.
   ========================================================================== */
@media (max-width: 600px) {
    :root {
        --header-height: 64px;
    }

    .site-header__inner {
        width: calc(100% - 24px);
    }

    .brand {
        gap: 7px;
        min-width: 0;
    }

    .brand__icon {
        width: 38px;
        height: 38px;
        font-size: 22px;
        flex: 0 0 auto;
    }

    .brand__text strong {
        font-size: .85rem;
    }

    .brand__text small {
        font-size: .46rem;
        letter-spacing: .035em;
    }

    .header-actions {
        gap: 6px;
        flex: 0 0 auto;
    }

    .header-action {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .home-orbit {
        min-height: 100svh;
        height: auto;
        padding: calc(var(--header-height) + 18px) 12px 75px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }

    .home-orbit__scene {
        width: 100%;
        max-width: 440px;
        height: auto;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: 4px;
        row-gap: 20px;
        justify-items: center;
        align-items: center;
        transform: none;
    }

    .orbit-line {
        display: none;
    }

    .home-core {
        grid-column: 1 / -1;
        grid-row: 1;
        width: min(310px, calc(100vw - 66px));
        height: min(310px, calc(100vw - 66px));
        min-width: 0;
        padding: 28px 8px;
        margin: 0 auto 2px;
        transform: none;
    }

    .home-core__symbol {
        font-size: 31px;
        margin-bottom: 9px;
        translate: none;
    }

    .home-core h1 {
        font-size: clamp(1.65rem, 7.2vw, 2.15rem);
        line-height: 1.02;
        margin: 0 0 19px;
        translate: none;
    }

    .home-search {
        width: min(350px, calc(100vw - 32px));
        height: 49px;
        padding-left: 13px;
        flex-shrink: 0;
        translate: none;
    }

    .home-search__icon {
        font-size: 21px;
    }

    .home-search input {
        min-width: 0;
        padding: 0 8px;
        font-size: .77rem;
        text-overflow: ellipsis;
    }

    .home-search button {
        width: 39px;
        height: 39px;
        font-size: 21px;
    }

    .home-suggestions {
        width: min(340px, calc(100vw - 30px));
        margin-top: 13px;
        gap: 4px;
        font-size: .65rem;
        translate: none;
    }

    .home-suggestions a {
        padding: 4px 6px;
    }

    /* Dock circular: cinco accesos en una sola fila */
    .orbit-item,
    .orbit-item--topics,
    .orbit-item--plants,
    .orbit-item--preparations,
    .orbit-item--articles,
    .orbit-item--sources {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        grid-row: 2;
        width: min(65px, calc((100vw - 48px) / 5));
        height: min(65px, calc((100vw - 48px) / 5));
        min-width: 0;
        padding: 5px;
        margin: 0;
        transform: none;
        overflow: visible;
        backdrop-filter: blur(8px);
    }

    .orbit-item--topics {
        grid-column: 1;
    }

    .orbit-item--plants {
        grid-column: 2;
    }

    .orbit-item--preparations {
        grid-column: 3;
    }

    .orbit-item--articles {
        grid-column: 4;
    }

    .orbit-item--sources {
        grid-column: 5;
    }

    .orbit-item__icon {
        width: 35px;
        height: 35px;
        margin: 0;
    }

    .orbit-item__icon img {
        width: 33px;
        height: 33px;
    }

    .orbit-item strong {
        position: absolute;
        top: calc(100% + 7px);
        left: 50%;
        width: 90px;
        max-width: 19vw;
        transform: translateX(-50%);
        font-size: .62rem;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .orbit-item small {
        display: none;
    }

    .orbit-item:hover,
    .orbit-item:focus-visible,
    .orbit-item--preparations:hover,
    .orbit-item--preparations:focus-visible {
        transform: scale(1.06);
    }

    .home-explore {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 55px auto 0;
        font-size: .82rem;
    }

    .home-message {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 20px auto 0;
        max-width: 280px;
        text-align: center;
        font-size: .85rem;
    }

    .apps-menu {
        top: calc(var(--header-height) + 8px);
        right: 10px;
        width: min(350px, calc(100vw - 20px));
        padding: 10px;
        gap: 4px;
    }

    .apps-menu__item {
        min-height: 100px;
        padding: 9px 4px;
    }
}

@media (max-width: 360px) {
    .brand__text small {
        display: none;
    }

    .home-core {
        width: 285px;
        height: 285px;
    }

    .home-core h1 {
        font-size: 1.6rem;
    }

    .home-suggestions {
        font-size: .6rem;
    }

    .home-suggestions a {
        padding: 4px 5px;
    }

    .orbit-item strong {
        font-size: .57rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-item {
        transition: none;
    }
}



/* ==========================================================================
   27. Móvil Galaxy Watch: dock curvo y órbitas animadas
   Añadir DESPUÉS de la sección 26. Escritorio no se modifica.
   ========================================================================== */
@media (max-width: 600px) {
    .home-orbit__scene {
        row-gap: 64px;
        isolation: isolate;
    }

    /* Núcleo un poco más pequeño: deja espacio para las órbitas */
    .home-core {
        width: min(270px, calc(100vw - 88px));
        height: min(270px, calc(100vw - 88px));
        padding: 22px 7px;
        margin-bottom: 0;
    }

    .home-core__symbol {
        font-size: 27px;
        margin-bottom: 6px;
    }

    .home-core h1 {
        font-size: clamp(1.45rem, 6.3vw, 1.8rem);
        margin-bottom: 16px;
    }

    .home-search {
        height: 47px;
    }

    .home-suggestions {
        margin-top: 12px;
    }

    /* Órbitas en torno al núcleo; seis luces existentes, sin nuevo HTML */
    .orbit-line {
        display: block;
        position: absolute;
        top: calc(min(270px, 100vw - 88px) / 2);
        left: 50%;
        z-index: 1;
        pointer-events: none;
        overflow: visible;
    }

    .orbit-line--one {
        width: min(340px, calc(100vw - 16px));
        height: 250px;
        transform: translate(-50%, -50%) rotate(-12deg);
        border-color: rgba(111, 255, 211, .22);
    }

    .orbit-line--two {
        width: min(355px, calc(100vw - 10px));
        height: 315px;
        transform: translate(-50%, -50%) rotate(12deg);
        border-color: rgba(94, 181, 255, .16);
    }

    .orbit-light {
        width: 6px;
        height: 6px;
        margin: -3px 0 0 -3px;
        box-shadow: 0 0 5px 1px var(--orb-glow);
    }

    /* Curva en U muy suave, como el dock del concepto original */
    .orbit-item--topics {
        translate: 0 -13px;
    }

    .orbit-item--plants {
        translate: 0 5px;
    }

    .orbit-item--preparations {
        translate: 0 14px;
    }

    .orbit-item--articles {
        translate: 0 5px;
    }

    .orbit-item--sources {
        translate: 0 -13px;
    }

    .home-explore {
        margin-top: 66px;
    }
}

@media (max-width: 360px) {
    .home-core {
        width: 260px;
        height: 260px;
    }

    .orbit-line {
        top: 130px;
    }

    .home-orbit__scene {
        row-gap: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-light {
        animation: none;
    }
}



/* ==========================================================================
   28. Ajuste vertical del núcleo orbital móvil
   ========================================================================== */

@media (max-width: 600px) {

    /* Desplazar la esfera central y sus órbitas */
    .home-core,
    .orbit-line {
        translate: 0 30px;
    }

}


/* Footer global: solo visible en páginas interiores */
.site-footer {
    display: block;
    background: #061f19;
    border-top: 1px solid rgba(149, 230, 188, .18);
    color: #d1e8da;
}

.site-footer__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 22px;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1.2fr;
    gap: 40px;
}

.site-footer__brand {
    margin: 0 0 12px;
    color: #f1fff5;
    font-size: 1.25rem;
    font-weight: 700;
}

.site-footer__columns h2 {
    margin: 0 0 14px;
    color: #f1fff5;
    font-size: 1rem;
}

.site-footer__columns p {
    margin: 0;
    line-height: 1.7;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer__nav h2 {
    margin-bottom: 4px;
}

.site-footer__nav a {
    color: #b6e9c8;
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__nav a:focus-visible {
    outline: 2px solid #87e6a7;
    outline-offset: 4px;
}

.site-footer__bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(149, 230, 188, .16);
    color: #a9c9b8;
}

@media (max-width: 700px) {
    .site-footer__inner {
        width: min(100% - 32px, 1200px);
        padding-top: 32px;
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__bottom {
        margin-top: 28px;
    }
}