* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #8B1F1F 0%, #B91C1C 50%, #DC2626 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: none;
    animation: fadeInDown 0.8s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-header {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-header {
        width: 100px;
        height: 100px;
    }
    
    .header-text {
        text-align: center;
    }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

header h1 {
    font-size: 2.2em;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 40px rgba(255,255,255,0.2);
    animation: pulse 2s ease-in-out infinite;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.subtitle {
    font-size: 1.5em;
    opacity: 0.98;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.header-description {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.loading {
    text-align: center;
    color: white;
    padding: 50px;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: none;
}

.error p {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.error button {
    background: #8B1F1F;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.error button:hover {
    background: #B91C1C;
}

.hidden {
    display: none !important;
}

/* Layout principal horizontal */
.main-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.voting-column {
    flex: 0 0 70%;
    min-width: 0;
}

.instagram-column {
    flex: 0 0 30%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out;
    position: sticky;
    top: 20px;
}

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

.instagram-column .instagram-header {
    text-align: center;
    margin-bottom: 20px;
}

.instagram-column .instagram-header h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 700;
}

.instagram-column .instagram-header p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.instagram-column .instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: none;
}

.instagram-column .instagram-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: none;
}

.instagram-column .instagram-embed {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    max-height: 600px;
    width: 100%;
}

.instagram-media {
    min-width: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: none;
    background: white;
}

.pizzerias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pizzeria-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: none;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

.pizzeria-card:nth-child(1) { animation-delay: 0.1s; }
.pizzeria-card:nth-child(2) { animation-delay: 0.2s; }
.pizzeria-card:nth-child(3) { animation-delay: 0.3s; }
.pizzeria-card:nth-child(4) { animation-delay: 0.4s; }
.pizzeria-card:nth-child(5) { animation-delay: 0.5s; }
.pizzeria-card:nth-child(6) { animation-delay: 0.6s; }

.pizzeria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 31, 31, 0.2), transparent);
    transition: left 0.5s;
}

.pizzeria-card:hover::before {
    left: 100%;
}

.pizzeria-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: none;
}

.pizzeria-card h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 700;
}

.pizzeria-card p {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.9em;
}

.pizzeria-card .vote-btn {
    background: linear-gradient(135deg, #8B1F1F 0%, #B91C1C 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    width: 100%;
    transition: transform 0.2s;
}

.pizzeria-card .vote-btn:hover {
    transform: scale(1.05);
}

/* Tarjeta "Ver más" en móviles */
.more-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 2px dashed rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-8px);
}

.more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.more-icon {
    font-size: 3em;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.more-content h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.more-content p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeInModal 0.3s ease-out;
    padding: 20px;
    overflow-y: auto;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    border-radius: 25px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: none;
    animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin: auto;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.modal-close-btn:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-header-custom {
    background: linear-gradient(135deg, #8B1F1F 0%, #B91C1C 100%);
    padding: 35px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.modal-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounceIcon 1s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.modal-header-custom h2 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 2em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.selected-pizzeria-banner {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pizzeria-label {
    font-size: 0.85em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pizzeria-name {
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.modal-body-custom {
    padding: 35px 30px;
}

.info-box {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    box-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.info-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    color: #2d3436;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.info-content p {
    color: #636e72;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.form-group-modern {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.input-wrapper:focus-within {
    border-color: #B91C1C;
    box-shadow: 0 4px 20px rgba(139, 31, 31, 0.3);
    transform: translateY(-2px);
}

.input-icon {
    font-size: 1.5em;
    padding: 0 15px;
    color: #B91C1C;
}

.input-wrapper input {
    flex: 1;
    padding: 15px 15px 15px 5px;
    border: none;
    font-size: 1em;
    outline: none;
    background: transparent;
}

.email-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 10px;
    color: #155724;
    font-size: 0.9em;
    border: 1px solid #b1dfbb;
}

.benefit-icon {
    font-size: 1.2em;
}

.vote-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    color: #856404;
    font-size: 0.9em;
    font-weight: 600;
    border: 2px solid #ffd93d;
    margin-top: 20px;
}

.notice-icon {
    font-size: 1.5em;
}

.modal-footer-custom {
    padding: 25px 30px 30px;
    display: flex;
    gap: 15px;
    background: #f8f9fa;
}

.btn-cancel-modern,
.btn-confirm-modern {
    flex: 1;
    padding: 16px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-cancel-modern {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-cancel-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn-confirm-modern {
    background: linear-gradient(135deg, #8B1F1F 0%, #B91C1C 100%);
    color: white;
}

.btn-confirm-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 31, 31, 0.4);
}

.btn-confirm-modern:disabled,
.btn-cancel-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2em;
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: none;
    animation: slideIn 0.5s;
    z-index: 2000;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Sección de Instagram */
/* Estilos movidos a .instagram-column */
.instagram-section {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: none;
    animation: fadeInUp 1s ease-out;
    display: none; /* Oculto porque ahora está dentro de votingSection */
}

.instagram-header {
    text-align: center;
    margin-bottom: 40px;
}

.instagram-header h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.instagram-header p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 25px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: none;
}

.instagram-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: none;
}

.instagram-link svg {
    width: 28px;
    height: 28px;
}

.instagram-embed {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 20px;
}

.instagram-media {
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Sección Próximamente */
.proximamente-section {
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.countdown-card h2 {
    font-size: 4em;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pronto-text {
    font-size: 1.8em;
    color: white;
    margin-bottom: 35px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.countdown-info {
    position: relative;
    z-index: 1;
}

.countdown-info h3 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.countdown-info p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fecha-inicio {
    font-size: 1.5em !important;
    color: #FFD700 !important;
    font-weight: 700;
    margin-top: 25px !important;
    padding: 15px 30px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    display: inline-block;
    border: 2px solid rgba(255, 215, 0, 0.5);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.time-unit {
    background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px 25px;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 2px 10px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.time-unit:nth-child(1) { animation-delay: 0s; }
.time-unit:nth-child(2) { animation-delay: 0.2s; }
.time-unit:nth-child(3) { animation-delay: 0.4s; }
.time-unit:nth-child(4) { animation-delay: 0.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.time-unit:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 45px rgba(0,0,0,0.4), inset 0 2px 15px rgba(255,255,255,0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

.time-value {
    display: block;
    font-size: 3.5em;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-label {
    display: block;
    font-size: 0.95em;
    color: white;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Sección Finalizado */
.finalizado-section {
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

.finalizado-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    max-width: 900px;
    margin: 0 auto;
}

.finalizado-card h2 {
    font-size: 3em;
    color: #333;
    margin-bottom: 20px;
}

.finalizado-text {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 40px;
}

.resultados-lista {
    text-align: left;
}

.resultado-final-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.resultado-final-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.posicion {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    text-align: center;
}

.resultado-info {
    flex: 1;
}

.resultado-info h4 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.progress-bar-result {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-result {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 1s ease-out;
}

.resultado-votos {
    text-align: right;
    min-width: 100px;
}

.resultado-votos strong {
    font-size: 2em;
    color: var(--primary);
}

.resultado-votos span {
    color: #666;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.4em;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .header-description {
        font-size: 0.85em;
        margin-top: 8px;
    }
    
    .logo-header {
        width: 80px;
        height: 80px;
    }
    
    /* Layout móvil */
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .voting-column,
    .instagram-column {
        width: 100%;
    }
    
    .instagram-column {
        max-width: 100%;
        max-height: 500px;
        padding: 20px;
    }
    
    .pizzerias-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pizzeria-card {
        padding: 15px;
    }
    
    .pizzeria-card h3 {
        font-size: 1.1em;
    }
    
    .pizzeria-card p {
        font-size: 0.85em;
    }
    
    .search-box {
        margin-bottom: 15px;
    }
    
    .search-box input {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-header-custom {
        padding: 12px 15px 8px;
    }
    
    .modal-icon {
        font-size: 1.8em;
        margin-bottom: 3px;
    }
    
    .modal-header-custom h2 {
        font-size: 1.1em;
        margin-bottom: 6px;
    }
    
    .selected-pizzeria-banner {
        padding: 8px 12px;
    }
    
    .pizzeria-label {
        font-size: 0.7em;
    }
    
    .pizzeria-name {
        font-size: 0.9em;
    }
    
    .modal-body-custom {
        padding: 8px 15px;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .info-icon {
        font-size: 1.6em;
    }
    
    .info-content strong {
        font-size: 0.85em;
        margin-bottom: 2px;
    }
    
    .info-content p {
        font-size: 0.75em;
        line-height: 1.2;
    }
    
    .form-group-modern {
        margin-bottom: 10px;
    }
    
    .input-wrapper input {
        font-size: 0.85em;
        padding: 9px 10px 9px 5px;
    }
    
    .input-icon {
        font-size: 1.1em;
        padding: 0 10px;
    }
    
    .email-benefit {
        font-size: 0.7em;
        padding: 5px 8px;
        margin-top: 6px;
        gap: 5px;
    }
    
    .vote-notice {
        font-size: 0.75em;
        padding: 7px 10px;
        margin-top: 10px;
        gap: 6px;
    }
    
    .notice-icon {
        font-size: 1.2em;
    }
    
    .modal-footer-custom {
        flex-direction: column;
        padding: 10px 15px;
        gap: 6px;
    }
    
    .btn-cancel-modern,
    .btn-confirm-modern {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85em;
    }
    
    .btn-icon {
        font-size: 0.95em;
    }
    
    .instagram-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .instagram-header h2 {
        font-size: 1.5em;
    }
    
    .instagram-link {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    
    .countdown-card {
        padding: 25px 15px;
    }
    
    .countdown-card h2 {
        font-size: 1.8em;
    }
    
    .countdown-timer {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .time-unit {
        padding: 12px;
        min-width: 65px;
    }
    
    .time-value {
        font-size: 1.8em;
    }
    
    .time-label {
        font-size: 0.8em;
    }
    
    .finalizado-card {
        padding: 25px 15px;
    }
    
    .resultado-final-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .resultado-info {
        width: 100%;
    }
    
    .resultado-votos {
        text-align: center;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 400px) {
    header h1 {
        font-size: 1.2em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .header-description {
        font-size: 0.75em;
        margin-top: 6px;
    }
    
    .logo-header {
        width: 70px;
        height: 70px;
    }
    
    .modal-header-custom h2 {
        font-size: 1.1em;
    }
    
    .pizzeria-name {
        font-size: 0.9em;
    }
    
    .modal-icon {
        font-size: 2em;
    }
    
    .btn-cancel-modern,
    .btn-confirm-modern {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* Tablets y pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .main-layout {
        gap: 20px;
    }
    
    .instagram-column {
        max-width: 600px;
        padding: 25px;
    }
    
    .pizzerias-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        max-width: 600px;
        width: 85%;
    }
}

/* Pantallas pequeñas de escritorio */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 95%;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .pizzerias-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    .modal-content {
        max-width: 650px;
        width: 80%;
    }
}

/* Pantallas grandes */
@media (min-width: 1367px) {
    .container {
        max-width: 1400px;
    }
    
    .pizzerias-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        max-width: 700px;
        width: 50%;
    }
}

/* Footer */
.main-footer {
    margin-top: 60px;
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.footer-content {
    text-align: left;
    color: rgba(0, 0, 0, 0.9);
    font-size: 0.95em;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.footer-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.footer-link {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 2px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.footer-link:hover {
    color: #004499;
    border-bottom: 2px solid #004499;
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
        font-size: 0.85em;
    }
    
    .main-footer:hover {
        transform: none;
    }
}
