/*
Theme Name: O Galo Ferrol
Theme URI: https://ogalo.enonline.es/
Author: MR0.es
Author URI: https://mr0.es/
Description: Tema clásico de WordPress para la demostración web de Mesón O Galo en Ferrol. Incluye portada gastronómica, reservas y pedidos por WhatsApp, carta, ubicación y opciones editables desde el Personalizador.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ogalo-ferrol
Tags: restaurant, food-and-drink, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --ogalo-black: #171717;
  --ogalo-red: #a92722;
  --ogalo-red-dark: #7f1d1d;
  --ogalo-gold: #d48a24;
  --ogalo-gold-dark: #a86416;
  --ogalo-cream: #f5f0e6;
  --ogalo-off-white: #fcfaf6;
  --ogalo-white: #ffffff;
  --ogalo-text: #252525;
  --ogalo-muted: #666158;
  --ogalo-border: #ddd4c5;
  --ogalo-success: #426b45;
  --ogalo-whatsapp: #168c45;
  --ogalo-radius-sm: 7px;
  --ogalo-radius-md: 14px;
  --ogalo-radius-lg: 24px;
  --ogalo-shadow: 0 16px 45px rgba(23, 23, 23, 0.12);
  --ogalo-shadow-sm: 0 8px 24px rgba(23, 23, 23, 0.08);
  --ogalo-max: 1180px;
  --ogalo-heading: Georgia, "Times New Roman", serif;
  --ogalo-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ogalo-cream);
  color: var(--ogalo-text);
  font-family: var(--ogalo-body);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ogalo-red); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--ogalo-red-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 12px; left: 12px; width: auto; height: auto;
  padding: 12px 16px; margin: 0; clip: auto; background: #fff; color: #000; z-index: 99999;
}

.container { width: min(calc(100% - 32px), var(--ogalo-max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--ogalo-white); }
.section--dark { background: var(--ogalo-black); color: var(--ogalo-white); }
.section--off { background: var(--ogalo-off-white); }
.section-heading { max-width: 780px; margin-bottom: 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px; color: var(--ogalo-gold-dark); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
h1,h2,h3,h4 { font-family: var(--ogalo-heading); line-height: 1.12; margin-top: 0; color: var(--ogalo-black); }
h1 { font-size: clamp(2.65rem, 6vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.section--dark h1,.section--dark h2,.section--dark h3 { color: var(--ogalo-white); }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ogalo-muted); max-width: 760px; }
.section--dark .lead { color: #d8d2c9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 20px; border-radius: var(--ogalo-radius-sm);
  border: 2px solid transparent; text-decoration: none; font-weight: 800; line-height: 1.1;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ogalo-red); color: #fff; }
.btn--primary:hover { background: var(--ogalo-red-dark); color: #fff; }
.btn--dark { background: var(--ogalo-black); color: #fff; }
.btn--dark:hover { background: #2a2a2a; color: #fff; }
.btn--outline { background: transparent; color: var(--ogalo-black); border-color: var(--ogalo-black); }
.btn--outline:hover { background: var(--ogalo-black); color: #fff; }
.btn--light { background: var(--ogalo-white); color: var(--ogalo-black); }
.btn--light:hover { background: var(--ogalo-gold); color: var(--ogalo-black); }
.btn--whatsapp { background: var(--ogalo-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #0f7337; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(23,23,23,.96); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: max-content; }
.custom-logo { width: auto; max-height: 52px; }
.brand-mark {
  display: grid; place-items: center; width: 45px; height: 45px; border: 2px solid var(--ogalo-gold);
  border-radius: 50%; color: var(--ogalo-gold); font-family: var(--ogalo-heading); font-size: 1.45rem; font-weight: 700;
}
.brand-text strong { display: block; font-family: var(--ogalo-heading); font-size: 1.35rem; letter-spacing: .04em; }
.brand-text small { display: block; color: #cfc8bc; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 23px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
.primary-nav a:hover { color: var(--ogalo-gold); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; padding: 9px 12px; border-radius: 6px; }

.hero {
  position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18,18,18,.94) 0%, rgba(18,18,18,.82) 48%, rgba(18,18,18,.35) 100%),
    radial-gradient(circle at 80% 20%, rgba(212,138,36,.42), transparent 35%),
    linear-gradient(135deg, #211a14 0%, #171717 58%, #3d211e 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: repeating-linear-gradient(120deg, transparent 0 21px, rgba(255,255,255,.06) 22px 23px);
  pointer-events: none;
}
.hero.has-image { background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 90px 0; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: #eee7dc; max-width: 690px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 30px; color: #e2d8cb; font-size: .94rem; }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; margin-bottom: 18px;
  background: rgba(212,138,36,.12); border: 1px solid rgba(212,138,36,.55); border-radius: 999px;
  color: #f3bd70; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
}

.trust-strip { background: var(--ogalo-gold); color: var(--ogalo-black); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { padding: 23px 20px; text-align: center; font-weight: 850; border-right: 1px solid rgba(23,23,23,.18); }
.trust-item:last-child { border-right: 0; }
.trust-item small { display: block; font-weight: 600; opacity: .75; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.photo-card {
  min-height: 500px; border-radius: var(--ogalo-radius-lg); overflow: hidden; box-shadow: var(--ogalo-shadow);
  background:
    radial-gradient(circle at 62% 34%, rgba(212,138,36,.75), transparent 20%),
    linear-gradient(135deg, #42221c, #171717 52%, #84602c);
  position: relative;
}
.photo-card::before {
  content: "O GALO"; position: absolute; left: 32px; bottom: 25px; color: rgba(255,255,255,.92);
  font-family: var(--ogalo-heading); font-size: clamp(2rem,5vw,4.8rem); letter-spacing: .06em;
}
.photo-card::after { content: "Mesón · Ferrol"; position: absolute; left: 37px; bottom: 18px; transform: translateY(100%); color: #f5c680; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.check-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 31px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ogalo-red); font-weight: 900; }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--ogalo-border); border-radius: var(--ogalo-radius-md);
  padding: 28px; box-shadow: var(--ogalo-shadow-sm); height: 100%;
}
.card-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--ogalo-cream); color: var(--ogalo-red); font-size: 1.4rem; margin-bottom: 20px; }
.card p:last-child { margin-bottom: 0; }

.dishes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.dish-card { background: #fff; border-radius: var(--ogalo-radius-md); overflow: hidden; border: 1px solid var(--ogalo-border); box-shadow: var(--ogalo-shadow-sm); }
.dish-image {
  aspect-ratio: 16/10; display: grid; place-items: center; background:
    radial-gradient(circle at 45% 40%, rgba(212,138,36,.8), transparent 24%),
    linear-gradient(135deg, #5f3027, #1f1f1f 66%, #8c5d24);
  color: rgba(255,255,255,.9); font-family: var(--ogalo-heading); font-size: 1.75rem;
}
.dish-image img { width: 100%; height: 100%; object-fit: cover; }
.dish-body { padding: 24px; }
.dish-body p { color: var(--ogalo-muted); margin-bottom: 0; }

.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote-card { border-top: 4px solid var(--ogalo-gold); background: rgba(255,255,255,.06); padding: 28px; border-radius: 0 0 var(--ogalo-radius-md) var(--ogalo-radius-md); }
.quote-card p { color: #e0d9ce; }
.quote-card strong { color: #fff; }

.recognitions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.recognition { padding: 11px 15px; border: 1px solid var(--ogalo-border); border-radius: 999px; background: #fff; font-weight: 750; }

.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; align-items: start; }
.form-card { background: #fff; padding: 30px; border: 1px solid var(--ogalo-border); border-radius: var(--ogalo-radius-md); box-shadow: var(--ogalo-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 17px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
label { font-weight: 750; font-size: .93rem; }
input, select, textarea {
  width: 100%; border: 1px solid #bdb5aa; border-radius: 7px; background: #fff; color: var(--ogalo-text);
  padding: 12px 13px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(212,138,36,.22); border-color: var(--ogalo-gold-dark); }
.form-note { margin-top: 15px; padding: 13px 15px; border-left: 4px solid var(--ogalo-gold); background: var(--ogalo-cream); font-size: .91rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background: #fff; border-radius: var(--ogalo-radius-md); padding: 30px; border: 1px solid var(--ogalo-border); }
.contact-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 13px; }
.map-placeholder {
  min-height: 390px; display: grid; place-items: center; text-align: center; padding: 30px;
  border-radius: var(--ogalo-radius-md); background:
    linear-gradient(rgba(23,23,23,.72),rgba(23,23,23,.72)),
    repeating-linear-gradient(45deg,#362d24 0 20px,#2b241e 20px 40px);
  color: #fff;
}
.map-placeholder h3 { color: #fff; }

.site-footer { background: #101010; color: #cfc8bc; padding: 58px 0 95px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.site-footer h3 { color: #fff; }
.site-footer a { color: var(--ogalo-gold); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .88rem; }

.mobile-actions { display: none; }
.notice-demo { background: #fff4d8; color: #4d3b0a; text-align: center; padding: 9px 15px; font-size: .84rem; border-bottom: 1px solid #e7d49c; }

.entry-content, .page-content { width: min(calc(100% - 32px), 860px); margin: 0 auto; padding: 70px 0; }
.entry-content > *:first-child { margin-top: 0; }

@media (max-width: 980px) {
  .primary-nav, .header-cta .btn--outline { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav.is-open { display: block; position: absolute; top: 76px; left: 0; right: 0; background: #171717; padding: 20px 16px 25px; border-top: 1px solid rgba(255,255,255,.1); }
  .primary-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.is-open a { display: block; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .split, .form-wrap, .contact-grid { grid-template-columns: 1fr; }
  .cards, .dishes { grid-template-columns: repeat(2,1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(23,23,23,.18); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: 66px; }
  .section { padding: 65px 0; }
  .header-inner { min-height: 68px; }
  .header-cta { display: none; }
  .primary-nav.is-open { top: 68px; }
  .hero { min-height: 620px; }
  .hero-content { padding: 72px 0; }
  .hero-meta { display: grid; gap: 8px; }
  .actions .btn { width: 100%; }
  .cards, .dishes, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .photo-card, .photo-card img { min-height: 370px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(23,23,23,.18); }
  .trust-item:last-child { border-bottom: 0; }
  .mobile-actions {
    position: fixed; z-index: 1500; left: 0; right: 0; bottom: 0; height: 66px;
    display: grid; grid-template-columns: repeat(3,1fr); background: #171717; box-shadow: 0 -8px 25px rgba(0,0,0,.2);
  }
  .mobile-actions a { display: grid; place-items: center; color: #fff; text-decoration: none; font-size: .75rem; font-weight: 800; border-right: 1px solid rgba(255,255,255,.1); }
  .mobile-actions a:nth-child(2) { background: var(--ogalo-red); }
  .mobile-actions a:nth-child(3) { background: var(--ogalo-whatsapp); }
}

/* Versión 1.1 */
.rating-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:30px}.rating-card{display:grid;gap:4px;padding:28px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);border-radius:var(--ogalo-radius-md);text-decoration:none;color:#fff}.rating-card:hover{background:rgba(255,255,255,.12);color:#fff}.rating-card strong{font:700 clamp(2rem,4vw,3.5rem)/1 var(--ogalo-heading);color:var(--ogalo-gold)}.rating-card span{font-weight:800;font-size:1.1rem}.rating-card small{color:#d8d2c9}.center-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:36px}.recognition-panel{display:grid;grid-template-columns:1fr .8fr;gap:45px;align-items:center}.recognition-panel img,.social-card img{width:100%;height:360px;object-fit:cover;border-radius:var(--ogalo-radius-md);box-shadow:var(--ogalo-shadow)}.order-options{display:grid;grid-template-columns:.8fr 1.2fr;gap:45px;align-items:start}.social-card{background:#fff;border:1px solid var(--ogalo-border);padding:18px;border-radius:var(--ogalo-radius-md)}.social-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.social-links a{display:inline-flex;padding:10px 13px;border:1px solid var(--ogalo-border);border-radius:999px;text-decoration:none;font-weight:750;background:#fff}.social-links--footer a{background:transparent;border-color:rgba(255,255,255,.2)}
@media(max-width:980px){.rating-grid,.recognition-panel,.order-options{grid-template-columns:1fr}.recognition-panel img{order:-1}}
@media(max-width:680px){.rating-grid{grid-template-columns:1fr}.recognition-panel img,.social-card img{height:260px}}
