/* ============================================
   CATERING GUATEMALA — Main Stylesheet
   Palette: Borgoña #800020 / Cream #F5F0E1
   ============================================ */

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

:root {
  --burgundy: #800020;
  --burgundy-dark: #5C0015;
  --burgundy-light: #9a1a3a;
  --cream: #F5F0E1;
  --cream-dark: #E8E0CC;
  --text-dark: #2C1810;
  --text-mid: #5a4a3a;
  --white: #FFFFFF;
  --gold-accent: #C9A961;
  --shadow-sm: 0 2px 8px rgba(44,24,16,0.08);
  --shadow-md: 0 4px 20px rgba(44,24,16,0.12);
  --shadow-lg: 0 8px 40px rgba(44,24,16,0.16);
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--burgundy-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--text-dark); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
}
.btn-outline:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1da851;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128,0,32,0.08);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--gold-accent); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--burgundy); }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #3a2a1a;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,0,21,0.7) 0%, rgba(44,24,16,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 0 80px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-accent);
}

.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-badge svg { flex-shrink: 0; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Diferenciadores --- */
.diferenciadores {
  padding: 100px 0;
  background: var(--cream);
}
.diferenciadores .section-header { text-align: center; margin-bottom: 60px; }

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

.diff-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 3px solid transparent;
}
.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--burgundy);
}

.diff-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.diff-icon svg { width: 28px; height: 28px; color: var(--burgundy); }

.diff-card h3 { margin-bottom: 12px; color: var(--text-dark); }
.diff-card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; }

/* --- Servicios --- */
.servicios {
  padding: 100px 0;
  background: var(--white);
}
.servicios .section-header { text-align: center; margin-bottom: 60px; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.servicio-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  transition: all var(--transition);
}
.servicio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.servicio-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: #d4c5b0;
  position: relative;
}
.servicio-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.4), transparent);
}

.servicio-body { padding: 28px 28px 32px; }
.servicio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.servicio-body h3 { margin-bottom: 10px; }
.servicio-body p { color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }

.servicio-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.servicio-features li {
  font-size: 0.8rem;
  color: var(--text-mid);
  background: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--cream-dark);
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: var(--burgundy);
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: var(--white); color: var(--burgundy); }
.cta-banner .btn-primary:hover { background: var(--cream); }

/* --- Ecosistema --- */
.ecosistema {
  padding: 100px 0;
  background: var(--white);
}
.ecosistema .section-header { text-align: center; margin-bottom: 60px; }

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

.eco-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  transition: all var(--transition);
}
.eco-card:hover {
  border-color: var(--burgundy);
  box-shadow: var(--shadow-sm);
}

.eco-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.eco-card h4 { margin-bottom: 8px; }
.eco-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* --- Nosotros --- */
.nosotros {
  padding: 100px 0;
  background: var(--cream);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-img {
  border-radius: 8px;
  height: 420px;
  background-size: cover;
  background-position: center;
  background-color: #d4c5b0;
  box-shadow: var(--shadow-md);
}

.nosotros-text .section-label { margin-bottom: 12px; }
.nosotros-text h2 { margin-bottom: 20px; }
.nosotros-text p { color: var(--text-mid); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
}

.stat { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--burgundy);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: 4px;
}

/* --- Cotización Form --- */
.cotizacion {
  padding: 100px 0;
  background: var(--white);
}
.cotizacion .section-header { text-align: center; margin-bottom: 50px; }

.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 8px;
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { text-align: center; margin-top: 28px; }

/* --- Contacto --- */
.contacto {
  padding: 100px 0;
  background: var(--cream);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacto-info h2 { margin-bottom: 20px; }
.contacto-info > p { color: var(--text-mid); margin-bottom: 32px; line-height: 1.8; }

.contacto-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contacto-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contacto-icon svg { width: 22px; height: 22px; color: var(--burgundy); }
.contacto-detail h4 { margin-bottom: 2px; font-size: 0.95rem; }
.contacto-detail p { color: var(--text-mid); font-size: 0.9rem; }
.contacto-detail a { color: var(--burgundy); font-weight: 500; }

/* --- Footer --- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 16px; display: inline-block; }
.footer-brand .nav-logo { color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-accent); }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .diff-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { margin-left: 0; }

  .hero-content { padding: 100px 0 60px; }
  .hero-badges { flex-direction: column; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }

  .form-grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 32px 24px; }
  
  .eco-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
