/* --- Variables de Color --- */
:root {
    --color-ketchup: #d62828;
    --color-cheddar: #f4a300;
    --color-mayo: #f7f4ed;
    --color-papa: #f1c27d;
    --color-checker-red: #e63946;
    --color-metal: #c0c0c0;
    --color-dark: #1a1a1a;
    --red: #da0e24;
    --yellow: #FCBF49;
    --cream: #EAE2B7;
    --kraft: #BC8A5F;
    --dark: #003049;
}

/* --- Reset y Base --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
}

/* --- Background Pattern del Body --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        var(--color-checker-red) 0px,
        var(--color-checker-red) 20px,
        white 20px,
        white 40px
    );
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* =================================================================
   HEADER
   ================================================================= */
header {
    background-color: var(--red);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 6px solid var(--dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 40px;
    padding-bottom: 15px;
}

.logo-img {
  height: 65px;   /* prueba entre 55 y 70 */
  width: auto;
}

.logo-text {
    font-family: 'Lobster', cursive;
    color: white;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0px var(--dark);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    transition: 0.2s;
    position: relative;
}

nav a:hover {
    color: var(--yellow);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    background: white;
    border: 3px solid var(--dark);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

/* =================================================================
   HERO SECTION - PUNTOS FIJOS + PUNTOS ANIMADOS
   ================================================================= */
.hero {
    background: var(--red);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 8px solid rgb(0, 48, 73);
    padding: 2rem;
}

/* Capa 1: Puntos BLANCOS FIJOS (estáticos) - Fondo base */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(rgb(220, 72, 72) 15%, transparent 15%);
    background-size: 20px 20px;
    z-index: 0;
}

/* Capa 2: Puntos NEGROS ANIMADOS - Capa superior */
.hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: radial-gradient(rgb(0, 48, 73) 15%, transparent 15%);
    background-size: 20px 20px;
    background-position: 15px 15cm;
    animation: dotsMove 3s linear infinite; /*velocidad*/
    z-index: 0;
}
@keyframes dotsMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Contenido del Hero */
.hero-content {
    background: white;
    padding: 3rem 5rem;
    border: 6px solid var(--dark);
    box-shadow: 15px 15px 0px var(--yellow);
    text-align: center;
    z-index: 1;
    transform: rotate(-1deg);
    position: relative;
}

.hero-content h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(4rem, 12vw, 9rem);
    color: var(--red);
    line-height: 0.8;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.hero-cta {
    background: var(--dark);
    color: var(--yellow);
    padding: 1rem 3rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    text-decoration: none;
    border: none;
    box-shadow: 5px 5px 0px var(--red);
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
}

.hero-cta:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--red);
}
/* =================================================================
   SAUCES SECTION
   ================================================================= */
.sauces-section {
    padding: 4rem 2rem;
    background: white;
    border-bottom: 6px solid var(--dark);
    text-align: center;
}

.sauces-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 3rem;
}

.sauces-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.sauce-item {
    text-align: center;
}

.sauce-item img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.2));
    transition: 0.3s;
}

.sauce-item img:hover {
    transform: scale(1.1) rotate(5deg);
}

.sauce-item h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    margin-top: 1rem;
    color: var(--dark);
}

/* =================================================================
   ABOUT SECTION
   ================================================================= */
.about-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.polaroid-frame {
    background: white;
    padding: 1.2rem;
    padding-bottom: 3.5rem;
    border: 4px solid var(--dark);
    box-shadow: 12px 12px 0px var(--yellow);
    transform: rotate(-3deg);
    position: relative;
    width: 100%;
    max-width: 400px;
}

.photo-area {
    background: var(--yellow);
    border: 4px solid var(--dark);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}

.photo-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
}

.photo-caption {
    font-family: 'Lobster', cursive;
    font-size: 1.8rem;
    color: var(--dark);
    text-align: center;
    margin-top: 1rem;
}

.stamp-sticker {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 110px;
    height: 110px;
    background: var(--red);
    border: 4px dashed white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: 'Bebas Neue';
    font-size: 1.1rem;
    transform: rotate(15deg);
    box-shadow: 4px 4px 0px var(--dark);
    z-index: 5;
    line-height: 1.2;
}

.about-text-card {
    background: white;
    border: 4px solid var(--dark);
    padding: 3.5rem 3rem 3rem;
    box-shadow: 10px 10px 0px var(--dark);
    position: relative;
}

.card-header-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--red);
    border-bottom: 4px solid var(--dark);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
}

.about-text-card h2 {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    color: var(--red);
    margin-bottom: 1.5rem;
    display: inline-block;
    border-bottom: 5px solid var(--yellow);
}

.about-text-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text-card strong {
    color: var(--red);
    font-weight: 900;
}

/* =================================================================
   MENU SECTION
   ================================================================= */
.menu-section {
    padding: 6rem 2rem;
    background: #ffffff;
    border-bottom: 6px solid var(--dark);
}

.menu-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--red);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}


.menu-card {
    background: white;
    border: 5px solid var(--dark);
    box-shadow: 12px 12px 0px var(--dark);
    transition: 0.3s;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.menu-card img {
    width: 100%;
    height: auto; /* Cambiado para mantener aspecto */
    min-height: 300px; /* Altura mínima */
    object-fit: contain; /* Cambiado de cover a contain */
    background: white; /* Fondo blanco para las imágenes */
    padding: 1rem; /* Padding para que no toque los bordes */
    border-bottom: 4px solid var(--dark);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.card-body h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    color: var(--dark);
    margin: 0;
}

.card-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.price-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--yellow);
    color: var(--dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    transform: rotate(5deg);
    box-shadow: 3px 3px 0px var(--dark);
    z-index: 10; /* Asegurar que esté encima */
}

.order-btn {
    background: var(--dark);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
    margin-top: auto; /* Empuja el botón al fondo */
}

.order-btn:hover {
    background: var(--red);
    transform: translateY(-2px);
}

.badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--red);
    color: white;
    padding: 8px 20px;
    font-family: 'Bebas Neue', cursive;
    font-size: 1rem;
    transform: rotate(10deg);
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0px var(--dark);
    z-index: 20; /* Asegurar que esté encima de todo */
}

.menu-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 17px 17px 0px var(--red);
}

/* Responsive para menu */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-card img {
        min-height: 250px;
    }
}

/* =================================================================
   GALLERY SECTION
   ================================================================= */
.gallery-section {
    padding: 6rem 2rem;
    background: white;
    border-bottom: 6px solid var(--dark);
}

.gallery-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--red);
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--dark);
    border: 5px solid var(--dark);
    box-shadow: 8px 8px 0px var(--dark);
    transition: 0.3s;
    overflow: hidden;
    cursor: pointer;
}

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

.gallery-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--red);
}

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

/* =================================================================
   TESTIMONIALS SECTION
   ================================================================= */
.testimonials-section {
    padding: 6rem 2rem;
    background: var(--cream);
    border-bottom: 6px solid var(--dark);
}

.testimonials-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--red);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border: 4px solid var(--dark);
    padding: 2rem;
    box-shadow: 8px 8px 0px var(--dark);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    color: var(--red);
}

.star-rating {
    color: var(--yellow);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* =================================================================
   CONTACT SECTION
   ================================================================= */
.contact-section {
    padding: 6rem 2rem;
    background: white;
    border-bottom: 6px solid var(--dark);
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--red);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info-box {
    background: var(--cream);
    border: 4px solid var(--dark);
    padding: 2rem;
    box-shadow: 8px 8px 0px var(--dark);
}

.contact-info-box h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--red);
}

.contact-info-box p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-form {
    background: var(--cream);
    border: 4px solid var(--dark);
    padding: 2.5rem;
    box-shadow: 12px 12px 0px var(--dark);
}

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

.form-group {
    margin-bottom: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 3px solid var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--red);
    color: white;
    border: 3px solid var(--dark);
    padding: 1rem 3rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
    box-shadow: 6px 6px 0px var(--dark);
    transition: 0.3s;
    margin-top: 1.5rem;
}

.submit-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--dark);
}

/* =================================================================
   FOOTER
   ================================================================= */
footer {
    background: var(--dark);
    color: var(--cream);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 10px solid var(--red);
}

footer h2 {
    font-family: 'Lobster';
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-link {
    background: var(--red);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    font-size: 1.5rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--dark);
    transform: scale(1.1);
}

/* =================================================================
   SCROLL ANIMATIONS
   ================================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content {
        padding: 2rem;
        width: 90%;
    }

    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .photo-area {
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sauces-grid {
        gap: 2rem;
    }

    .sauce-item img {
        width: 120px;
        height: 120px;
    }
}