/*
Theme Name: Guía Norte Córdoba
Theme URI: https://guianorte.com.ar
Author: Guía Norte Team
Description: Theme moderno para la promoción de comercios y su historia en la Zona Norte de Córdoba con soporte de logo.
Version: 1.1
Text Domain: guia-norte
*/

:root {
  --primary: #FF5A36;
  --primary-dark: #D84220;
  --secondary: #1E293B;
  --accent: #0EA5E9;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #334155;
  --text-muted: #64748B;
  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

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

/* Header & Logo */
.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.custom-logo {
  max-height: 55px;
  width: auto;
  display: block;
}
.logo-text { font-weight: 800; font-size: 1.6rem; color: var(--secondary); text-decoration: none; }
.logo-text span { color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--secondary), #0F172A);
  color: #fff;
  padding: 70px 0;
  text-align: center;
  border-radius: 0 0 30px 30px;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 12px; }
.hero p { color: #94A3B8; font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* Destacado del Mes */
.featured-month {
  margin: -40px auto 60px auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.featured-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.featured-info { padding: 40px; }
.featured-info h2 { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}

/* Grilla de Comercios */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h3 { font-size: 2rem; color: var(--secondary); }
.section-title p { color: var(--text-muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 70px;
}
.comercio-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.comercio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.12);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.card-title { font-size: 1.3rem; margin-bottom: 10px; color: var(--secondary); }
.card-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.btn-detail {
  align-self: flex-start;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Single Comercio */
.single-header {
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin: 30px 0;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }

@media(max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-info { padding: 25px; }
  .hero h1 { font-size: 2rem; }
}
