/*
Theme Name: Tema Garbo Catering Final
Theme URI: https://garbocatering.asadorycomidas.com
Author: Garbo Catering
Description: Tema oficial de Garbo Catering. Fondo blanco, tipografía Agrandir, color corporativo #032d1e.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: garbo
*/

/* =============================================
   FUENTE AGRANDIR (Google Fonts fallback: DM Sans)
   Agrandir no está en Google Fonts, se carga desde
   el servidor o se usa DM Sans como fallback.
   Si tienes los archivos .woff2 de Agrandir,
   van en la carpeta /fonts/ del tema.
   ============================================= */

@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-Regular.woff2') format('woff2'),
       url('fonts/Agrandir-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-Bold.woff2') format('woff2'),
       url('fonts/Agrandir-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   VARIABLES
   ============================================= */
:root {
  --verde:   #032d1e;
  --blanco:  #ffffff;
  --gris-f:  #f7f7f5;
  --gris-b:  #eeeeee;
  --texto:   #111111;
  --suave:   #555555;
  --font:    'Agrandir', 'DM Sans', sans-serif;
}

/* =============================================
   RESET BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--blanco);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* =============================================
   TIPOGRAFÍA
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.1;
  color: var(--verde);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1.2rem; color: var(--suave); font-weight: 400; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.garbo-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.garbo-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* =============================================
   CABECERA / NAV — barra verde, logo blanco
   ============================================= */
#garbo-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--verde);
}
.garbo-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — siempre blanco */
.garbo-logo {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.garbo-logo img,
.garbo-logo .custom-logo-link img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.garbo-logo .custom-logo-link { display: flex; align-items: center; }

/* Menú */
.garbo-menu {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
  margin: 0;
  padding: 0;
}
.garbo-menu li { margin: 0; padding: 0; }
.garbo-menu a {
  display: block;
  padding: 0 1.4rem;
  height: 64px;
  line-height: 64px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.garbo-menu a:hover,
.garbo-menu .current-menu-item > a {
  color: var(--blanco);
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

/* Ítem CTA */
.garbo-menu .menu-cta > a {
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,0.5);
  height: auto;
  line-height: 1;
  padding: 0.5rem 1.2rem;
  margin-left: 1rem;
  background: transparent;
  align-self: center;
}
.garbo-menu .menu-cta > a:hover {
  background: var(--blanco);
  color: var(--verde);
  border-color: var(--blanco);
  opacity: 1;
}

/* Hamburger móvil */
.garbo-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.garbo-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blanco);
  transition: all 0.3s;
}

/* =============================================
   CONTENIDO PRINCIPAL
   ============================================= */
#garbo-main {
  padding-top: 64px; /* compensar nav fijo */
}

/* =============================================
   PIE / FOOTER
   ============================================= */
#garbo-footer {
  background: var(--verde);
  color: rgba(255,255,255,0.75);
  padding: 4rem 2rem 2rem;
}
.garbo-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.garbo-footer-logo {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.8rem;
}
.garbo-footer-logo img { height: 32px; filter: brightness(0) invert(1); }
.garbo-footer-tagline { font-size: 0.82rem; opacity: 0.45; }
.garbo-footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  font-weight: 400;
}
.garbo-footer-col a,
.garbo-footer-col p {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.garbo-footer-col a:hover { color: var(--blanco); opacity: 1; }
.garbo-footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   BOTONES
   ============================================= */
.garbo-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.garbo-btn-dark { background: var(--verde); color: var(--blanco); }
.garbo-btn-dark:hover { background: #054a32; opacity: 1; }
.garbo-btn-outline { background: transparent; color: var(--verde); border: 1.5px solid var(--verde); }
.garbo-btn-outline:hover { background: var(--verde); color: var(--blanco); opacity: 1; }

/* =============================================
   SEPARADOR / DIVIDERS
   ============================================= */
.garbo-divider {
  width: 40px;
  height: 2px;
  background: var(--verde);
  margin: 1.5rem 0;
}

/* =============================================
   ETIQUETA DE SECCIÓN
   ============================================= */
.garbo-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verde);
  opacity: 0.5;
  margin-bottom: 0.8rem;
  display: block;
}

/* =============================================
   ESTILOS DE PÁGINA / CONTENIDO WP
   ============================================= */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.entry-content h1,
.entry-content h2,
.entry-content h3 { margin-bottom: 1rem; margin-top: 2rem; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--suave);
}
.entry-content li { margin-bottom: 0.4rem; }
.entry-content blockquote {
  border-left: 3px solid var(--verde);
  padding: 1rem 1.5rem;
  background: var(--gris-f);
  margin: 2rem 0;
  font-style: italic;
  color: var(--suave);
}

/* =============================================
   PÁGINA: SIN SIDEBAR
   ============================================= */
.page-template-page-nosidebar .entry-content,
.page-template-default .entry-content {
  max-width: 100%;
  padding: 0;
}

/* =============================================
   FORMULARIOS (Gutenberg / Contact Form 7)
   ============================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--texto);
  background: var(--blanco);
  border: 1px solid var(--gris-b);
  padding: 0.7rem 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--verde);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .garbo-nav { padding: 0 1.2rem; }
  .garbo-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--verde); padding: 0.5rem 0 1rem; gap: 0; }
  .garbo-menu a { height: auto; line-height: 1; padding: 0.9rem 1.5rem; }
  .garbo-menu .menu-cta > a { margin: 0.5rem 1.5rem 0; align-self: flex-start; }
  .garbo-menu.open { display: flex; }
  .garbo-hamburger { display: flex; }
  .garbo-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .garbo-footer-bottom { flex-direction: column; gap: 0.5rem; }
  .garbo-section { padding: 3rem 1.2rem; }
}
