:root {
    --blue: #0047ab;
    --blue-dark: #002f73;
    --red: #c1121f;
    --red-dark: #8f0d16;
    --white: #ffffff;
    --light: #f4f7fb;
    --light-2: #e9eef7;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d9e2f0;
    --shadow: 0 14px 32px rgba(0, 47, 115, 0.10);
    --radius: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 71, 171, 0.06), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 47, 115, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--red);
    box-shadow: 0 8px 22px rgba(0, 24, 60, 0.12);
}

.nav-safe,
.nav-safe-pro {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.logo-safe,
.logo-safe-pro {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-safe img,
.logo-safe-pro img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-safe-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-safe-text strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.logo-safe-text span {
    margin-top: 4px;
    color: rgba(255,255,255,0.80);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.25px;
}

.main-nav-safe,
.main-nav-pro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav-safe > a,
.main-nav-pro > a,
.submenu-trigger-safe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.94);
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav-safe > a:hover,
.main-nav-pro > a:hover,
.submenu-trigger-safe:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.main-nav-safe > a.is-active-link,
.main-nav-pro > a.is-active-link,
.submenu-trigger-safe.is-current,
.nav-item-safe.is-current-group .submenu-trigger-safe {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

.nav-dashboard-link,
.nav-dashboard-link-pro {
    background: #ffffff !important;
    color: var(--blue-dark) !important;
    font-weight: 800;
}

.nav-dashboard-link:hover,
.nav-dashboard-link-pro:hover {
    background: #f3f6fb !important;
    color: var(--blue-dark) !important;
}

.nav-item-safe {
    position: relative;
}

.submenu-arrow-safe {
    width: 9px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.nav-item-safe.is-open .submenu-arrow-safe {
    transform: rotate(225deg);
    margin-top: 2px;
}

.submenu-safe {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 47, 115, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    z-index: 1001;
}

.submenu-safe a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submenu-safe a:hover,
.submenu-safe a.is-active-link {
    background: rgba(255,255,255,0.10);
    transform: translateX(3px);
}

@media (min-width: 901px) {
    .nav-item-safe:hover .submenu-safe,
    .nav-item-safe.is-open-desktop .submenu-safe {
        display: flex;
    }
}

.menu-toggle,
.menu-toggle-pro {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span,
.menu-toggle-pro span {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1),
.menu-toggle-pro.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2),
.menu-toggle-pro.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3),
.menu-toggle-pro.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================
   HERO
========================= */

.hero-home-safe {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 47, 115, 0.96), rgba(193, 18, 31, 0.88)),
        url('/assets/img/hero-futbol.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 120px 0 100px;
}

.hero-home-safe::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 24%),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    pointer-events: none;
}

.hero-home-safe .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.hero-home-safe h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.02;
    font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-home-safe p {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.94);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-actions,
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 78px 0;
}

.section-title {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 36px;
}

.section-title h2 {
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--blue-dark);
}

.section-title p {
    color: var(--muted);
    font-size: 1.03rem;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    font-weight: 800;
    font-size: 0.96rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(193, 18, 31, 0.22);
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(193, 18, 31, 0.28);
}

.btn-outline,
.cta-outline,
.ins-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-outline,
.cta-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    color: var(--white);
    box-shadow: none;
}

.btn-outline:hover,
.cta-outline:hover {
    background: rgba(255,255,255,0.10);
}

.ins-btn-secondary {
    border: 2px solid var(--blue);
    background: var(--white);
    color: var(--blue-dark);
}

.ins-btn-secondary:hover {
    transform: translateY(-2px);
    background: #f2f7ff;
}

.btn-danger {
    background: linear-gradient(135deg, #8f0d16, #670911);
    color: #fff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #2ee06f, #178f45);
}

/* =========================
   CARDS / BOXES
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card,
.news-item,
.gallery-item,
.login-box,
.admin-panel,
.feature-box,
.contact-box,
.stats-box,
.admin-card,
.admin-stat-card,
.admin-row-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 28px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card::before,
.feature-box::before,
.contact-box::before,
.news-item::before,
.admin-card::before,
.admin-stat-card::before,
.category-card-pro::before,
.news-item-pro::before,
.contact-box-pro::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    margin: -28px -28px 22px -28px;
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.12), rgba(193, 18, 31, 0.14));
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 900;
}

.card h3,
.card h4 {
    margin-bottom: 10px;
    font-size: 1.18rem;
    color: var(--blue-dark);
}

.card p {
    color: var(--muted);
}

/* =========================
   HOME HIGHLIGHT / FEATURES
========================= */

.home-highlight {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.home-highlight-content,
.home-highlight-box,
.feature-box,
.stats-box {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.home-highlight-content,
.home-highlight-box,
.feature-box,
.stats-box {
    padding: 32px;
    overflow: hidden;
}

.home-highlight-content h2,
.feature-box h3,
.home-highlight-box h3 {
    color: var(--blue-dark);
    line-height: 1.1;
}

.home-highlight-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 14px;
}

.home-highlight-content p,
.feature-box p,
.home-highlight-box p {
    color: var(--muted);
    margin-bottom: 20px;
}

.mini-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 800;
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-list li {
    list-style: none;
    padding-left: 22px;
    position: relative;
    color: var(--text);
    font-weight: 600;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--red);
    font-size: 1.3rem;
    line-height: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.feature-box h3 {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.stats-box {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
}

.stats-box h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
}

.stat-item strong {
    display: block;
    font-size: 1.7rem;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-item span {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* =========================
   GALLERY
========================= */

.gallery-grid,
.gallery-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gallery-item {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 47, 115, 0.14);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-item p {
    padding: 18px;
    font-weight: 700;
    color: var(--blue-dark);
    background: var(--white);
}

.gallery-item-pro {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item-pro:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 47, 115, 0.14);
}

.gallery-open-btn {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gallery-image-wrap {
    position: relative;
    overflow: hidden;
}

.gallery-image-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-badge-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.22);
}

.gallery-info {
    padding: 18px;
}

.gallery-info h3 {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 1.08rem;
    line-height: 1.3;
}

.gallery-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
}

/* MODAL */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.gallery-modal.is-open {
    display: block;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(3px);
}

.gallery-modal-content {
    position: relative;
    z-index: 2;
    width: min(920px, 92%);
    margin: 4vh auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.30);
}

.gallery-modal-image-wrap {
    background: #0b1220;
}

.gallery-modal-image-wrap img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gallery-modal-info {
    padding: 20px 22px 24px;
}

.gallery-modal-info h3 {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 1.3rem;
}

.gallery-modal-info p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.gallery-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.gallery-modal-close:hover {
    background: rgba(255,255,255,0.24);
}

body.modal-open {
    overflow: hidden;
}

/* =========================
   NEWS
========================= */

.news-list-pro {
    display: grid;
    gap: 26px;
}

.news-item {
    padding: 28px;
    margin-bottom: 26px;
}

.news-item h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
    color: var(--blue-dark);
    line-height: 1.2;
}

.date {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 800;
}

.news-summary {
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 14px;
}

.news-thumb {
    width: 240px;
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    margin: 14px 0;
    border: 1px solid var(--border);
}

.news-thumb-pro {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    margin: 16px 0;
    border: 1px solid var(--border);
}

.content-preview {
    color: #374151;
    margin-top: 10px;
    line-height: 1.8;
}

.news-item-pro {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.news-item-pro h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
    color: var(--blue-dark);
    line-height: 1.2;
}

.news-item-pro .content-preview p {
    color: #374151;
    line-height: 1.8;
    margin: 0;
}

/* =========================
   CATEGORIES
========================= */

.category-meta {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.category-meta span {
    display: block;
    padding: 12px 14px;
    background: #f7faff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #374151;
    font-size: 0.95rem;
}

.category-meta strong {
    color: var(--blue-dark);
}

.categories-cards-pro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.category-card-pro {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.category-card-pro:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 47, 115, 0.14);
}

.category-card-pro h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--blue-dark);
}

.category-card-pro p {
    color: var(--muted);
    line-height: 1.7;
}

.category-card-pro .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.12), rgba(193, 18, 31, 0.14));
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 900;
}

/* =========================
   CONTACT
========================= */

.contact-wrap,
.contact-wrap-pro {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
}

.contact-box {
    padding: 28px;
}

.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--blue-dark);
}

.contact-box p {
    color: var(--muted);
    margin-bottom: 12px;
}

.contact-box-pro {
    padding: 30px;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.contact-box-pro h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--blue-dark);
}

.contact-box-pro p {
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.notes-form textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
    transition: 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.notes-form textarea:focus {
    outline: none;
    border-color: rgba(0, 71, 171, 0.45);
    box-shadow: 0 0 0 5px rgba(0, 71, 171, 0.08);
}

.contact-form textarea,
.notes-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-info-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid var(--border);
}

.contact-info-item strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 5px;
    font-size: 0.92rem;
}

.contact-info-item span {
    color: var(--text);
    font-size: 0.96rem;
}

/* =========================
   ALERTS
========================= */

.success,
.error {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

/* =========================
   LOGIN / ADMIN
========================= */

.login-box {
    width: min(460px, 92%);
    margin: 80px auto;
    padding: 30px;
}

.login-box h2 {
    font-size: 1.8rem;
    margin-bottom: 18px;
    color: var(--blue-dark);
}

.admin-panel {
    margin: 42px auto;
    padding: 28px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
    background: #f4f7fc;
}

.admin-sidebar {
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: #fff;
    padding: 28px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 4px solid var(--red);
}

.admin-sidebar h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: #fff;
}

.admin-sidebar nav {
    display: grid;
    gap: 10px;
}

.admin-sidebar nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.92);
    font-weight: 700;
    transition: 0.2s ease;
}

.admin-sidebar nav a:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
}

.admin-content {
    padding: 28px;
}

.admin-topbar {
    margin-bottom: 24px;
}

.admin-topbar h1 {
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.admin-topbar p {
    color: var(--muted);
}

.admin-card,
.admin-stat-card {
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.admin-big-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--blue-dark);
    margin: 10px 0 18px;
    line-height: 1;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-section-head h3 {
    margin: 0 0 6px;
    color: var(--blue-dark);
}

.admin-section-head p {
    margin: 0;
    color: var(--muted);
}

.admin-list {
    display: grid;
    gap: 18px;
}

.admin-row-card {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--border);
}

.admin-row-card h3 {
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.admin-row-card p,
.admin-row-card small {
    color: var(--muted);
}

.admin-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-filters input,
.admin-filters select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    min-width: 220px;
    background: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.detail-item {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.detail-item strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.detail-item span {
    color: var(--text);
    font-size: 0.96rem;
}

.detail-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.detail-block strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.detail-block p {
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.notes-form {
    display: grid;
    gap: 12px;
}

.notes-form label {
    font-weight: 800;
    color: var(--blue-dark);
}

.estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.estado-nuevo {
    background: #ffe082;
    color: #7a5c00;
}

.estado-contactado {
    background: #81d4fa;
    color: #01579b;
}

.estado-aprobado {
    background: #a5d6a7;
    color: #1b5e20;
}

.estado-rechazado {
    background: #ef9a9a;
    color: #b71c1c;
}

/* =========================
   FOOTER
========================= */

.site-footer,
.site-footer-pro {
    margin-top: 50px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: rgba(255,255,255,0.9);
    border-top: 4px solid var(--red);
    padding: 36px 0 24px;
}

.footer-grid-pro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand-pro h3,
.footer-links-pro h4,
.footer-contact-pro h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-brand-head img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.footer-brand-head p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.76);
    font-size: 0.92rem;
    font-weight: 700;
}

.footer-brand-text {
    color: rgba(255,255,255,0.82);
    font-size: 0.96rem;
    line-height: 1.7;
}

.footer-links,
.footer-links-pro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a,
.footer-links-pro a {
    color: rgba(255,255,255,0.82);
    font-size: 0.96rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links-pro a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-pro p {
    color: rgba(255,255,255,0.82);
    margin: 0 0 10px;
    font-size: 0.96rem;
    line-height: 1.6;
}

.footer-contact-pro strong {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 18px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.20);
}

.footer-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #1da851);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.28);
}

.footer-bottom,
.footer-bottom-pro {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px;
    text-align: center;
    font-size: 0.93rem;
    color: rgba(255,255,255,0.82);
}

/* =========================
   CTA SECTION
========================= */

.cta-section {
    background: linear-gradient(135deg, rgba(0, 47, 115, 0.96), rgba(193, 18, 31, 0.92));
    color: var(--white);
}

.cta-section .section-title h2,
.cta-section .section-title p {
    color: var(--white);
}

/* =========================
   UTILITIES
========================= */

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .cards,
    .gallery-grid,
    .gallery-grid-pro,
    .admin-stats-grid,
    .categories-cards-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features-grid,
    .contact-wrap,
    .contact-wrap-pro,
    .home-highlight,
    .footer-grid-pro,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }
}

@media (max-width: 900px) {
    .logo-safe-text strong {
        font-size: 0.92rem;
    }

    .logo-safe-text span {
        font-size: 0.72rem;
    }

    .menu-toggle,
    .menu-toggle-pro {
        display: flex;
    }

    .main-nav-safe,
    .main-nav-pro {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        background: rgba(0, 47, 115, 0.99);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
        z-index: 1001;
    }

    .main-nav-safe.is-open,
    .main-nav-pro.is-open {
        display: flex;
    }

    .main-nav-safe > a,
    .main-nav-pro > a,
    .submenu-trigger-safe,
    .nav-dashboard-link,
    .nav-dashboard-link-pro {
        width: 100%;
        justify-content: space-between;
        min-height: 46px;
        padding: 0 14px;
        border-radius: 12px;
        background: rgba(255,255,255,0.04);
    }

    .submenu-safe {
        position: static;
        min-width: 100%;
        margin-top: 8px;
        padding: 10px;
        border-radius: 14px;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
    }

    .nav-item-safe.is-open .submenu-safe {
        display: flex;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-home-safe {
        padding: 90px 0 80px;
    }

    .cards,
    .gallery-grid,
    .gallery-grid-pro,
    .stats-grid,
    .admin-stats-grid,
    .categories-cards-pro,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .admin-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn,
    .btn-outline,
    .ins-btn-secondary,
    .footer-whatsapp-link {
        width: 100%;
    }

    .card,
    .feature-box,
    .stats-box,
    .admin-panel,
    .login-box,
    .contact-box,
    .news-item,
    .admin-card,
    .admin-stat-card,
    .home-highlight-content,
    .home-highlight-box,
    .contact-box-pro,
    .news-item-pro,
    .category-card-pro {
        padding: 20px;
    }

    .card::before,
    .feature-box::before,
    .contact-box::before,
    .news-item::before,
    .admin-card::before,
    .admin-stat-card::before,
    .category-card-pro::before,
    .news-item-pro::before,
    .contact-box-pro::before {
        margin-left: -20px;
        margin-right: -20px;
        margin-top: -20px;
    }

    .news-thumb-pro {
        height: 220px;
        border-radius: 14px;
    }

    .gallery-image-wrap img {
        height: 240px;
    }

    .gallery-modal-content {
        width: 94%;
        margin: 3vh auto;
        border-radius: 18px;
    }

    .gallery-modal-info {
        padding: 16px 16px 20px;
    }

    .admin-big-number {
        font-size: 2rem;
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-filters input,
    .admin-filters select,
    .admin-filters .btn,
    .admin-filters .ins-btn-secondary {
        width: 100%;
    }

    .footer-grid-pro {
        grid-template-columns: 1fr;
    }

    .footer-brand-head {
        align-items: flex-start;
    }
}

@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .menu-toggle-pro,
    .footer-whatsapp-link,
    .gallery-modal,
    .btn,
    .btn-outline,
    .ins-btn-secondary,
    .admin-actions {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .card,
    .feature-box,
    .stats-box,
    .admin-card,
    .admin-stat-card,
    .contact-box,
    .news-item,
    .gallery-item,
    .detail-item,
    .detail-block {
        box-shadow: none !important;
    }
}
/* INSCRIPCIONES DISEÑO */
.inscriptions-page {
    padding-top: 20px;
}

.inscripciones-classic-wrap {
    max-width: 1080px;
    margin: 0 auto;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 34px;
}

.inscripciones-classic-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.inscripciones-classic-logo {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(0,71,171,0.08), rgba(193,18,31,0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.inscripciones-classic-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.inscripciones-classic-title h2 {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 2rem;
    line-height: 1.1;
}

.inscripciones-classic-title p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.inscripciones-classic-form {
    display: grid;
    gap: 24px;
}

.inscripcion-section-box {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fbfdff;
}

.inscripcion-section-box h3 {
    margin: 0 0 18px;
    color: var(--blue-dark);
    font-size: 1.35rem;
    line-height: 1.2;
}

.field-group {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.field-group:last-child {
    margin-bottom: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.field label {
    color: var(--blue-dark);
    font-size: 0.94rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    transition: 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(0, 71, 171, 0.45);
    box-shadow: 0 0 0 5px rgba(0, 71, 171, 0.08);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.required {
    color: var(--red);
    font-weight: 900;
}

.legal-base {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.legal-base h4 {
    margin: 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0,71,171,0.08), rgba(193,18,31,0.08));
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 900;
}

.legal-base-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding: 18px;
    white-space: pre-line;
    color: var(--text);
    line-height: 1.8;
    font-size: 0.96rem;
}

.checks-base {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.checks-base label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
}

.checks-base input[type="checkbox"] {
    margin-top: 3px;
    transform: scale(1.12);
    accent-color: var(--red);
}

.acciones-base {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 6px;
}

/* responsive */
@media (max-width: 900px) {
    .field-group {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .col-12,
    .col-6,
    .col-4,
    .col-3 {
        grid-column: span 1;
    }

    .inscripciones-classic-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .inscripciones-classic-wrap {
        padding: 22px;
        border-radius: 20px;
    }

    .inscripcion-section-box {
        padding: 18px;
    }

    .acciones-base {
        flex-direction: column;
    }

    .acciones-base .btn,
    .acciones-base .ins-btn-secondary {
        width: 100%;
    }

    .legal-base-scroll {
        max-height: 260px;
    }
}
.categoria-bloque-galeria h3 {
    font-size: 1.6rem;
    font-weight: 900;
}

.categoria-bloque-galeria {
    padding-top: 6px;
}