
/* PARA GABY — DESIGN SYSTEM V1 */

:root {
    --gaby-navy: #143c65;
    --gaby-ink: #102f50;
    --gaby-sky: #e9f5fd;
    --gaby-cream: #fff5dc;
    --gaby-muted: #68839c;
    --gaby-line: #e0eaf3;
    --gaby-shadow: 0 9px 25px rgba(26,66,105,.07);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: #edf4fb;
    color: var(--gaby-ink);
}

.gaby-icon {
    width: 23px;
    height: 23px;
    display: inline-block;
    flex: none;
    vertical-align: middle;
}

.app-shell {
    max-width: 460px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.topbar {
    align-items: center;
    margin-bottom: 24px;
}

.topbar h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.045em;
}

.topbar .small-label {
    letter-spacing: .16em;
}

.avatar {
    background: linear-gradient(145deg,#70b7e5,#a8dafa);
    box-shadow: 0 4px 15px rgba(43,126,188,.16);
}

.cruise-card,
.quote-card,
.action-card,
.mini-card,
.project-card {
    border-radius: 22px;
    box-shadow: var(--gaby-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cruise-card {
    padding: 19px;
    border-color: #d5eaf8;
}

.cruise-card::after {
    content: none;
}

.cruise-icon,
.action-icon {
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.9);
    color: var(--gaby-navy);
}

.cruise-icon .gaby-icon {
    width: 26px;
    height: 26px;
}

.quote-card {
    padding: 23px;
    background: linear-gradient(145deg,#fffaf0,#fff2d1);
}

.quote-card blockquote {
    font-size: 1.08rem;
    line-height: 1.55;
    letter-spacing: -.015em;
}

.quote-footer form {
    margin: 0;
}

.heart-button {
    color: #b98a2d;
    font-size: 1.3rem;
}

.section {
    margin-top: 32px;
}

.section-heading h2 {
    font-size: 1.13rem;
}

.action-grid,
.horizontal-cards {
    gap: 12px;
}

.action-card {
    min-height: 150px;
    padding: 17px;
    border-color: rgba(190,216,234,.65);
}

.action-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
}

.action-card strong,
.mini-card strong {
    font-size: .89rem;
    letter-spacing: -.01em;
}

.action-card small,
.mini-card small {
    font-size: .71rem;
    line-height: 1.45;
}

.mini-card {
    min-height: 143px;
    padding: 18px;
}

.mini-card > span {
    display: inline-flex;
    color: var(--gaby-navy);
}

.mini-card > span .gaby-icon {
    width: 25px;
    height: 25px;
}

.project-card {
    padding: 22px;
}

.project-plant {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 14px;
    background: white;
    color: #477e68;
}

.bottom-nav {
    width: calc(100% - 24px);
    max-width: 436px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    border: 1px solid #e0eaf3;
    border-radius: 23px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -3px 25px rgba(21,60,101,.09);
}

.bottom-nav a {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 15px;
    text-align: center;
}

.bottom-nav a span {
    display: grid;
    place-items: center;
    color: #6586a5;
}

.bottom-nav a.active {
    background: #e8f4fd;
    color: #143c65;
}

.bottom-nav a.active span {
    color: #143c65;
}

.bottom-nav small {
    font-size: 10px;
    white-space: nowrap;
}

.bottom-nav .gaby-icon {
    width: 21px;
    height: 21px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #80bee7;
    outline-offset: 3px;
}

/* Biblioteca de frases */

.page {
    max-width: 460px !important;
    padding: 28px 20px 90px !important;
}

.page h1 {
    font-size: 30px;
    letter-spacing: -.045em;
}

.page .intro {
    line-height: 1.65;
}

.page .composer,
.page .quote {
    border-radius: 22px;
    box-shadow: var(--gaby-shadow);
}

.page .composer {
    background: #e8f4fd;
    padding: 20px;
}

.page .quote {
    padding: 21px;
}

.page .quote-text {
    font-size: 17px;
    line-height: 1.6;
}

.page .primary {
    min-height: 49px;
    border-radius: 13px;
    background: var(--gaby-navy);
}

.page .filter {
    gap: 8px;
}

.page .filter button {
    min-width: 0;
    padding: 13px 7px;
    font-size: 12px;
    border-radius: 13px;
}

.page .actions {
    gap: 10px;
}

.page .actions button {
    min-height: 40px;
}

@media (max-width: 370px) {
    .app-shell {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .bottom-nav small {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* Refinamiento móvil */

.app-shell {
    padding-top: max(24px, env(safe-area-inset-top));
}

.topbar {
    margin-bottom: 20px;
}

.action-card {
    min-height: 142px;
    justify-content: space-between;
}

.action-icon {
    margin-bottom: 12px;
}

.action-card strong {
    line-height: 1.3;
}

.quote-card {
    padding: 22px;
}

.quote-card blockquote {
    margin-top: 15px;
    margin-bottom: 20px;
}

.quote-footer {
    min-height: 42px;
}

.section {
    margin-top: 29px;
}

/* Mis palabras */

.page {
    background: #f7fbff !important;
}

.page .back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    color: #3979a9;
    font-weight: 600;
}

.page h1 {
    margin-bottom: 9px;
    color: #102f50;
}

.page .intro {
    margin-bottom: 25px;
    color: #71869a;
}

.page .composer {
    padding: 20px;
    border: 1px solid #dcebf6;
}

.page .composer h2 {
    font-size: 17px;
    margin-bottom: 14px;
}

.page textarea {
    border-radius: 14px;
    padding: 15px;
    line-height: 1.5;
}

.page .filter {
    margin: 22px 0;
}

.page .filter button {
    min-height: 46px;
    font-weight: 600;
}

.page .quote {
    margin-bottom: 15px;
}

.page .quote-meta {
    margin-top: 14px;
    margin-bottom: 15px;
}

.page .actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.page .actions form {
    flex: 1;
}

.page .actions button {
    width: 100%;
    min-height: 42px;
    font-weight: 600;
}

.page .edit-box {
    margin-top: 15px;
}

@media (max-width: 400px) {
    .page h1 {
        font-size: 27px;
    }

    .page .composer,
    .page .quote {
        padding: 17px;
    }
}



/* DISEÑO MÓVIL MÁS COMPACTO */

.app-shell {
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

.topbar {
    margin-bottom: 14px;
}

.topbar h1 {
    font-size: 1.55rem;
}

.cruise-card {
    padding: 14px;
    margin-bottom: 9px;
}

.quote-card {
    padding: 17px;
    margin-top: 9px;
}

.quote-card blockquote {
    font-size: 0.98rem;
    margin: 10px 0 12px;
}

.section {
    margin-top: 21px;
}

.section-heading {
    margin-bottom: 10px;
}

.action-grid,
.horizontal-cards {
    gap: 9px;
}

.action-card {
    min-height: 120px;
    padding: 13px;
}

.action-icon {
    width: 37px;
    height: 37px;
    margin-bottom: 9px;
}

.action-icon .gaby-icon {
    width: 20px;
    height: 20px;
}

.mini-card {
    min-height: 112px;
    padding: 13px;
}

/* MIS PALABRAS */

.page {
    padding: 18px 16px 60px !important;
}

.page .back {
    margin-bottom: 15px;
}

.page h1 {
    font-size: 25px;
}

.page .intro {
    margin-bottom: 17px;
    font-size: 12px;
}

.page .composer {
    padding: 14px;
}

.page .composer h2 {
    font-size: 14px;
    margin-bottom: 9px;
}

.page .composer textarea {
    min-height: 75px;
    padding: 11px;
}

.page .primary {
    min-height: 43px;
    margin-top: 9px;
}

.page .filter {
    margin: 14px 0;
}

.page .filter button {
    min-height: 39px;
}

.page .quote {
    padding: 15px;
    margin-bottom: 11px;
}

.page .quote-text {
    font-size: 15px;
}

.page .quote-meta {
    margin: 8px 0;
}

.page .actions button {
    min-height: 36px;
}




/* CENTRAR TODO EL CONTENIDO DE LAS TARJETAS */

.action-card,
.mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Iconos */
.action-card .action-icon,
.mini-card > span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

/* Títulos */
.action-card strong,
.mini-card strong {
    margin: 0;
    text-align: center;
}

/* Descripciones */
.action-card small,
.mini-card small {
    margin-top: 5px;
    text-align: center;
}


/* NAVEGACIÓN UNIFICADA EN TODA LA APP */

.bottom-nav {
    position: fixed !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    width: calc(100% - 24px);
    max-width: 436px;

    display: flex !important;
    align-items: center;
    justify-content: space-around;
    gap: 2px;

    padding: 6px;

    background: rgba(255, 255, 255, .97);
    border: 1px solid #e0eaf3;
    border-radius: 22px;
    box-shadow: 0 5px 24px rgba(21, 60, 101, .12);

    z-index: 9999;
}

.bottom-nav a {
    flex: 1;
    min-width: 0;
    min-height: 54px;

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

    gap: 4px;
    padding: 6px 2px;

    border-radius: 15px;
    text-decoration: none;
    text-align: center;
}

.bottom-nav a span {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.bottom-nav .gaby-icon {
    display: block !important;
    width: 21px;
    height: 21px;
    color: #6687a5;
}

.bottom-nav a.active {
    background: #e8f4fd;
}

.bottom-nav a.active .gaby-icon {
    color: #143c65;
}

.bottom-nav small {
    font-size: 10px;
    font-weight: 600;
    color: #708ba4;
}

.bottom-nav a.active small {
    color: #143c65;
}

/* Espacio para la barra */
body {
    padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px));
}

/* =====================================
   TARJETA LABORATORIO DE IDEAS
   ===================================== */

.project-shell .lab-access-card {
    margin: 20px 0 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dce8f3;
    border-radius: 18px;
}

.project-shell .lab-access-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.project-shell .lab-access-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e5f3ff;
    color: #398fcb;
}

.project-shell .lab-access-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    max-width: 23px;
    max-height: 23px;
    stroke: currentColor;
    fill: none;
}

.project-shell .lab-access-header > div {
    flex: 1;
    min-width: 0;
}

.project-shell .lab-access-label {
    display: block;
    margin-bottom: 5px;
    color: #398fcb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.project-shell .lab-access-header h2 {
    margin: 0;
    color: #173b67;
    font-size: 17px;
    line-height: 1.3;
}

.project-shell .lab-access-card > p {
    margin: 0 0 11px;
    color: #536d89;
    font-size: 12px;
    line-height: 1.6;
}

.project-shell .lab-access-note {
    margin: 13px 0;
    padding: 10px 12px;
    background: #f1f8fd;
    border-radius: 10px;
    color: #315d80;
    font-size: 11px;
    font-weight: 600;
}

.project-shell .lab-access-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 12px;
    background: #4a9ed0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.project-shell .lab-access-button:hover {
    background: #347faf;
}

