/* ============================================
   Fruteria La Hacienda — Style Sheet
   Colors: Green (fresh), Red (chile), Blue (store trim)
   ============================================ */

:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #E8F5E9;
  --red: #C62828;
  --red-light: #FFEBEE;
  --blue: #1565C0;
  --cream: #FFFDF7;
  --warm-gray: #F5F0EB;
  --text: #1A1A1A;
  --text-muted: #666;
  --white: #fff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --transition: .3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

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

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo-icon { font-size: 1.8rem; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
}
.logo-sub {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: var(--transition);
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  background: var(--green-light);
  border: 2px solid var(--green);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 800;
  padding: .35rem .7rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .03em;
}
.lang-toggle:hover { background: var(--green); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/01-storefront.jpg') center/cover no-repeat;
  padding: 8rem 1.5rem 4rem;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,94,32,.88) 0%, rgba(30,30,30,.75) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 750px;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem 1.2rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  opacity: .9;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: #B71C1C; border-color: #B71C1C; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(198,40,40,.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.hero-badges { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.section-header.center { text-align: center; margin-bottom: 3rem; }
.section-header h2, .section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

/* ============ ABOUT ============ */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-images { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid var(--cream);
  box-shadow: var(--shadow-lg);
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: .95rem; }
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,.08);
}
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-dark);
}
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ============ DEPARTMENTS ============ */
.departments { background: var(--white); }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.dept-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.dept-img { aspect-ratio: 4/3; overflow: hidden; }
.dept-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.dept-card:hover .dept-img img { transform: scale(1.05); }
.dept-info { padding: 1.25rem; }
.dept-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}
.dept-info p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ============ WHY US ============ */
.why-us {
  background: var(--green-dark);
  color: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.why-card p { font-size: .88rem; opacity: .85; line-height: 1.6; }

/* ============ GALLERY ============ */
.gallery { background: var(--warm-gray); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover { box-shadow: var(--shadow-lg); }

/* ============ VISIT ============ */
.visit { background: var(--white); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.visit-info h2 { margin-bottom: 2rem; }
.visit-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.visit-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.visit-detail strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .15rem; }
.visit-detail p { font-size: .9rem; color: var(--text-muted); }
.visit-detail a { color: var(--green); font-weight: 600; }
.visit-detail a:hover { text-decoration: underline; }
.visit-info .btn { margin-top: 1rem; }
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}
.visit-map iframe { min-height: 400px; }

/* ============ FOOTER ============ */
.footer {
  background: #111;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-inner { }
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-brand .logo-name { color: var(--white); }
.footer-brand p { width: 100%; font-size: .85rem; margin-top: .25rem; }
.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links a { font-size: .9rem; font-weight: 500; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-credit a { color: var(--green); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ============ MOBILE ============ */
@media (max-width: 968px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-accent { position: static; width: 60%; margin-top: -3rem; margin-left: auto; border-color: var(--white); }
  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* — Header: compact — */
  .header-inner { height: 56px; }
  .logo-icon { font-size: 1.4rem; }
  .logo-name { font-size: 1rem; }
  .logo-sub { display: none; }
  .logo { gap: .5rem; }
  .lang-toggle { padding: .25rem .55rem; font-size: .7rem; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: flex; }

  /* — Hero: full-bleed, punchy — */
  .hero { min-height: 100vh; min-height: 100svh; padding: 0 1.25rem; }
  .hero-content { padding-top: 5rem; }
  .hero-badge { font-size: .65rem; padding: .3rem .9rem; margin-bottom: 1rem; letter-spacing: .06em; }
  .hero-title { font-size: 2.8rem; line-height: 1.05; margin-bottom: .75rem; }
  .hero-subtitle { font-size: .95rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: row; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
  .hero-actions .btn { padding: .75rem 1.4rem; font-size: .85rem; }
  .hero-badges { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
  .hero-badges .badge { font-size: .7rem; padding: .3rem .7rem; }

  /* — Sections — */
  .section { padding: 3.5rem 0; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-column: span 2; }
  .about-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.4rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .dept-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; }
}
