/* --- RESET & GLOBAL VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: #333333;
}

/* Colors for Corporate Site */
:root {
    --abc-blue: #082f49;      /* Dark corporate blue */
    --abc-navbar-bg: #001f3f; /* Deep navy blue */
    --abc-blue-light: #004080;
    --abc-teal: #0284c7;
    --abc-green: #0d9488;
    --abc-red: #991b1b;
    --abc-yellow: #fef08a;
    --abc-green-light: #f0fdf4;
    --abc-gray: #dcdcdc;      /* Original gray background */
    --abc-gray-dark: #666666;
    
    --card-border: #cccccc;
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- COMMON UTILITIES --- */
.hidden {
    display: none !important;
}

/* ==========================================================================
   HOMEPAGE STYLES (index.html)
   ========================================================================== */
.home-body {
    background-color: #f1f5f9;
}

/* Home Header */
.home-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

/* 60 AÑOS ABC LOGO */
.logo-abc {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.logo-years {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #e28743; /* Orange */
    letter-spacing: 0.1em;
}

.logo-letters {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--abc-navbar-bg);
    letter-spacing: -0.05em;
}

.header-info {
    flex-grow: 1;
    margin-left: 2rem;
}

.header-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--abc-navbar-bg);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--abc-gray-dark);
}

.contact-details span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--abc-teal);
    text-decoration: none;
}

.header-social {
    display: flex;
    gap: 0.75rem;
}

.header-social a {
    width: 32px;
    height: 32px;
    background: var(--abc-navbar-bg);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.header-social a:hover {
    background: var(--abc-teal);
}

/* Navbar */
.home-navbar {
    background: var(--abc-navbar-bg);
    padding: 0.25rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    display: block;
    transition: background 0.2s;
}

.nav-links li a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links li a.active {
    background: rgba(255,255,255,0.15);
}

.nav-links li a.highlight-link {
    color: #fef08a; /* Soft yellow accent */
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

.btn-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--abc-navbar-bg);
}

/* Home Footer */
.home-footer {
    background: var(--abc-navbar-bg);
    color: #ffffff;
    text-align: center;
    padding: 1.25rem;
    margin-top: 3rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   REVISTA PAGE STYLES (revista.html)
   ========================================================================== */
.revista-body {
    background-color: var(--abc-gray); /* Gray #dcdcdc as requested */
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* Sub-page top header bar */
.revista-header-bar {
    max-width: 1350px;
    margin: 0 auto 0.75rem;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back-home {
    background: #ffffff;
    color: #333333;
    border: 1px solid #b3b3b3;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-back-home:hover {
    background: #f2f2f2;
}

.btn-admin-link {
    background: #3b82f6; /* Classic Blue */
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-admin-link:hover {
    background: #2563eb;
}

.admin-status-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e3a8a;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-logout-link {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    cursor: pointer;
    font-weight: 600;
}

.btn-logout-link:hover {
    background: #dc2626;
}

/* Page container (Holds catalog or admin panels) */
.revista-page-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* CATALOG VIEW */
.catalog-view {
    display: flex;
    flex-direction: column;
}

.revista-main-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    margin: 1rem 0 1.5rem;
}

/* Simple Filters bar */
.revista-simple-filters {
    background: #ffffff;
    border: 1px solid #b3b3b3;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-soft);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: bold;
}

.filter-group input, .filter-group select {
    padding: 0.35rem;
    border: 1px solid #b3b3b3;
    border-radius: 3px;
    font-size: 0.85rem;
    background: #ffffff;
}

.filter-group input {
    width: 200px;
}

.revista-total-label {
    margin-left: auto;
    color: #475569;
}

/* GRID OF 6 COLUMNS (matches the second image exactly!) */
.revista-classic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 20px;
    padding-bottom: 3rem;
}

@media (max-width: 1100px) {
    .revista-classic-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .revista-classic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .revista-classic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Card Style (clean white frame for the cover) */
.revista-card {
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.revista-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.revista-card-img-wrapper {
    width: 100%;
    aspect-ratio: 216 / 316;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    margin-bottom: 8px;
}

.revista-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text elements below cover - centered, simple */
.revista-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #000000;
    margin: 5px 0 2px;
}

.revista-card-date {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 4px;
}

/* --- LOGIN VIEW STYLES --- */
.login-view-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
}

.login-box {
    background: #ffffff;
    border: 1px solid #b3b3b3;
    padding: 2rem;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-box h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--abc-navbar-bg);
    margin-bottom: 0.5rem;
}

.login-box p {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333333;
}

.form-field input, .form-field select {
    padding: 0.5rem;
    border: 1px solid #b3b3b3;
    border-radius: 4px;
    font-size: 0.85rem;
}

.form-field input[readonly] {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    font-weight: bold;
}

.field-hint {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.login-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    font-size: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.login-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-simple {
    padding: 0.45rem 1rem;
    border-radius: 4px;
    border: 1px solid #b3b3b3;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-simple:hover {
    background: #f2f2f2;
}

.btn-blue {
    background: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
}

.btn-blue:hover {
    background: #2563eb;
}

.btn-green {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}

.btn-green:hover {
    background: #059669;
}

.btn-full {
    width: 100%;
}

/* --- ADMIN VIEW STYLES --- */
.admin-view-container {
    background: #ffffff;
    border: 1px solid #b3b3b3;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-header-row h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--abc-navbar-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .admin-split-layout {
        grid-template-columns: 1fr;
    }
}

.classic-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
}

.form-actions-row {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

/* Admin Side Panel (Preview & Code) */
.admin-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-box {
    border: 1px dashed #b3b3b3;
    padding: 1rem;
    border-radius: 6px;
    background: #f8fafc;
}

.preview-box h3, .code-box h3 {
    font-size: 0.85rem;
    font-weight: bold;
    color: #475569;
    margin-bottom: 0.75rem;
}

.preview-card-wrapper {
    display: flex;
    justify-content: center;
}

.preview-card-wrapper .revista-card {
    width: 200px;
}

/* Code box generator text area */
.code-box textarea {
    width: 100%;
    height: 110px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #0f172a;
    color: #e2e8f0;
    resize: none;
    margin-bottom: 0.5rem;
}

/* Simulated history list */
.history-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.history-section h3 {
    font-size: 0.95rem;
    font-weight: bold;
    color: #334155;
    margin-bottom: 0.75rem;
}

.simple-table-wrapper {
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.history-table th {
    background: #f1f5f9;
    padding: 0.5rem 0.75rem;
    font-weight: bold;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
}

.history-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #cbd5e1;
}

.history-table tr:last-child td {
    border-bottom: none;
}

/* --- TOAST NOTIFICATIONS --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #334155;
    border: 1px solid #b3b3b3;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    font-size: 0.8rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-color: #10b981;
}
.toast.success i {
    color: #10b981;
}

.toast.error {
    border-color: #ef4444;
}
.toast.error i {
    color: #ef4444;
}

.toast.info i {
    color: #3b82f6;
}

/* ==========================================================================
   INDEX2 ADDITIONAL STYLES (index2.html)
   ========================================================================== */
.header-social-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.follow-us-text {
    font-size: 0.75rem;
    color: var(--abc-gray-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(to right, #091a2f 35%, rgba(9, 26, 47, 0.85) 60%, rgba(9, 26, 47, 0.1) 100%), url('../../IMAGENES/laboratory_hero_bg.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    color: #ffffff;
    border-bottom: 4px solid #e28743; /* Horizontal orange stripe */
    margin-bottom: 2rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 3.5rem 1.5rem;
    min-height: 320px;
}

@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(to bottom, rgba(9, 26, 47, 0.95) 0%, rgba(9, 26, 47, 0.85) 100%), url('../../IMAGENES/laboratory_hero_bg.jpg');
        background-position: center center;
    }
    .hero-container {
        text-align: center;
        padding: 2.5rem 1rem;
        min-height: auto;
        justify-content: center;
    }
}

.hero-content {
    max-width: 650px;
    width: 100%;
}

.hero-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.hero-line {
    width: 60px;
    height: 4px;
    background-color: #e28743; /* Horizontal orange line divider */
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .hero-line {
        margin: 0 auto 1.25rem;
    }
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.btn-hero {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-hero:hover {
    background: #ffffff;
    color: #001f3f;
    transform: translateY(-1px);
}

/* Hipotecario index2 specific styles */
.hipotecario-banner.index2-banner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.hipotecario-banner .banner-text-mid {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: auto 0;
    text-align: center;
}

.banner-bottom-btn {
    width: 100%;
    margin-top: 1rem;
}

.btn-pill-action {
    display: block;
    background: #ffffff;
    color: #06b6d4;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
}

.btn-pill-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-more-info-outline {
    display: inline-block;
    background: transparent;
    border: 1px solid #ffffff;
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-more-info-outline:hover {
    background: #ffffff;
    color: #0f172a;
}

/* Section dividers with left/right lines */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: #cbd5e1;
}

.section-divider h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #475569;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Structured Validaciones Cards Grid (index2) */
.validaciones-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .validaciones-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.val-card {
    background: #003366;
    color: #ffffff;
    border-radius: 6px;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid rgba(255,255,255,0.05);
}

.val-card:hover {
    background: #001f3f;
    transform: translateY(-1px);
}

.val-card i {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

.val-card-divider {
    width: 25px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 0.15rem 0 0.35rem;
}

.val-card strong {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Servicios Grid in 4 Columns (index2) */
.servicios-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .servicios-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.srv-card {
    background: #0d9488;
    color: #ffffff;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.1s;
    height: 100%;
}

.srv-card:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

.srv-card i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.srv-card span {
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.2;
}

/* 5 Columns Bottom Cards Row (index2) */
.bottom-cards-row-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 0.65rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 1100px) {
    .bottom-cards-row-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bottom-cards-row-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bottom-cards-row-5 {
        grid-template-columns: 1fr;
    }
}

.bottom-card-v5 {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    transition: all 0.2s;
}

.bottom-card-v5:hover {
    border-color: #94a3b8;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.bottom-card-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.35rem;
    margin-bottom: 0.5rem;
}

.bottom-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bottom-card-body h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 0.25rem;
}

.bottom-card-body p {
    font-size: 0.65rem;
    color: var(--abc-gray-dark);
    line-height: 1.3;
}

.bottom-card-footer {
    margin-top: 0.75rem;
    width: 100%;
}

.btn-card-action {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-card-action:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-card-action.red-btn {
    border-color: #fca5a5;
    color: #b91c1c;
}

.btn-card-action.red-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}



.sss-card-v5 {
    background: #fef2f2;
    border-color: #fca5a5;
}

.copago-logo-v5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-top: 0.25rem;
}

/* Sidebar Right v2 cards (with bottom action buttons) */
.sidebar-card-v2 {
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    box-shadow: var(--shadow-soft);
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.sidebar-card-v2.yellow-card-v2 {
    background: #fef9c3;
    border: 1px solid #fde047;
}

.sidebar-card-v2.green-card-v2 {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.sidebar-card-v2.gornitz-card-v2 {
    background: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}

.sidebar-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-card-v2 .sidebar-card-top {
    flex-direction: row;
}

.sidebar-card-top i {
    font-size: 1.25rem;
}

.yellow-card-v2 .sidebar-card-top i {
    color: #a16207;
}

.green-card-v2 .sidebar-card-top i {
    color: #15803d;
}

.sidebar-card-title h3 {
    font-size: 0.8rem;
    font-weight: 700;
}

.sidebar-card-title p {
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 0.1rem;
}

.sidebar-card-bottom {
    margin-top: 0.85rem;
    width: 100%;
}

.btn-sidebar-action {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.yellow-card-v2 .btn-sidebar-action {
    border-color: #ca8a04;
    color: #854d0e;
    background: rgba(255, 255, 255, 0.5);
}

.yellow-card-v2 .btn-sidebar-action:hover {
    background: #ffffff;
}

.green-card-v2 .btn-sidebar-action {
    border-color: #16a34a;
    color: #166534;
    background: rgba(255, 255, 255, 0.5);
}

.green-card-v2 .btn-sidebar-action:hover {
    background: #ffffff;
}

/* Gornitz Card Redesign v2 */
.gornitz-header-v2 {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.gornitz-header-v2 i {
    font-size: 1.15rem;
}

.gornitz-header-v2 h4 {
    font-size: 0.65rem;
    font-weight: 700;
}

.gornitz-header-v2 span {
    font-size: 0.55rem;
    opacity: 0.8;
}

.gornitz-body-v2 h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.gornitz-body-v2 p {
    font-size: 0.65rem;
    line-height: 1.3;
    opacity: 0.9;
}

.btn-sidebar-action-red {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-sidebar-action-red:hover {
    background: #ffffff;
    color: #991b1b;
    border-color: #ffffff;
}

/* Utility Helpers for Bootstrap 5 Integration in index2.html */
.color-navy {
    color: #001f3f !important;
}

.bg-navy {
    background-color: #001f3f !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.fw-black {
    font-weight: 900 !important;
}

.small-text {
    font-size: 0.6rem !important;
}

/* Index2 Specific Overrides */
.index2-body {
    background-color: #f1f5f9;
}

.index2-body a {
    text-decoration: none;
}

.index2-body .info-col {
    display: flex;
    align-items: start;
}

.index2-body .info-col i {
    color: #001f3f;
    margin-top: 0.15rem;
}

.index2-body .info-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 0.15rem;
}

.index2-body .info-col p {
    font-size: 0.7rem;
    line-height: 1.3;
}

.index2-body .bottom-card-v5 {
    border: 1px solid #cbd5e1;
    min-height: auto;
}

.index2-body .bottom-card-v5 h3 {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.index2-body .bottom-card-v5 p {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #1e293b;
    font-weight: 500;
}

.index2-body .bottom-card-v5 .btn-card-action {
    font-size: 0.78rem;
    padding: 0.45rem 0.6rem;
}

/* Logos/header labels inside bottom cards */
.index2-body .bottom-card-v5 .card-logo-abc-green span,
.index2-body .bottom-card-v5 .card-logo-abc-gray span {
    font-size: 1.1rem;
}

.index2-body .bottom-card-v5 .brand-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.index2-body .bottom-card-v5 .sss-title {
    font-size: 0.72rem;
}

.index2-body .bottom-card-v5 .important-tag {
    font-size: 0.75rem;
}

.index2-bottom-info-box {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* ==========================================================================
   MOBILE & COMPATIBILITY IMPROVEMENTS (INDEX2 RESPONSIVE CENTERING)
   ========================================================================== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.index2-body {
    background-color: #f1f5f9;
    width: 100%;
    overflow-x: hidden;
}

/* Header Responsive Centering */
@media (max-width: 767.98px) {
    .home-header .container {
        text-align: center;
    }
    .header-logo {
        margin: 0 auto 0.5rem;
    }
    .header-info {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        text-align: center !important;
    }
    .header-info h1 {
        font-size: 1.2rem !important;
        text-align: center !important;
    }
    .contact-details {
        font-size: 0.72rem;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    .contact-details span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .header-social-row {
        justify-content: center !important;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Navbar Responsive Drawer */
.home-navbar .navbar-toggler {
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 6px;
}

.home-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

@media (max-width: 991.98px) {
    .home-navbar .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
        padding: 0.5rem 0;
        text-align: center;
    }
    .home-navbar .nav-links li {
        width: 100%;
    }
    .home-navbar .nav-links li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
        border-radius: 6px;
        font-size: 0.85rem;
    }
    .home-navbar .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.5rem;
        align-items: center;
    }
    .home-navbar .nav-btn {
        display: block;
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-all;
    }
}

/* Hero Section Centering on Mobile */
@media (max-width: 767.98px) {
    .hero-container {
        text-align: center !important;
        justify-content: center !important;
        padding: 2rem 1rem !important;
    }
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    .hero-content h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        text-align: center;
    }
    .hero-line {
        margin: 0 auto 1.25rem !important;
    }
    .btn-hero {
        margin: 0 auto;
    }
}

/* Section Dividers Responsive Centering */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 1.25rem;
    width: 100%;
}

.section-divider .divider-line {
    flex: 1 1 0px;
    min-width: 0;
    height: 1px;
    background-color: #cbd5e1;
}

.section-divider h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.72rem, 2.5vw, 0.85rem);
    font-weight: bold;
    color: #475569;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: normal;
    text-align: center;
    margin: 0;
}

/* Responsive Grid Buttons for Mobile (< 576px) */
@media (max-width: 576px) {
    .val-card {
        padding: 0.6rem 0.35rem !important;
        text-align: center;
    }
    .val-card strong {
        font-size: 0.65rem !important;
        word-break: break-word;
    }
    .srv-card {
        padding: 0.5rem 0.4rem !important;
        gap: 0.35rem !important;
        justify-content: center;
        text-align: center;
    }
    .srv-card span {
        font-size: 0.6rem !important;
        line-height: 1.25 !important;
        word-break: break-word;
    }
    .index2-body .bottom-card-v5 {
        min-height: auto !important;
    }
    .info-col {
        justify-content: center;
        text-align: center;
    }
    .info-col i {
        margin-bottom: 0.35rem;
    }
}

/* Image & GIF Banner Hover Effects */
.hover-zoom {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-zoom:hover {
    transform: scale(1.025);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Footer Badges & Logo Styling */
.home-footer img,
.footer-badge-img {
    height: 80px ;
    max-height: 85px t;
    width: auto ;
    object-fit: contain;
    border-radius: 4px;
    background-color: #ffffff;
    padding: 3px 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.home-footer img:hover,
.footer-badge-img:hover {
    transform: translateY(-2px) scale(1.04);
    opacity: 0.95;
}

/* Uniform Compact Bottom Cards Row */
.bottom-card-compact {
    height: 110px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bottom-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    border-color: #94a3b8;
}

.bottom-card-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* ==========================================================================
   OFFERS OFERTAS DEL DÍA & PROVEEDURÍA ABC STYLES
   ========================================================================== */

/* Offers Popup Modal Backdrop */
.offers-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offers-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Offers Modal Content Card */
.offers-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 540px;
    width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    position: relative;
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.offers-modal-backdrop.show .offers-modal-card,
.offers-modal-backdrop.active .offers-modal-card {
    transform: scale(1);
}

.offers-modal-header {
    background: linear-gradient(135deg, #001f3f, #0284c7);
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.offers-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offers-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.offers-modal-close:hover,
.offers-modal-close:active {
    background: rgba(255, 255, 255, 0.4);
}

.offers-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
    text-align: center;
}

.offers-carousel-item {
    text-align: center;
    position: relative;
    border-radius: 8px;
}

.offers-carousel-item img {
    max-height: 48vh !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    background: #f8fafc;
    margin: 0 auto;
    display: block;
}

.offers-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Dedicated Offers Page (.offer-card) */
.offer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.offer-card-img-wrapper {
    position: relative;
    width: 100%;
    background: #f1f5f9;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.offer-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Sold Out (Agotado) Styles */
.offer-card.sold-out .offer-card-img-wrapper img {
    opacity: 0.5;
    filter: grayscale(60%);
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background: #dc2626;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.75rem;
    border: 3px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

.offer-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.offer-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 0.5rem;
}

.offer-card-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Admin Offers Manager Table / Items */
.admin-offer-card-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.badge-sold-out {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Eye-Catching Offers Section on Index */
.index-offers-banner-section {
    background: #e2e8f0;
}

.index-offers-card {
    background: linear-gradient(135deg, #001f3f 0%, #0284c7 100%);
    border: 2px solid #0284c7;
}

.animated-pulse {
    animation: pulseGlow 1.6s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px #f59e0b); }
    100% { transform: scale(1.22); filter: drop-shadow(0 0 10px #f59e0b); }
}

.btn-offers-cta {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-offers-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45) !important;
}

.offer-banner-img-link {
    position: relative;
    display: block;
}

.offer-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.offer-banner-img-link:hover .offer-banner-overlay {
    opacity: 1;
}

.index-offer-img {
    max-height: 240px;
    object-fit: cover;
}

/* ==========================================================================
   STANDALONE ADMIN DASHBOARD STYLES (admin.html)
   ========================================================================== */
.admin-page-body {
    background-color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Login Wrapper */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #091a2f 0%, #0284c7 100%);
    padding: 1.5rem;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
}

/* Admin Dashboard Layout */
.admin-dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: #001f3f;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-sidebar-header {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    gap: 0.35rem;
}

.admin-nav-item {
    background: transparent;
    border: none;
    color: #cbd5e1;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-nav-item.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Workspace */
.admin-main-workspace {
    flex-grow: 1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .admin-dashboard-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
}

/* ==========================================================================
   COMPLETE MOBILE RESPONSIVE OVERHAUL (SMARTPHONE OPTIMIZATION)
   ========================================================================== */

/* Prevent horizontal body overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

/* Mobile Media Queries (<768px Smartphones) */
@media (max-width: 767.98px) {
    /* Header & Contact Details */
    .home-header {
        padding: 0.75rem 0.5rem;
    }
    
    .contact-details {
        font-size: 0.7rem !important;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem !important;
        text-align: center;
    }

    .contact-details span {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .header-info h1 {
        font-size: 1.15rem !important;
        text-align: center;
    }

    /* Hero Section */
    .hero-content h2 {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.85rem !important;
    }

    /* Validaciones & Servicios Cards */
    .val-card, .srv-card {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.75rem !important;
    }

    .val-card strong, .srv-card strong {
        font-size: 0.72rem !important;
        word-break: break-word;
    }

    /* Offers Index Banner Section */
    .index-offers-card {
        border-radius: 16px !important;
    }

    .index-offers-card h2 {
        font-size: 1.35rem !important;
    }

    .btn-offers-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* Popup Modal Mobile Optimization */
    .offers-modal-card {
        width: 94% !important;
        max-height: 85vh !important;
        margin: 1rem auto;
        padding: 0 !important;
        overflow-y: auto !important;
    }

    .offers-modal-body {
        padding: 1rem !important;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Revista Page Mobile Filters */
    .revista-header-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .revista-simple-filters {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .filter-group input, .filter-group select {
        width: 100% !important;
    }

    .revista-classic-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 0.75rem !important;
    }

    /* Admin Dashboard Mobile */
    .admin-main-workspace {
        padding: 0 !important;
    }

    .admin-topbar {
        padding: 0.75rem 1rem !important;
    }

    .admin-login-card {
        margin: 1rem;
        padding: 0 !important;
    }

    .admin-login-card .card-body {
        padding: 1.5rem !important;
    }

    /* Footer Badges Mobile Optimization */
    .footer-badge-img {
        max-height: 36px !important;
        width: auto !important;
        height: auto !important;
        max-width: 130px !important;
        object-fit: contain !important;
        padding: 2px 4px !important;
    }

    /* Small Smartphone Tweaks (<480px) */
    .logo-letters {
        font-size: 1.75rem !important;
    }

    .logo-years {
        font-size: 0.75rem !important;
    }

    .btn-back-home {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   POP-UP LATERAL - NOVEDADES (Widget Desplegable)
   ========================================================================== */
.side-novedad-widget {
    position: fixed;
    top: 25%;
    left: 0;
    z-index: 1050;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
}

.side-novedad-widget.collapsed {
    transform: translateX(-100%);
}

.side-novedad-content {
    width: 360px;
    max-width: 82vw;
    background: #ffffff;
    border: 4px solid #e28743;
    border-left: none;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    box-shadow: 8px 10px 32px rgba(0, 0, 0, 0.28);
}

.side-novedad-content a {
    display: block;
    background: #ffffff;
    text-decoration: none;
    line-height: 1;
}

.side-novedad-content img {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 520px;
    object-fit: contain;
    display: block;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.side-novedad-content img:hover {
    transform: scale(1.02);
}

.side-novedad-tab-btn {
    position: absolute;
    left: 100%;
    top: 20px;
    background-color: #e28743;
    color: #ffffff;
    border: none;
    outline: none;
    border-radius: 0 14px 14px 0;
    padding: 18px 11px 22px 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.28);
    transition: background-color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.side-novedad-tab-btn:hover {
    background-color: #cf732f;
}

.side-novedad-tab-btn:active {
    transform: scale(0.96);
}

.side-novedad-arrow {
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1;
    display: block;
}

.side-novedad-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .side-novedad-widget {
        top: 20%;
    }
    .side-novedad-content {
        width: 260px;
    }
    .side-novedad-content img {
        min-height: 140px;
        max-height: 380px;
    }
    .side-novedad-tab-btn {
        padding: 14px 9px 16px 9px;
        gap: 8px;
    }
    .side-novedad-arrow {
        font-size: 1.15rem;
    }
    .side-novedad-text {
        font-size: 0.9rem;
        letter-spacing: 0.12em;
    }
}

/* --- ADMIN NOVEDADES ENHANCEMENTS --- */
.shadow-xs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dest-type-card {
    transition: all 0.22s ease-in-out;
    background: #f8fafc;
    border: 2px solid #e2e8f0 !important;
    user-select: none;
}

.dest-type-card:hover {
    border-color: #0284c7 !important;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.dest-type-card.active {
    border-color: #0284c7 !important;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.small-text {
    font-size: 0.76rem;
}