:root {
    --bg: #0b1020;
    --card: #081427;
    --muted: #9fb0bf;
    --accent1: #ff4d7e;
    /* rosa vivo */
    --accent2: #ff8a33;
    /* naranja */
    --accent3: #4fe1b0;
    /* verde agua */
    --glass: rgba(255, 255, 255, 0.04);
    --text: #e6f3f1;
    font-family: Inter, system-ui, Arial, sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--bg) 0%, #051018 100%);
    color: var(--text);
    min-height: 100vh
}

.wrap {
    max-width: 1100px;
    margin: 20px auto;
    padding: 18px
}

.top {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-radius: 20px;
    margin-bottom: 30px
}

.hero-section {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out
}

.main-title {
    font-size: 48px;
    margin: 0;
    background: linear-gradient(135deg, var(--accent3) 0%, var(--accent1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    animation: slideDown 0.8s ease-out
}

.title-accent {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--accent3), var(--accent1));
    margin: 20px auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out
}

.tagline {
    font-size: 24px;
    color: var(--accent3);
    margin: 20px 0;
    font-weight: 600;
    animation: fadeIn 1s ease-out 0.3s both
}

.lead {
    color: var(--text);
    font-size: 18px;
    line-height: 1.6;
    margin: 20px auto;
    max-width: 600px;
    animation: fadeIn 1s ease-out 0.6s both
}

.welcome-card {
    background: linear-gradient(135deg, rgba(79, 225, 176, 0.1) 0%, rgba(255, 77, 126, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 650px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.8s ease-out 0.9s both
}

.welcome-text {
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0
}

.welcome-highlight {
    color: var(--accent3);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-align: center
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    animation: fadeIn 1s ease-out 1.2s both
}

.btn.primary.animated {
    padding: 15px 30px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent3), var(--accent1));
    box-shadow: 0 5px 15px rgba(79, 225, 176, 0.3);
}

.btn.primary.animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 225, 176, 0.4);
}

.btn.primary.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.btn.primary.animated:hover::after {
    animation: shimmer 1.5s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.btn {
    padding: 9px 12px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted)
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent3), var(--accent1));
    color: #041014
}

.stage {
    display: block;
    margin-top: 18px
}

.nav-head {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.list .item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.list .item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6)
}

.thumb {
    width: 56px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ff0000
}

.thumb.junk {
    background: linear-gradient(180deg, var(--accent1), #4d2624);

}

.thumb.good {
    background: linear-gradient(180deg, var(--accent3), #1aa08d)
}

.name {
    font-weight: 800
}

.small {
    font-size: 13px;
    color: var(--muted)
}

.right {
    overflow: auto
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 12px
}

.tags {
    margin-top: 8px
}

.tags .pill {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent2), var(--accent1));
    color: #07131a;
    margin-right: 6px;
    font-weight: 700
}

.section {
    margin-top: 10px
}

.swap {
    background: linear-gradient(0deg, rgb(40, 199, 204) 18%, rgba(4, 129, 98, 0.555)45%);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgb(18, 248, 175)
}

.controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px
}

.progress-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px
}

.progress {
    flex: 1;
    height: 10px;
    background: rgba(228, 8, 8, 0.03);
    border-radius: 999px;
    overflow: hidden
}

.bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent1), var(--accent3));
    transition: width .45s ease
}

.right .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 10px
}

.meal-grid .meal {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 10px;
    border-radius: 8px
}

.hidden {
    display: none
}

.muted {
    color: var(--muted)
}

.small.right {
    text-align: right
}

/* Extras sections (cereales / tuberculos / frutas) */
.Saludable {
    font-size: 1rem;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.extras-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.extras-section {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.extras-section .section-title {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 15px;
}

.extras-grid {
    display: grid;
    gap: 8px;
}

.extras-grid>div {
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 8px;
}

.extras-section strong {
    display: block;
    color: #06c941;
    font-weight: 600
}

.extras-section .muted {
    margin-top: 6px
}

.extras-section .section-subtitle {
    margin: 0 0 8px 0;
    color: #12d0f1;
    font-size: 0.8rem;
    right: auto 25%;
    margin-top: 8px;
}

/* Formulario estudiante */
.student-form {
    background: linear-gradient(135deg, rgba(79, 225, 176, 0.1) 0%, rgba(255, 77, 126, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent3);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Panel PDF */
.pdf-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--card);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.pdf-panel.open {
    right: 0;
}

.toggle-pdf {
    position: absolute;
    left: -45px;
    top: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text);
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.pdf-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.pdf-container {
    width: 100%;
    height: calc(100% - 100px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

/* Variant styles */
.cereales {
    background: linear-gradient(180deg, rgba(79, 225, 176, 0.06), rgba(79, 225, 176, 0.02));
    border: 1px solid rgba(79, 225, 176, 0.10)
}

.tuberculos {
    background: linear-gradient(180deg, rgba(255, 138, 51, 0.06), rgba(255, 138, 51, 0.02));
    border: 1px solid rgba(255, 138, 51, 0.10)
}

.frutas {
    background: linear-gradient(180deg, rgba(255, 77, 126, 0.06), rgba(255, 77, 126, 0.02));
    border: 1px solid rgba(255, 77, 126, 0.10)
}

.stage.hidden {
    display: none;
}

.hero-section.hidden {
    display: none;
}

/* Estilos para la pantalla de instrucciones */
.instructions-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    background: linear-gradient(135deg, #1a0417 0%, #041014 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    min-height: 100vh;
}

.instructions-content {
    max-width: 600px;
    width: 100%;
    animation: slideUp 0.8s ease-out;
}

.instructions-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ff4d7e 0%, #4fe1b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: pulse 2s infinite;
}

.instructions-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid;
    border-image: linear-gradient(45deg, #ff4d7e, #4fe1b0) 1;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(79, 225, 176, 0.1);
}

.instructions-subtitle {
    color: #ff8a33;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.tip-box {
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(45deg, rgba(255, 77, 126, 0.1), rgba(79, 225, 176, 0.1));
    border-radius: 10px;
    text-align: center;
}

.tip-text {
    color: #4fe1b0;
    font-size: 1.1rem;
    margin: 0;
}

.rainbow-border {
    position: relative;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #ff4d7e, #4fe1b0);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rainbow-border:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, #ff4d7e, #ff8a33, #4fe1b0, #ff4d7e);
    background-size: 400%;
    border-radius: 50px;
    animation: rainbow 8s linear infinite;
}

.rainbow-border:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px rgba(79, 225, 176, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 77, 126, 0.8);
    }
    100% {
        text-shadow: 0 0 10px rgba(79, 225, 176, 0.5);
    }
}

/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
    .instructions-title {
        font-size: 2rem;
    }

    .instructions-box {
        padding: 20px;
    }

    .instructions-list li {
        font-size: 1rem;
        padding: 12px;
    }

    .tip-text {
        font-size: 1rem;
    }

    .rainbow-border {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
}

/* Estilos para la introducción del recorrido */
.titulo-intro {
    font-size: 3rem;
    text-align: center;
    margin-top: -140px;
    background: linear-gradient(135deg, var(--accent3) 0%, var(--accent1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    animation: slideDown 0.8s ease-out
}

.journey-intro {
    background: linear-gradient(0deg, #1edf7e 10%, #041014 100%);
    padding: 20px;
    border: solid 1px #ffffff;
    border-radius: 15px;
    margin-bottom: 20px;
    color: #07131a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.8s ease-out;
}

.journey-title {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.journey-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.brinda {
    font-size: 1rem;
    word-spacing: 1px;
    margin: 0 0 20px 0;
    color: #000000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.journey-features {
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 15px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.journey-features li {
    background: rgba(228, 225, 225, 0.329);
    padding: 12px 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .journey-intro {
        padding: 5 0px;
        margin-top: -30px;
    }

    .journey-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .journey-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .journey-features li {
        padding: 10px;
        font-size: 14px;
    }
}

/* Animación de fade para la transición */
.stage {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width:900px) {
    .wrap {
        margin: 10px auto;
        padding: 12px
    }

    .main-title {
        font-size: 32px;
    }

    .tagline {
        font-size: 20px;
    }

    .lead {
        font-size: 16px;
        padding: 0 15px;
    }

    .welcome-card {
        padding: 20px;
        margin: 20px 15px;
    }

    .welcome-text {
        font-size: 15px;
    }

    .welcome-highlight {
        font-size: 18px;
    }

    .btn.primary.animated {
        padding: 12px 25px;
        font-size: 16px;
    }

.stage {
    margin-top: 12px
}    .titulo-intro {
        font-size: 1.5rem;
        text-align: center;
        margin-top: -100px;
    }

    .top {
        flex-direction: column;
        gap: 12px
    }

    .top h1 {
        font-size: 20px;
        margin-bottom: 4px
    }

    .lead {
        font-size: 14px;
        line-height: 1.4;
        margin: 0
    }

    .actions {
        margin: 8px 0 0 0;
        width: 100%
    }

    .actions .btn {
        padding: 12px;
        font-size: 15px
    }

    /* Card styles for better mobile readability */
    .card {
        padding: 16px;
        margin-bottom: 16px
    }

    #detailTitle {
        font-size: 22px;
        margin: 0 0 12px 0
    }

    /* Make intro text prominent and readable */
    #detailIntro {
        font-size: 15px;
        line-height: 1.5;
        margin: 0;
        color: var(--text);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
        padding: 12px;
        border-radius: 8px
    }

    /* List styles when visible */
    .left {
        max-height: 0vh;
        padding: 0px;
        margin-bottom: 0px
    }

    .list .item {
        padding: 20px;
        margin-bottom: 0px
    }

    .thumb {
        width: 44px;
        height: 44px;
        border-radius: 8px
    }

    .name {
        font-size: 15px
    }

    .small {
        font-size: 13px
    }

    /* Extras sections stack vertically */
    .extras-container {
        flex-direction: column;
        gap: 16px
    }

    .extras-section {
        min-width: auto;
        padding: 12px
    }

    /* Controls more touchable */
    .controls {
        justify-content: space-between;
        gap: 12px;
        margin-top: 16px
    }

    .controls .btn {
        flex: 1;
        min-width: 120px;
        padding: 12px
    }

    .progress-wrap {
        margin-top: 16px
    }
}

/* Estilos para la sección de alimentos saludables adicionales */
.healthy-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.healthy-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.healthy-section.proteinas {
    background: linear-gradient(135deg, rgba(79, 225, 176, 0.05) 0%, rgba(255, 138, 51, 0.05) 100%);
}

.healthy-section.vegetales {
    background: linear-gradient(135deg, rgba(79, 225, 176, 0.05) 0%, rgba(76, 217, 100, 0.05) 100%);
}

.healthy-section.frutos-secos {
    background: linear-gradient(135deg, rgba(255, 138, 51, 0.05) 0%, rgba(255, 77, 126, 0.05) 100%);
}

.healthy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.healthy-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.healthy-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.healthy-item strong {
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent3) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.healthy-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent3) 0%, var(--accent1) 100%);
    color: #041014;
    margin: 10px 0;
}

.healthy-benefits {
    margin-top: 15px;
}

.healthy-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.healthy-benefits li {
    color: var(--muted);
    font-size: 14px;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.healthy-benefits li:before {
    content: '•';
    color: var(--accent3);
    position: absolute;
    left: 0;
}

.recipe-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent3);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.recipe-link:hover {
    color: var(--accent1);
}

/* Estilo para enlace de video */
.video-link {
    margin-top: 10px;
}
.ver-video {
    color: var(--accent3);
    text-decoration: none;
    font-weight: 700;
}
.ver-video:hover {
    color: var(--accent1);
}

/* (Modal eliminado: no quedan estilos de modal) */

@media (max-width: 768px) {
    .healthy-grid {
        grid-template-columns: 1fr;
    }

    .healthy-item {
        padding: 15px;
    }

    .healthy-item strong {
        font-size: 16px;
    }
}

/* Extra small screens */
@media (max-width:480px) {
    .thumb {
        width: 36px;
        height: 36px;
        font-size: 14px
    }

    .top h1 {
        font-size: 16px
    }

    .lead {
        font-size: 12px
    }

    .progress {
        height: 8px
    }

    .bar {
        transition: width .25s ease
    }
}

/* Estilos para reproductor inline y botón de reproducción del modal */
.video-inline {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 10px;
    background: #000;
    margin-top: 10px;
}
.modal-play-btn {
    background: linear-gradient(90deg, var(--accent3), var(--accent1));
    color: #041014;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Inline player wrapper */
.inline-player-wrap {
    position: relative;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inline-player-wrap.hidden { display: none; }
.inline-close {
    position: absolute;
    right: -8px;
    top: -8px;
    z-index: 10;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

/* Para videos en la galería o modal */
.galeria-item video,
.modal-item video {
    width: 90%;
    max-width: 90%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    background: #000;
    object-fit: contain;
}

/* Si el video es vertical (alto mayor que ancho), limítalo en ancho */
.galeria-item video[style*="height: auto"],

.modal-item video[style*="height: auto"] {
    max-width: 250px;
    width: 150%;
    height: auto;
    margin: 0 auto;
}

.video-vertical {
    max-width: 250px !important;
    width: 100% !important;
    height: 50% !important;
    margin: 0 auto;
}


/* Estilos específicos para los botones "Ver Video" que usan la clase
   button.healthy-item (evita outlines molestos y mejora tamaño/alineación) */
button.healthy-item,
a > button.healthy-item {
    background-color: white;
    color: #041014;
    width: 110px;
    height: 36px; /* altura adecuada para texto */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tip-su {
    text-align: center;
}

/* Quitar el outline por defecto pero mantener indicación para navegación por teclado */
button.healthy-item:focus,
a > button.healthy-item:focus {
    outline: none;
    box-shadow: none;
}

/* Mostrar una señal sutil sólo cuando el usuario navega con teclado */
button.healthy-item:focus-visible,
a > button.healthy-item:focus-visible {
    outline: 2px solid rgba(79,225,176,0.22);
    outline-offset: 2px;
}

button.healthy-item:hover,
a > button.healthy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
