/* styles.css - Estilos para Tasca Restaurant Dominó */
:root {
    --primary-color: #594731; /* Rojo vino tinto */
    --secondary-color: #d6c6b0; /* Dorado */
    --accent-color: #2C3E50; /* Azul oscuro */
    --light-color: #F8F9FA;
    --gap-size: 25px;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* CONTAINER GENERAL */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.top-header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.order-btn-nav {
    background-color: var(--secondary-color);
    color: var(--accent-color) !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.order-btn-nav:hover {
    background-color: #f7931e;
    transform: translateY(-2px);
}

/* HERO */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/img/hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* GRID MAESTRO PARA ALINEACIÓN PERFECTA */
.main-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-size);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

/* PRIMERA FILA - 4 Cards usando 12 columnas */
.first-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-size);
}

/* Cada card ocupa 3 columnas de 12 */
.card-col-3 {
    grid-column: span 3;
}

/* SEGUNDA FILA - 2 columnas usando 12 columnas */
.second-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-size);
    margin-bottom: 4rem;
}

/* Cada sección ocupa 6 columnas de 12 */
.col-6 {
    grid-column: span 6;
}

/* CARDS GENERALES */
.main-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 5px solid #f7931e;
    height: 100%;
}

.main-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-title {
    padding: 1.5rem;
    background: white;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.card-title i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #f7931e;
}

.card-title h3 {
    margin: 0;
    font-size: 1.5rem;
}

.card-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 120px);
}

/* Card Delivery */
.delivery-card {
    border-top-color: #f7931e;
}

.delivery-card .card-title i {
    color: #f7931e;
}

.delivery-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 1.5rem 0;
}

.delivery-stat {
    text-align: center;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Card Instagram */
.instagram-card {
    border-top-color: #f7931e;
}

.instagram-card .card-title i {
    color: #f7931e;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 1rem 0;
}

.insta-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

/* Card Eventos */
.events-card {
    border-top-color: #f7931e;
}

.events-card .card-title i {
    color: #f7931e;
}

.events-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.event-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.event-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.event-title {
    font-weight: bold;
    margin: 5px 0;
}

/* Historia con Scroll */
.history-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.history-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #6a0000);
    color: white;
    text-align: center;
}

.history-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary-color);
}

.history-content {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
}

.history-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.history-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.club-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--secondary-color);
}

/* Galería de Fotos */
.gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.gallery-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #1a252f);
    color: white;
    text-align: center;
}

.gallery-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary-color);
}

.gallery-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Botones */
.btn-main {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f7931e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
}

.btn-main:hover {
    background: #f7931e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #f7931e;
}

.btn-delivery {
    background: linear-gradient(135deg, #f7931e, #f7931a);
}

.btn-delivery:hover {
    background: linear-gradient(135deg, #f7931e, #f7931a);
}


.btn-menu {
    background: var(--accent-color);
}

.btn-menu:hover {
    background: #1a252f;
}

/* Modal para galería */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 800px;
    width: 100%;
    position: relative;
}

.modal-img {
    width: 100%;
    border-radius: 10px;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TERCERA FILA - FOOTER */
footer {
    background: linear-gradient(135deg, var(--accent-color), #1a252f);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* RESPONSIVE - 12 columnas también en responsive */
@media screen and (max-width: 1024px) {
    .card-col-3 {
        grid-column: span 6;
    }
    
    .col-6 {
        grid-column: span 12;
    }
}

@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .card-col-3 {
        grid-column: span 12;
    }
    
    .col-6 {
        grid-column: span 12;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-grid {
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .delivery-stats {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-grid {
        gap: 15px;
    }
}

/* Scrollbar personalizado */
.history-content::-webkit-scrollbar,
.events-list::-webkit-scrollbar {
    width: 8px;
}

.history-content::-webkit-scrollbar-track,
.events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.history-content::-webkit-scrollbar-thumb,
.events-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.history-content::-webkit-scrollbar-thumb:hover,
.events-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}