


/* ===================================
   AC SOLAR Outlet Store - Estilos CSS
   Paleta de Colores:
   - #005B96 (azul profundo)
   - #A8D5E2 (azul claro / aqua)
   - #FFFFFF (blanco)
   - #333333 (gris casi negro)
   =================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.raffle-success {
    padding: 2.5rem 0 3.5rem;
}

.raffle-success__message {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.raffle-success__title {
    color: #2e7d32;
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.raffle-success__paragraph {
    margin-bottom: 1rem;
    color: #35543b;
    max-width: 640px;
}

.raffle-success__card {
    background: #f4f9f4;
    border: 1px solid #c8e6c9;
    border-radius: 16px;
    padding: 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 12px 24px rgba(46, 125, 50, 0.08);
}

.raffle-success__subtitle {
    color: #1b5e20;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.raffle-success__item {
    margin-bottom: 0.75rem;
    color: #1b5e20;
}

.raffle-success__tickets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.raffle-success__ticket-chip {
    background: #e0f2f1;
    color: #00695c;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.raffle-success__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .raffle-success {
        padding: 1.75rem 0 2.5rem;
        text-align: center;
    }

    .raffle-success__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .raffle-success__paragraph {
        margin-left: auto;
        margin-right: auto;
    }

    .raffle-success__card {
        padding: 1.5rem;
        margin: 1.25rem 0;
        text-align: left;
    }

    .raffle-success__tickets {
        justify-content: center;
    }

    .raffle-success__actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .raffle-success__card {
        padding: 1.25rem;
    }

    .raffle-success__ticket-chip {
        font-size: 0.85rem;
        padding: 0.3rem 0.65rem;
    }

    .raffle-success__subtitle {
        font-size: 1.1rem;
    }

    .raffle-success__item {
        font-size: 0.95rem;
    }
}

:root {
    --color-primary: color-mix(in srgb, #006996 65%, #00ffaa);
    --color-secondary: #A8D5E2;
    --color-white: #FFFFFF;
    --color-dark: #333333;
    --color-light-gray: #f5f5f5;
    --shadow-sm: 0 2px 4px rgba(0, 91, 150, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 91, 150, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 91, 150, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER Y NAVEGACIÓN
   =================================== */

.main-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.navbar {
    padding: 0.5rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #003d66 100%);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('../images/Logot.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    animation: floatLogo 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background-image: url('../images/Logot.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;

    bottom: 20%;
    right: 15%;
    transform: translate(-100%, 100%);
    animation: floatLogo 8s ease-in-out infinite reverse;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    25% {
        transform: translate(-40%, -60%) rotate(5deg);
    }
    50% {
        transform: translate(-50%, -40%) rotate(0deg);
    }
    75% {
        transform: translate(-60%, -60%) rotate(-5deg);
    }
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BOTONES
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #004578 100%);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 6px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #8fc3d4;
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-light:hover {
    background-color: var(--color-secondary);
}

.btn-card {
    width: 100%;
    padding: 0.75rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===================================
   CARACTERÍSTICAS
   =================================== */

.features {
    padding: 4rem 0;
    background-color: var(--color-light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 91, 150, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotateY(180deg);
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* ===================================
   PRODUCTOS
   =================================== */

.featured-products,
.shop-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-dark);
    opacity: 0.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.badge-descuento {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: var(--color-white);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: var(--color-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image on all screens (PC + mobile) */
    background: #fff;
}

/* Show full image on small screens */
@media (max-width: 600px) {
    .product-image { height: 260px; }
    .product-image img { object-fit: contain; background: #fff; }
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.product-brand,
.product-power,
.product-description {
    font-size: 0.9rem;
    color: var(--color-dark);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.product-power {
    color: var(--color-primary);
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-anterior {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #999;
}

.stock-status {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.stock-status.disponible {
    color: #28a745;
}

.stock-status.agotado {
    color: #dc3545;
}

.no-products,
.no-results {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.text-center {
    text-align: center;
}

/* ===================================
   PÁGINA DE TIENDA
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #003d66 100%);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.shop-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.shop-sidebar {
    background-color: var(--color-light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-input,
.orden-select,
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus,
.orden-select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--color-dark);
    border-radius: 8px;
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.sidebar-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.sidebar-cta h4 {
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.products-count {
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    opacity: 0.7;
}

/* ===================================
   CONTACTO
   =================================== */

.contact-section {
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-section,
.contact-form-section {
    background-color: var(--color-light-gray);
    padding: 2rem;
    border-radius: 12px;
}

.contact-info-section h2,
.contact-form-section h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-secondary);
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-link {
    display: block;
    padding: 0.75rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

textarea.form-control {
    resize: vertical;
    font-family: 'Roboto', sans-serif;
}

.form-info {
    font-size: 0.9rem;
    color: var(--color-dark);
    opacity: 0.7;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #8fc3d4 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--color-dark);
    opacity: 0.8;
}

/* ===================================
   FOOTER
   =================================== */

.main-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.contact-info li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(168, 213, 226, 0.2);
}

/* ===================================
   ADMIN (usa el mismo estilo general)
   =================================== */

.admin-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.admin-mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.admin-nav .nav-links { display: flex; }

@media (max-width: 768px) {
    .admin-nav .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-primary); padding: 0.75rem 1rem; box-shadow: var(--shadow-md); }
    .admin-nav .nav-links.active { display: flex; flex-direction: column; gap: 0.5rem; }
    .admin-mobile-menu-btn { display: flex; }
    .admin-nav a { background-color: rgba(255,255,255,0.15); }
}

.admin-nav h1 {
    font-size: 1.5rem;
}

.admin-nav .user-info,
.admin-nav .nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-nav a {
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.admin-nav a:hover {
    background-color: rgba(255,255,255,0.3);
}

.admin-content,
.email-content {
    padding: 2rem 0;
}

.products-table,
.email-form-container {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.table-header {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-edit { background-color: #17a2b8; color: #fff; }
.btn-delete { background-color: #dc3545; color: #fff; }
.btn-send { background-color: #28a745; color: #fff; }
.btn-send:hover { background-color: #218838; transform: translateY(-2px); }

.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===================================
   ADMIN DASHBOARD REDESIGN (PC)
   =================================== */

/* Layout & Background */
body.admin-body {
    background-color: #f4f7f6;
}

.admin-content {
    padding: 2rem 0;
    min-height: 80vh;
}

/* Header Redesign */
.admin-header {
    background: linear-gradient(to right, #005B96, #004e80);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-nav h1 {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
}

@media (min-width: 769px) {
    .admin-nav .nav-links {
        gap: 2rem;
    }
    
    .admin-nav a {
        background: transparent;
        padding: 0.5rem 0;
        border-radius: 0;
        position: relative;
        opacity: 0.9;
    }
    
    .admin-nav a:hover {
        background: transparent;
        opacity: 1;
    }
    
    .admin-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #fff;
        transition: width 0.3s ease;
    }
    
    .admin-nav a:hover::after {
        width: 100%;
    }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #005B96;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #005B96;
    margin: 0;
    font-weight: 800;
}

.stat-card p {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.products-table, .categories-table {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: none;
}

.table-header {
    background: white;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    color: #333;
    font-size: 1.25rem;
    margin: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px; /* Ensure table doesn't squash too much */
}

th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #eee;
    white-space: nowrap; /* Prevent headers from wrapping awkwardly */
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fcfcfc;
}

/* Badges */
.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-activo { background-color: #e6f4ea; color: #1e7e34; }
.badge-inactivo { background-color: #fbe9eb; color: #c0392b; }
.badge-destacado { background-color: #fff8e1; color: #f39c12; }

/* Buttons */
.btn-small {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Messages */
.message-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #005B96;
    transition: transform 0.2s;
}

.message-card:hover {
    transform: translateX(5px);
}

.message-card.unread {
    border-left-color: #ff4757;
    background-color: #fff;
}

.message-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-control, input[type="text"], input[type="number"], select, textarea {
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #005B96;
    outline: none;
}

/* Modal */
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* Admin Forms Extra */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

input[type="file"] {
    padding: 0.5rem !important;
    background: white;
}

#imagePreview {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Messages Extra */
.messages-list {
    display: grid;
    gap: 1.5rem;
}

.message-info h3 {
    color: #005B96;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.message-meta {
    font-size: 0.9rem;
    color: #666;
}

.message-date {
    font-size: 0.85rem;
    color: #999;
}

.message-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.message-body h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.message-text {
    color: #666;
    line-height: 1.6;
}

.badge-new {
    background-color: #ff4757;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-delete-msg {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-delete-msg:hover {
    background-color: #c82333;
}

/* Categories Extra */
.icon-preview {
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

/* Email Form Extra */
.form-section {
    margin-bottom: 1.5rem;
}

.form-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-section input[type="text"],
.form-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-section input[type="text"]:focus,
.form-section textarea:focus {
    border-color: #005B96;
    outline: none;
}

.form-section textarea {
    min-height: 200px;
    font-family: inherit;
    resize: vertical;
}

/* Galería de imágenes guardadas */
.saved-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.image-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.image-option:hover {
    border-color: #005B96;
    box-shadow: 0 4px 12px rgba(0, 91, 150, 0.15);
    transform: translateY(-2px);
}

.image-option input[type="radio"] {
    display: none;
}

.image-option input[type="radio"]:checked + .image-thumbnail {
    border-color: #005B96;
    box-shadow: 0 0 0 3px rgba(0, 91, 150, 0.2);
}

.image-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.image-name {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    word-break: break-all;
    max-width: 100%;
}

.image-option:has(input[type="radio"]:checked) {
    border-color: #005B96;
    background: linear-gradient(135deg, rgba(0, 91, 150, 0.05), rgba(168, 213, 226, 0.05));
}

.recipients-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.recipient-list {
    max-height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.recipient-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: background-color 0.2s;
}

.recipient-item:hover {
    background-color: #f0f8ff;
}

.recipient-item input[type="checkbox"] {
    width: auto;
}

.select-all-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #005B96;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.select-all-btn:hover {
    background: #004578;
}

.info-box {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #bbdefb;
}

/* ===================================
   CATÁLOGOS PDF
   =================================== */

.catalog-section {
    padding: 4rem 0;
}

.catalog-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.catalog-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
}

.pdf-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
}

.btn-download {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    transition: var(--transition);
}

.btn-download:hover {
    background: linear-gradient(135deg, #218838 0%, #17a2b8 100%);
    transform: translateY(-2px);
}

/* ===================================
   SORTEO BANNER
   =================================== */

/* ===================================
   SORTEO HERO & BANNER
   =================================== */
.sorteo-banner {
    position: relative;
    padding: 4rem 0 5rem;
    text-align: center;
    color: #ffffff;
    /* Elegante degradado oscuro */
    background: linear-gradient(135deg, #0e1e36 0%, #152d53 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Efecto de fondo sutil (patrón moderno) */
.sorteo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.8;
    z-index: 0;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.sorteo-banner::after {
    display: none;
}

.sorteo-banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sorteo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ff9e42;
    border: 1px solid rgba(255, 158, 66, 0.3);
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    margin-bottom: 1rem;
}

.sorteo-banner-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sorteo-banner-title .highlight {
    background: linear-gradient(90deg, #ff9e42 0%, #ffc58a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sorteo-banner-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #b0c4de;
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;
}

/* ===================================
   SORTEO BODY
   =================================== */

.sorteo-main-content {
    padding: 2.5rem 0 4rem;
    margin-top: 0; /* Sin superponer el banner, baja el bloque principal */
    position: relative;
    z-index: 10;
}

.sorteo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .sorteo-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 3rem;
    }
}

/* Imagen del producto: estilo tarjeta limpia */
.sorteo-image-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Sombra suave */
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    /* Aspect ratio placeholder si la imagen carga lento */
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sorteo-image {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply; /* Si la imagen tiene fondo blanco, esto ayuda a integrarla */
}

/* Tarjeta de video */
.sorteo-video-card {
    margin-top: 2rem;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sorteo-video-title {
    color: #fff; 
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.sorteo-video-text {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.sorteo-video-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Formulario / Panel de compra */
.sorteo-form-box {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative;
}

.sorteo-form-box::before { display: none; }

.sorteo-form-title {
    color: #111;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.sorteo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.sorteo-features li {
    padding: 0.6rem 0;
    color: #555;
    font-size: 1.05rem;
    display: flex;
    gap: 10px;
}

.sorteo-features li::before {
    content: '✓';
    color: #2e7d32;
    font-weight: bold;
    background: #e8f5e9;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sorteo-secure-purchase {
    font-size: 0.9rem;
    color: #666;
    background: #f9f9f9;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid #2196f3;
}

/* Input cantidad */
.ticket-quantity-section { 
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.ticket-quantity-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.ticket-quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ticket-quantity-input {
    font-size: 1.4rem;
    font-weight: 700;
    width: 92px;
    padding: 0.55rem 0.5rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
}

.ticket-quantity-input:focus {
    border-color: #004578;
    outline: none;
}

.quantity-step {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    color: #111;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quantity-step:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.quantity-step:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.quantity-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.ticket-quantity-summary {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

/* Botones */
.sorteo-actions {
    display: grid;
    gap: 1rem;
}

/* Btn ATH (Specific override updates) */
.btn-ath {
    background: #fff;
    color: #333;
    border: 2px solid #f0f0f0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-ath:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.btn-ath-logo {
    height: 24px;
    width: auto;
}

/* Progress bar clean up */
.sorteo-progress {
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 0 0 10px 0; 
    margin-bottom: 1.5rem;
    box-shadow: none;
    overflow: visible;
}
.sorteo-progress::before { display: none; }

.sorteo-progress-bar {
    height: 8px;
    background: #28a745;
    border-radius: 8px;
    box-shadow: none;
    width: var(--sold-progress, 0%);
    transition: width 0.35s ease;
}

.sorteo-progress-legend {
    color: #666;
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 500;
}

.sorteo-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-top: 1.25rem;
    font-weight: 600;
    color: #1d2c3f;
}

.sorteo-trust div {
    background: #f5f7fb;
    border: 1px solid #e6eef5;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.btn-sorteo {
    background: #ffffff;
    color: #ff6b35;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-sorteo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    filter: brightness(1.02);
}

/* Promo box especial */
.sorteo-promo-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    animation: promoPulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.promo-icon {
    font-size: 2.5rem;
    animation: promoRotate 3s ease-in-out infinite;
}

.promo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.promo-text strong {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-text span {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes promoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6);
    }
}

@keyframes promoRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@media (max-width: 640px) {
    .sorteo-promo-box {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
        margin: 1rem 0;
    }
    
    .promo-text {
        align-items: center;
        gap: 0.35rem;
    }
    
    .promo-text strong {
        font-size: 1rem;
    }
    
    .promo-text span {
        font-size: 0.88rem;
        line-height: 1.4;
    }
    
    .promo-icon {
        font-size: 2.2rem;
    }
}

/* ===================================
   SORTEO MODAL
   =================================== */

.sorteo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 1rem;
}

.sorteo-modal-overlay.is-open { display: flex; }

.sorteo-modal {
    background: #ffffff;
    width: min(560px, 96vw);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid #e6eef5;
}

.sorteo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sorteo-modal-header h3 {
    margin: 0;
    color: #0f2c4f;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #0f2c4f;
}

.sorteo-modal-steps {
    margin: 0 0 0.85rem 1.25rem;
    color: #1d2c3f;
}

.sorteo-modal-warning {
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    color: #b02a37;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
}

.sorteo-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.1rem;
}

.sorteo-modal-note {
    font-size: 0.92rem;
    color: #5a6a80;
    margin-top: 0.65rem;
}

/* ===================================
   SORTEO MOBILE TUNING
   =================================== */

@media (max-width: 640px) {
    .sorteo-banner {
        padding: 2.4rem 0 2.8rem;
    }

    .sorteo-badge {
        font-size: 0.85rem;
        padding: 0.45rem 1rem;
    }

    .sorteo-banner-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .sorteo-banner-text {
        font-size: 0.98rem;
    }

    .sorteo-main-content {
        padding: 1.6rem 0 2.2rem;
    }

    .sorteo-grid {
        gap: 1.25rem;
    }

    .sorteo-image-wrapper {
        padding: 0.6rem;
    }

    .sorteo-form-box {
        padding: 1.25rem;
    }

    .sorteo-security-strip {
        gap: 0.4rem;
        font-size: 0.92rem;
    }

    .security-chip {
        width: 100%;
        justify-content: center;
    }

    .ticket-quantity-input-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .ticket-quantity-input {
        width: 96px;
    }

    .ticket-quantity-summary {
        width: 100%;
        text-align: left;
        margin-top: 0.4rem;
    }

    .sorteo-progress-legend {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.9rem;
    }

    .sorteo-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .sorteo-actions .btn {
        width: 100%;
        text-align: center;
    }

    .sorteo-trust {
        grid-template-columns: 1fr;
    }

    .sorteo-modal {
        width: 100%;
        padding: 1.25rem;
    }

    .sorteo-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sorteo-modal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 968px) {
    .shop-wrapper {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 45px;
        max-width: 150px;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        align-items: center; /* centrar elementos horizontalmente */
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        text-align: center; /* centrar texto de las opciones */
    }
    
    .hero::before {
        display: none; /* ocultar logos flotantes en móvil */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Admin mobile improvements */
    .admin-header { padding: 0.75rem 0; }
    .admin-nav h1 { font-size: 1.1rem; }
    .admin-nav .user-info, .admin-nav .nav-links { gap: 0.5rem; }
    .admin-nav a { padding: 0.4rem 0.7rem; border-radius: 6px; }

    .email-form-container { padding: 1rem; border-radius: 10px; }
    .form-section label { font-size: 0.95rem; }
    .form-section input[type="text"],
    .form-section textarea,
    .form-control { padding: 0.6rem; font-size: 0.95rem; }

    .recipient-list { grid-template-columns: 1fr; max-height: 240px; }
    .recipient-item { padding: 0.4rem; }
    .select-all-btn { width: 100%; border-radius: 8px; }
    .btn-send { width: 100%; padding: 0.9rem 1rem; font-size: 1rem; }
    .products-table table th, .products-table table td { padding: 0.75rem; }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-stats {
        gap: 1.5rem;
    }
}

/* PRODUCT MODAL CSS moved to product-modal.css to keep storefront CSS focused */

/* Admin Mobile Menu Fixes */
@media (max-width: 768px) {
    .admin-nav {
        position: relative;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .admin-mobile-menu-btn {
        display: block !important; /* Force display */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
    }

    .admin-mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.3s;
    }

    .admin-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #005B96;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1001;
        width: 100%;
        box-sizing: border-box;
    }

    .admin-nav .nav-links.active {
        display: flex;
    }

    .admin-nav .nav-links a, 
    .admin-nav .nav-links span {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .admin-nav h1 {
        font-size: 1.1rem;
        margin-right: auto;
        max-width: 70%;
    }
}
/* ===================================
   MEJORAS VISUALES ADMIN (PC & MÓVIL)
   =================================== */

/* Contenedor de formularios centrado y limitado en PC */
.email-form-container {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
}

/* Grid de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: linear-gradient(135deg, #005B96, #0077BE);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
}

.stat-box p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Formularios en línea (Grid) */
.form-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Filas de participantes */
.participante-row {
    background: white;
    padding: 1.25rem;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.participante-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.participante-row.confirmado {
    background: linear-gradient(to right, #f0fdf4, #ffffff);
    border-left: 4px solid #4caf50;
}

.boleto-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.participante-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.participante-info strong {
    font-size: 1.1rem;
    color: var(--color-dark);
}

.participante-actions {
    display: flex;
    gap: 0.5rem;
}

/* Toggle Switch mejorado */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Ajustes Responsive específicos */
@media (max-width: 768px) {
    .email-form-container {
        padding: 1.25rem;
        margin: 0;
    }
    
    .participante-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .boleto-badge {
        margin: 0 auto;
        display: inline-block;
    }
    
    .participante-actions {
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .participante-actions .btn {
        flex: 1;
    }
}
