/*
==================================================================================================================================
| FILE: style.css                                                                                                                |
| AUTHOR: System Protocol Engine                                                                                                 |
| VERSION: 1.5.0-LOU-EXTENDED                                                                                                      |
| GENERATION TIMESTAMP: 2023-10-27T10:30:05Z                                                                                       |
| DESCRIPTION:                                                                                                                   |
| This Cascading Style Sheet (CSS) contains all the presentation logic for the Mini ConoPizza web application.                   |
==================================================================================================================================
*/


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 1] ::: ROOT & CSS CUSTOM PROPERTY DEFINITIONS
 *--------------------------------------------------------------------------------------------------------------------------------
 */
:root {
  /* COLOR PALETTE: Primary Brand Colors */
  --rojo: #e74c3c;
  --naranja: #f39c12;
  --amarillo: #f1c40f;

  /* COLOR PALETTE: Neutrals and Backgrounds */
  --blanco: #ffffff;
  --negro-fondo: #121212;
  --negro-claro: #1e1e1e;
  
  /* TYPOGRAPHY: Text Colors */
  --texto-principal: #333;
  --texto-dark: #f0f0f0;
  
  /* UI ELEMENTS: Miscellaneous */
  --sombra: rgba(0, 0, 0, 0.1);
  --sombra-dark: rgba(0, 0, 0, 0.4);

  /* FONT STACK */
  --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* TRANSITIONS & ANIMATIONS */
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.6s ease-out;
}

/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 2] ::: GLOBAL RESETS & BASE STYLES
 *--------------------------------------------------------------------------------------------------------------------------------
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--blanco);
  color: var(--texto-principal);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 3] ::: DARK MODE THEME
 *--------------------------------------------------------------------------------------------------------------------------------
 */
body.dark {
  background-color: var(--negro-fondo);
  color: var(--texto-dark);
}

body.dark header {
  background: linear-gradient(90deg, #1a1a1a, var(--rojo));
  box-shadow: 0 2px 10px var(--sombra-dark);
}

body.dark nav a {
  color: var(--texto-dark);
}

body.dark .card {
    background: var(--negro-claro);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

body.dark footer {
    background-color: #000;
}

/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 4] ::: HEADER & NAVIGATION STYLING
 *--------------------------------------------------------------------------------------------------------------------------------
 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(270deg, var(--rojo), var(--naranja), var(--amarillo));
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
  box-shadow: 0 2px 10px var(--sombra);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header .logo {
  text-decoration: none;
  color: var(--blanco);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

header .slogan {
  color: var(--blanco);
  font-style: italic;
  opacity: 0.9;
  margin-left: -10%;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: var(--blanco);
  transition: transform var(--transition-normal), color var(--transition-normal);
  position: relative;
  padding-bottom: 5px;
  font-size: 1.1rem;
}

nav a:hover {
  color: var(--amarillo);
  transform: scale(1.1);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--amarillo);
  transition: width 0.3s ease-in-out;
}

nav a:hover::after {
  width: 100%;
}

.mode-toggle {
    background: none;
    border: 2px solid var(--blanco);
    color: var(--blanco);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.mode-toggle:hover {
    background: var(--blanco);
    color: var(--rojo);
    transform: rotate(360deg) scale(1.1);
}


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 5] ::: HERO SECTION STYLING
 *--------------------------------------------------------------------------------------------------------------------------------
 */
.hero {
  height: 80vh; 
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--blanco);
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(https://images.unsplash.com/photo-1513104890138-7c749659a591?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80) no-repeat center center/cover;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.btn {
  background-color: var(--rojo);
  color: var(--blanco);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color var(--transition-normal), transform var(--transition-normal);
  display: inline-block;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [NUEVA SECCIÓN] ::: STYLING DE LA SECCIÓN DEL EVENTO
 *--------------------------------------------------------------------------------------------------------------------------------
 */
.evento {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.evento-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.evento-imagen {
    flex: 1;
}

.evento-imagen img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--sombra);
}

.evento-detalles {
    flex: 1;
}

.evento-badge {
    display: inline-block;
    background-color: var(--amarillo);
    color: var(--texto-principal);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.evento-detalles h2 {
    font-size: 2.5rem;
    color: var(--rojo);
    margin-bottom: 1rem;
}

.evento-detalles p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

#countdown {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--blanco);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--sombra);
    min-width: 100px;
    text-align: center;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rojo);
    display: block;
}

.countdown-item div {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Dark mode for Event Section */
body.dark .evento {
    background-color: var(--negro-claro);
}

body.dark .evento-badge {
    background-color: var(--amarillo);
    color: var(--texto-principal);
}

body.dark .countdown-item {
    background-color: var(--negro-fondo);
}


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 6] ::: PRODUCTS SECTION STYLING
 *--------------------------------------------------------------------------------------------------------------------------------
 */
.productos {
  padding: 4rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--rojo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--blanco);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--sombra);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: left;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
  padding: 1rem;
  font-size: 1.5rem;
  color: var(--rojo);
}

.card p {
  padding: 0 1rem 1.5rem;
  line-height: 1.6;
}


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 7] ::: FOOTER STYLING
 *--------------------------------------------------------------------------------------------------------------------------------
 */
footer {
  background-color: var(--negro-claro);
  color: var(--texto-dark);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-info, .map-responsive {
  flex: 1;
  min-width: 300px;
}

.footer-info h3 {
  color: var(--rojo);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-info p {
  line-height: 1.6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-info i {
  margin-right: 10px;
  color: var(--amarillo);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.map-responsive iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 0;
  border-radius: 10px;
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  opacity: 0.7;
}

/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 8] ::: SOCIAL ICONS STYLING
 *--------------------------------------------------------------------------------------------------------------------------------
 */
.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
  color: var(--blanco);
  font-size: 2rem;
  margin: 0 15px;
  transition: transform var(--transition-normal), color var(--transition-normal);
  display: inline-block;
}

.social-icons a:hover {
  transform: scale(1.3) rotate(-15deg);
  color: var(--amarillo);
}


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 9] ::: WHATSAPP FLOATING ACTION BUTTON (FAB) STYLING
 *--------------------------------------------------------------------------------------------------------------------------------
 */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 10] ::: MODAL AND ANIMATION UTILITY STYLES
 *--------------------------------------------------------------------------------------------------------------------------------
 */

/* Scroll Animation */
.anim-fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition-slow);
}

.anim-fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styling */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.3s ease;
}

.modal-content {
    background-color: var(--blanco);
    color: var(--texto-principal);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

body.dark .modal-content {
    background-color: var(--negro-claro);
    color: var(--texto-dark);
}

.modal.show .modal-content {
    transform: scale(1);
}

#modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

#modal-title {
    font-size: 2rem;
    color: var(--rojo);
    margin-bottom: 1rem;
}

#modal-desc {
    font-size: 1.1rem;
    line-height: 1.7;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--rojo);
}


/*
 *--------------------------------------------------------------------------------------------------------------------------------
 * [SECTION 11] ::: RESPONSIVE DESIGN (MEDIA QUERIES)
 *--------------------------------------------------------------------------------------------------------------------------------
 */

/* For tablets and smaller desktops (max-width: 900px) */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    header .slogan {
        display: none;
    }

    nav {
        margin-top: 1rem;
    }
}

/* For tablets (max-width: 768px) */
@media (max-width: 768px) {
    .evento-container {
        flex-direction: column;
        text-align: center;
    }

    .evento-detalles {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* For mobile phones (max-width: 480px) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav {
        gap: 1.5rem;
    }

    nav a {
        font-size: 1rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    
    .productos, .evento {
        padding: 3rem 1rem;
    }
    
    .countdown-item {
        padding: 0.8rem;
        min-width: 80px;
    }
    .countdown-item span {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-info p, .footer-info h3 {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}