/*
Theme Name: Panchito Parrillero
Theme URI:  https://panchitoparrillero.cl/
Author:      Generated by Oscar Arias
Author URI:  https://panchitoparrillero.cl/
Description: Tema moderno y atractivo para maestro parrillero — Hero, Servicios, Galería, PDF y contacto WhatsApp.
Version:     2.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: panchitoparrillero
Tags: food, restaurant, one-column, custom-colors, translation-ready, responsive, modern
*/

:root {
  --primary: #d94b18;
  --primary-dark: #b8390f;
  --secondary: #ff6b35;
  --accent: #ffa726;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --muted: #6c757d;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header.site-header {
  background: var(--dark);
  box-shadow: 0 2px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-branding img {
  height: 100px;
  width: auto;
  border-radius: 8px;
}

.site-branding h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

nav.main-nav a {
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--white);
}

nav.main-nav a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 80px 40px;
  color: var(--white);
  border-radius: var(--border-radius);
  margin: 30px 0;
  min-height: 500px;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(217, 75, 24, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%), url('assets/hero.jpg') center/cover no-repeat;
}

/* Hero Video Container */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(217, 75, 24, 0.7) 0%, rgba(255, 107, 53, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  z-index: 4;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero p {
  font-size: 18px;
  max-width: 800px;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  z-index: 2;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(217, 75, 24, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 75, 24, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* Section Styles */
section {
  margin: 60px 0;
}

section h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Services Grid */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(217, 75, 24, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-hover);
}

.service-card h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

/* Carousel Styles */
.about-carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 300px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active,
.indicator:hover {
  background: white;
}

.about-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 15px 40px var(--shadow-hover);
}

.about-text h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    order: 2;
  }
  
  .about-text {
    order: 1;
  }
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: 0 8px 25px var(--shadow);
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px var(--shadow-hover);
}

/* Contact Section */
.contact {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

/* Download Section */
#download {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
}

#download p {
  font-size: 18px;
  color: var(--muted);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

/* Elementor Compatibility */
.site {
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

.page-content {
  width: 100%;
}

/* Elementor Canvas Template - Only hide header/footer for canvas template */
body.elementor-template-elementor_canvas .site-header,
body.elementor-template-elementor_canvas .site-footer {
  display: none;
}

body.elementor-template-elementor_canvas .site-content {
  margin: 0;
  padding: 0;
}

/* Entry Content for Elementor */
.entry-content {
  width: 100%;
  max-width: none;
}

.entry-content .elementor {
  width: 100%;
}

/* Container adjustments */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3); }
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Footer */
footer.site-footer {
  background: var(--dark);
  color: var(--light);
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 60px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.9;
}

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

.footer-section ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section ul li:hover {
  opacity: 1;
}

.footer-section svg {
  flex-shrink: 0;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
  margin: 0;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  nav.main-nav ul {
    gap: 15px;
  }
  
  .hero {
    padding: 40px 20px;
    text-align: center;
    align-items: center;
    min-height: 400px;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-video {
    object-position: center center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .services {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  /* About Carousel Responsive */
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .carousel-slides {
    height: 250px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .carousel-indicators {
    bottom: 10px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 30px;
    text-align: center;
  }
  
  .footer-section ul li {
    justify-content: center;
  }
  
  .footer-bottom {
    padding: 20px;
  }
  
  .contact {
    flex-direction: column;
  }
  
  section h3 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .site {
    padding: 0 15px;
  }
  
  .hero {
    margin: 15px 0;
    padding: 30px 15px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 20px;
    bottom: 20px;
  }
  
  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}
