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

/* Variables */
:root {
    --color-bg: #ffffff;
    --color-card: #fff;
    --color-primary: #00abb6;
    --color-primary-hover: #00939d;
    --color-primary-light: rgba(0, 171, 182, 0.06);
    --color-sidebar: #00abb6;
    --color-text: #111827;
    --color-muted: #6b7280;
    --font-sans: 'Anek Kannada', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Anek Kannada', Georgia, serif;
    --shadow: 0 1px 3px rgba(0,0,0,.04);
    --shadow-card: 0 4px 20px rgba(0,0,0,.06);
    --shadow-hover: 0 12px 32px rgba(0, 171, 182, 0.12);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Degradado sutil al fondo: #00abb6 muy suave (solo cuando no es página home con sidebar) */
body:not(.page-home)::before {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -15%;
    width: 70%;
    height: 50vh;
    background: radial-gradient(ellipse at center, rgba(0, 171, 182, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body:not(.page-home)::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65vh;
    background: linear-gradient(
        165deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 171, 182, 0.03) 70%,
        rgba(0, 171, 182, 0.07) 90%,
        rgba(0, 171, 182, 0.05) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.page-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========== Home: layout horizontal sidebar + main ========== */
.page-home {
    overflow-x: hidden;
}
.layout-home {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.home-sidebar {
    width: 380px;
    flex-shrink: 0;
    background: var(--color-sidebar);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2.5rem 1.75rem 2rem;
}

.home-sidebar-inner {
    text-align: left;
    max-width: 100%;
    padding-top: 0.5rem;
}

.home-sidebar-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 3rem 0 1.25rem 0;
    display: block;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.15));
}

.home-sidebar-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.home-sidebar-brand {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.02em;
}

.home-sidebar-intro {
    margin: 7rem 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.home-sidebar-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    color: #fff;
}

.home-sidebar-pill a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-sidebar-pill a:hover {
    color: rgba(255,255,255,0.9);
}

.home-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-bg);
    position: relative;
}

.home-main::before {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -15%;
    width: 70%;
    height: 50vh;
    background: radial-gradient(ellipse at center, rgba(0, 171, 182, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.home-main::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65vh;
    background: linear-gradient(
        165deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 171, 182, 0.03) 70%,
        rgba(0, 171, 182, 0.07) 90%,
        rgba(0, 171, 182, 0.05) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.home-main-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.home-main-inner .modalidad-cards-wrap {
    width: 100%;
    max-width: 100%;
}

.home-main-inner .promos-panel.is-open {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 4rem;
}

.home-main-inner .promos-panel .container {
    width: 100%;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero home */
.hero {
    padding: 1.5rem 0 2.5rem;
    text-align: center;
}

.hero-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    display: block;
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.35;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-brand {
    margin: 0.2rem 0 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-intro {
    margin: 0.6rem auto 0;
    max-width: 400px;
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-intro a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.hero-intro a:hover {
    text-decoration: underline;
}

/* Pill opcional para destacar Instagram */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.6rem;
    padding: 0.4rem 0.9rem;
    background: var(--color-primary-light);
    color: var(--color-muted);
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
    animation: fadeInUp 0.6s ease-out 0.35s both;
}

.hero-pill a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.hero-pill a:hover {
    text-decoration: underline;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Secciones por tipo (Bachilleres / CEI) */
.modalidad-cards-wrap {
    padding-bottom: 2rem;
}
.tipo-section {
    margin-bottom: 2.5rem;
}
.tipo-section:last-child {
    margin-bottom: 1rem;
}
.tipo-section-title {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}
.tipo-section-desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    text-align: center;
}

/* Tarjetas de modalidad (home) */
.modalidad-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 0 1rem;
    max-width: 560px;
    margin: 0 auto;
}
.modalidad-cards-wrap > .tipo-section:first-child .modalidad-cards {
    padding-top: 0.5rem;
}

.modalidad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1.75rem;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardIn 0.5s ease-out forwards;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    gap: 1rem;
}

/* CEI primero (solo 1 tarjeta Presencial); luego Bachilleres (2 tarjetas) */
.tipo-section:nth-of-type(1) .modalidad-card:nth-child(1) { animation-delay: 0.35s; }
.tipo-section:nth-of-type(2) .modalidad-card:nth-child(1) { animation-delay: 0.5s; }
.tipo-section:nth-of-type(2) .modalidad-card:nth-child(2) { animation-delay: 0.65s; }

.modalidad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), rgba(0, 201, 212, 0.8));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modalidad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.95);
}

.modalidad-card:hover::before {
    opacity: 1;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modalidad-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.modalidad-card-icon {
    width: 44px;
    height: 44px;
    color: var(--color-primary);
    opacity: 0.9;
    display: block;
}

.modalidad-card-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.modalidad-card-hint {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin: 0;
}

/* Panel de promociones (se muestra al elegir modalidad) */
.promos-panel {
    display: none;
    padding: 0 0 4rem;
    animation: panelIn 0.4s ease-out;
}

.promos-panel.is-open {
    display: block;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promos-panel-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.promos-panel-back:hover {
    opacity: 0.85;
}

.promos-panel-title {
    margin: 0 0 1.5rem;
    font-size: 1.3125rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 auto;
    max-width: 720px;
}

.promo-grid .promo-card {
    opacity: 0;
    animation: promoCardIn 0.4s ease-out forwards;
}

.promo-grid .promo-card:nth-child(1) { animation-delay: 0.05s; }
.promo-grid .promo-card:nth-child(2) { animation-delay: 0.1s; }
.promo-grid .promo-card:nth-child(3) { animation-delay: 0.15s; }
.promo-grid .promo-card:nth-child(4) { animation-delay: 0.2s; }
.promo-grid .promo-card:nth-child(5) { animation-delay: 0.25s; }
.promo-grid .promo-card:nth-child(6) { animation-delay: 0.3s; }
.promo-grid .promo-card:nth-child(7) { animation-delay: 0.35s; }
.promo-grid .promo-card:nth-child(8) { animation-delay: 0.4s; }
.promo-grid .promo-card:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes promoCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 1.25rem;
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: var(--color-text);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
    width: 100%;
}

button.promo-card {
    appearance: none;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.promo-card-icon {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.promo-card-icon .icon--promo {
    display: block;
    margin: 0 auto;
}

.promo-card-name {
    font-weight: 600;
    text-align: center;
}

.promo-card-cta {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

.sin-promos {
    color: var(--color-muted);
    font-style: italic;
    margin: 0;
    padding: 2rem;
    text-align: center;
}

/* Header (galeria y otras páginas) */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-text { text-align: center; }

.header-small .header-inner { justify-content: flex-start; }
.header-small .header-text { text-align: left; }
.header-small { padding: 1.5rem 0; text-align: left; }
.header-small .site-logo { width: 48px; height: 48px; }

.site-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
}

.header .site-subtitle {
    margin: 0.5rem 0 0;
    opacity: .9;
    font-size: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #fff;
    text-decoration: underline;
}

.back-link .icon--back { flex-shrink: 0; }

.gallery-breadcrumb {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    opacity: .9;
}

/* Main (galeria) */
.main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.intro {
    color: var(--color-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.modalidad {
    margin-bottom: 2.5rem;
}

.modalidad-title {
    font-size: 1.35rem;
    margin: 0 0 1rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Gallery */
.gallery-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.gallery-hint {
    color: var(--color-muted);
    margin-bottom: 1rem;
}

/* Galería tipo mosaico: varias columnas y filas (como referencia) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 120px;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
}

.gallery-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e8e8e8;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    opacity: 0;
    animation: galleryItemIn 0.45s ease-out forwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* Variedad: algunas celdas ocupan 2 filas para efecto mosaico */
.gallery-item:nth-child(5n+1),
.gallery-item:nth-child(5n+3) { grid-row: span 2; }

@keyframes galleryItemIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-error {
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    cursor: default;
}

.gallery-item-error::after {
    content: '';
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300abb6' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.5;
}

.gallery-error {
    color: #c01c28;
    padding: 1rem;
    background: #fff5f5;
    border-radius: var(--radius);
}

/* Panel de galería integrado (index, misma vista que el sidebar) */
.gallery-panel {
    width: 100%;
    max-width: 100%;
    padding: 0 0 3rem;
}

.gallery-panel[hidden] {
    display: none !important;
}

.gallery-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gallery-panel-header-left {
    flex: 1;
    min-width: 0;
}

.gallery-panel .gallery-panel-back {
    margin-bottom: 0.5rem;
}

.gallery-panel .gallery-panel-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
}

.gallery-drive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background 0.2s ease;
}

.gallery-drive-link:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.gallery-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gallery-page-header .gallery-title {
    margin: 0;
}

.gallery-load-more-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

.gallery-load-more-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-load-more-btn:hover:not(:disabled) {
    background: var(--color-primary-hover);
}

.gallery-load-more-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.gallery-load-more-wrap .gallery-hint {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Lightbox: controlado solo por JS (display:none en HTML); se muestra al clic en foto */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255,255,255,.3);
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-download {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.2rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
}

.lightbox-download:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-top: auto;
    padding: 1.25rem 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

.footer p {
    margin: 0;
}

/* ========== Responsive (front público) ========== */
@media (max-width: 992px) {
    .layout-home {
        flex-direction: column;
    }
    .home-sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
        padding: 1.5rem 1rem;
    }
    .home-sidebar-inner {
        max-width: none;
    }
    .home-sidebar-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    .home-sidebar-title {
        font-size: 1.15rem;
    }
    .home-sidebar-brand {
        font-size: 1rem;
    }
    .home-main-inner {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .gallery-panel .gallery-panel-title {
        font-size: 1.2rem;
    }
    .gallery-load-more-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .hero {
        padding: 1.25rem 0 2rem;
    }
    .hero-logo {
        width: 76px;
        height: 76px;
        margin-bottom: 1rem;
    }
    .hero-title {
        font-size: 1.25rem;
    }
    .hero-brand {
        font-size: 1.1rem;
    }
    .hero-intro {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    .hero-pill {
        margin-top: 0.5rem;
        padding: 0.35rem 0.75rem;
        font-size: 0.8125rem;
    }
    .tipo-section {
        margin-bottom: 2rem;
    }
    .tipo-section-title {
        font-size: 1.1rem;
    }
    .tipo-section-desc {
        font-size: 0.85rem;
    }
    .modalidad-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0 1rem;
    }
    .modalidad-card {
        padding: 1.5rem 1.25rem;
    }
    .promos-panel {
        padding: 0 0 3rem;
    }
    .promos-panel-title {
        font-size: 1.15rem;
    }
    .promo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    .promo-card {
        min-height: 110px;
        padding: 1rem;
    }
    .header {
        padding: 1.75rem 0;
    }
    .header-inner {
        gap: 0.75rem;
    }
    .back-link {
        padding: 0.5rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .site-logo {
        width: 64px;
        height: 64px;
    }
    .header-small .site-logo {
        width: 40px;
        height: 40px;
    }
    .site-title {
        font-size: 1.35rem;
    }
    .gallery-breadcrumb {
        font-size: 0.875rem;
    }
    .main {
        padding: 1.5rem 0 2.5rem;
    }
    .gallery-title {
        font-size: 1.25rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 100px;
        gap: 0.5rem;
    }
    .lightbox {
        padding: 1rem;
    }
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    .lightbox-download {
        bottom: 1.5rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .footer {
        padding: 1rem 0;
        font-size: 0.85rem;
    }
    .home-main-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .gallery-panel {
        padding: 0 0 2rem;
    }
    .gallery-panel .gallery-panel-title {
        font-size: 1.15rem;
    }
    .gallery-panel .gallery-panel-back {
        margin-bottom: 0.75rem;
    }
    .gallery-load-more-wrap {
        margin-top: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    .hero {
        padding: 1rem 0 1.5rem;
    }
    .hero-logo {
        width: 68px;
        height: 68px;
    }
    .hero-title {
        font-size: 1.05rem;
    }
    .hero-brand {
        font-size: 1rem;
    }
    .hero-intro {
        font-size: 0.875rem;
    }
    .tipo-section-title {
        font-size: 1rem;
    }
    .tipo-section-desc {
        font-size: 0.8rem;
    }
    .modalidad-card-name {
        font-size: 1rem;
    }
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .promo-card {
        min-height: 100px;
        padding: 0.75rem;
    }
    .promo-card-name {
        font-size: 0.9rem;
    }
    .site-title {
        font-size: 1.2rem;
    }
    .gallery-title {
        font-size: 1.1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 85px;
        gap: 0.35rem;
    }
    .gallery-item:nth-child(5n+1),
    .gallery-item:nth-child(5n+3) {
        grid-row: span 2;
    }
    .footer {
        font-size: 0.8rem;
        padding: 0.75rem 0;
    }
    .home-sidebar {
        padding: 1.25rem 0.75rem;
    }
    .home-sidebar-logo {
        width: 72px;
        height: 72px;
    }
    .home-sidebar-title {
        font-size: 1.05rem;
    }
    .home-sidebar-brand {
        font-size: 0.95rem;
    }
    .home-sidebar-intro {
        font-size: 0.85rem;
    }
    .home-main-inner {
        padding: 1rem 0.75rem;
    }
    .gallery-panel {
        padding: 0 0 1.5rem;
    }
    .gallery-panel .gallery-panel-title {
        font-size: 1.1rem;
    }
    .gallery-load-more-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    .hero-title {
        font-size: 1rem;
    }
    .hero-brand {
        font-size: 0.95rem;
    }
    .home-sidebar {
        padding: 1rem 0.5rem;
    }
    .home-sidebar-logo {
        width: 64px;
        height: 64px;
    }
    .home-sidebar-title {
        font-size: 1rem;
    }
    .home-sidebar-brand {
        font-size: 0.9rem;
    }
    .home-main-inner {
        padding: 0.75rem 0.5rem;
    }
    .tipo-section-title {
        font-size: 0.95rem;
    }
    .promo-grid {
        grid-template-columns: 1fr;
    }
    .promo-card {
        min-height: 95px;
        padding: 0.65rem;
    }
    .gallery-panel .gallery-panel-title {
        font-size: 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 80px;
        gap: 0.3rem;
    }
    .gallery-load-more-btn {
        max-width: 100%;
    }
    .lightbox-close {
        width: 40px;
        height: 40px;
    }
    .footer {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }
}
