/*
Theme Name: Mercado San Pedro Maitencillo
Theme URI: https://mercadosanpedro.cl
Author: Antigravity
Author URI: https://mercadosanpedro.cl
Description: Tema exclusivo e-commerce y gastronómico para Mercado San Pedro Maitencillo - Pescadería, Recetas con Insumos, Productos de Mercado y Bar de Playa.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mercadosanpedro
*/

:root {
  --navy-deep: #0f1f38;
  --navy-primary: #162c4c;
  --navy-light: #234373;
  --gold-primary: #d3ad67;
  --gold-light: #e4ca93;
  --gold-dark: #b58c42;
  --sand-light: #f9f6f0;
  --sand-muted: #efeae1;
  --coral-accent: #e06d53;
  --text-dark: #1b2636;
  --text-muted: #5a697c;
  --text-light: #f9f6f0;
  --shadow-sm: 0 4px 12px rgba(15, 31, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 31, 56, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 31, 56, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--sand-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.25;
}

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

a:hover {
  color: var(--gold-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--navy-deep);
  color: var(--gold-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(211, 173, 103, 0.2);
}

.top-bar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info i {
  color: var(--gold-primary);
}

.top-bar-social a {
  color: var(--gold-light);
  margin-left: 14px;
  font-size: 1rem;
}

.top-bar-social a:hover {
  color: var(--sand-light);
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navy-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 68px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-text-fallback {
  color: var(--gold-primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--navy-deep);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(211, 173, 103, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 173, 103, 0.6);
  color: var(--navy-deep);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 31, 56, 0.88) 0%, rgba(22, 44, 76, 0.92) 100%),
              url('https://images.unsplash.com/photo-1534422298391-e4f8c172dddb?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--text-light);
  padding: 100px 20px 120px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(211, 173, 103, 0.12) 0%, rgba(15, 31, 56, 0) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo-emblem {
  width: 190px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-badge-subtitle {
  display: inline-block;
  background: rgba(211, 173, 103, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--sand-light);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--gold-primary);
  font-style: italic;
}

.hero-lead {
  font-size: 1.25rem;
  color: rgba(249, 246, 240, 0.9);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--navy-deep);
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(211, 173, 103, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(211, 173, 103, 0.5);
  color: var(--navy-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--sand-light);
  border: 2px solid rgba(249, 246, 240, 0.4);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(211, 173, 103, 0.08);
}

/* Feature Grid Cards */
.section-padding {
  padding: 90px 20px;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Story / Who We Are Section */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-card {
  background-color: #ffffff;
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--gold-primary);
}

.story-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.story-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.story-highlight-box {
  background: var(--navy-primary);
  color: var(--text-light);
  padding: 30px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-highlight-box::after {
  content: '🐟';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 9rem;
  opacity: 0.08;
}

.story-highlight-box h4 {
  color: var(--gold-primary);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.story-highlight-box p {
  color: rgba(249, 246, 240, 0.9);
  font-size: 1.05rem;
}

/* Sello Section Banner */
.banner-sello {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  margin: 60px 0;
  position: relative;
  border: 1px solid rgba(211, 173, 103, 0.25);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.sello-badge {
  background: rgba(211, 173, 103, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner-sello h3 {
  color: var(--sand-light);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.banner-sello p {
  color: rgba(249, 246, 240, 0.88);
  font-size: 1.15rem;
  line-height: 1.7;
}

.sello-quote {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--gold-primary);
  text-align: center;
}

.sello-quote p {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--gold-light);
  line-height: 1.3;
}

/* What You Can Order Online Grid */
.order-online-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.order-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(15, 31, 56, 0.06);
  display: flex;
  flex-direction: column;
}

.order-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
}

.order-card-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.order-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.order-card:hover .order-card-img-wrapper img {
  transform: scale(1.08);
}

.order-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy-primary);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.order-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.order-card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.order-card-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.98rem;
  flex-grow: 1;
}

.btn-card-action {
  background: var(--sand-muted);
  color: var(--navy-primary);
  font-weight: 700;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.order-card:hover .btn-card-action {
  background: var(--gold-primary);
  color: var(--navy-deep);
}

/* Delivery & Pickup Section */
.logistics-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow-md);
}

.logistics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.logistics-box {
  background: var(--sand-light);
  padding: 36px;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--navy-primary);
}

.logistics-box.highlight {
  border-top-color: var(--gold-primary);
}

.logistics-box-icon {
  font-size: 2.2rem;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.logistics-box h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.logistics-box p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.freshness-warning-card {
  background: rgba(224, 109, 83, 0.08);
  border: 1px solid rgba(224, 109, 83, 0.3);
  padding: 24px 30px;
  border-radius: var(--radius-md);
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.freshness-warning-icon {
  font-size: 2.5rem;
  color: var(--coral-accent);
}

.freshness-warning-text h5 {
  color: var(--coral-accent);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.freshness-warning-text p {
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Restaurant Section */
.restaurant-section {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
  color: var(--text-light);
  padding: 100px 20px;
}

.restaurant-section h2 {
  color: var(--sand-light);
}

.restaurant-section .section-desc {
  color: rgba(249, 246, 240, 0.8);
}

.restaurant-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.restaurant-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-img.wide {
  grid-column: span 2;
  height: 240px;
}

.restaurant-info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(211, 173, 103, 0.25);
  padding: 40px;
  border-radius: var(--radius-md);
}

.restaurant-info-card h3 {
  color: var(--gold-primary);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.restaurant-features-list {
  list-style: none;
  margin: 24px 0;
}

.restaurant-features-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.restaurant-features-list i {
  color: var(--gold-primary);
}

/* Contact & Hours Section */
.contact-section {
  padding: 90px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contact-card {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-text h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-item-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hours-badge-box {
  background: var(--navy-primary);
  color: var(--text-light);
  padding: 40px;
  border-radius: var(--radius-md);
  border-top: 5px solid var(--gold-primary);
}

.hours-badge-box h4 {
  color: var(--gold-primary);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.hours-list {
  list-style: none;
}

.hours-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-label {
  font-weight: 700;
  color: var(--sand-light);
}

.hours-val {
  color: var(--gold-light);
}

/* Footer */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(249, 246, 240, 0.75);
  padding: 70px 20px 30px;
  border-top: 1px solid rgba(211, 173, 103, 0.2);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--gold-primary);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(249, 246, 240, 0.8);
  font-size: 0.95rem;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 31, 56, 0.06);
  transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
  background-color: var(--navy-primary) !important;
  color: var(--gold-primary) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
  background-color: var(--gold-primary) !important;
  color: var(--navy-deep) !important;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .story-grid,
  .logistics-grid,
  .restaurant-grid,
  .contact-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .banner-sello {
    grid-template-columns: 1fr;
  }
  
  .order-online-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .order-online-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar-container {
    justify-content: center;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
}
