/*
Theme Name: Navar
Theme URI: https://hotelsandiegorubiales.com
Author: IAprosystems
Description: Tema para Grupo Empresarial Navar
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
*/

/* ===== Base ===== */
body { margin:0; color:#333; background:#fff; }
a { text-decoration:none; color:inherit; }
.wp-site-blocks { overflow-x:hidden; }
h1,h2,h3 { font-family: Roboto, Arial, sans-serif; font-weight:700; color:#111; }

/* ===== Header ===== */
.sg-header { background:#fff; border-bottom:1px solid #eee; position:relative; z-index:50; }
.sg-header-inner { padding:18px 20px; max-width:1200px; margin:0 auto; }
.sg-logo { display:inline-flex; align-items:center; gap:10px; font-family:Roboto,Arial,sans-serif; font-weight:700; font-size:20px; color:#111; }
.sg-logo-icon { color:#FAB914; font-size:26px; }
.sg-nav-col { text-align:right; }
.sg-nav .wp-block-navigation__container { justify-content:flex-end; gap:30px !important; }
.sg-nav a { font-family:Roboto,Arial,sans-serif; font-size:16px; color:#111; padding:8px 0; }
.sg-nav a:hover { color:#FAB914; }
.sg-nav .current-menu-item > a, .sg-nav .wp-block-navigation-item.current-menu-item a { color:#FAB914; }

/* ===== Hero ===== */
.sg-hero { position:relative; min-height:460px; display:flex; align-items:center; background-size:cover; background-position:center; }
.sg-hero::before { content:""; position:absolute; inset:0; background:rgba(0,0,0,0.15); }
.sg-hero-inner { position:relative; z-index:2; max-width:1200px; margin:0 auto; padding:0 20px; width:100%; }
.sg-hero-box { background:#fff; padding:40px 50px; max-width:620px; margin:0 auto; text-align:center; }
.sg-hero-box h1 { font-size:48px; line-height:1.15; }
.sg-hero-box h1 { font-size:34px; line-height:1.25; margin:0; }
.sg-hero-box .sg-accent { color:#FAB914; }
.sg-hero-simple { min-height:300px; }
.sg-hero-simple h1 { color:#fff; font-size:46px; text-shadow:0 2px 10px rgba(0,0,0,0.4); margin:0; }

/* ===== Category tiles ===== */
.sg-tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:0; }
.sg-tile { position:relative; min-height:260px; background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; }
.sg-tile::before { content:""; position:absolute; inset:0; background:rgba(0,0,0,0.35); }
.sg-tile span { position:relative; z-index:2; color:#fff; font-family:Roboto,Arial,sans-serif; font-weight:700; font-size:22px; letter-spacing:1px; }

/* ===== Section heading ===== */
.sg-section { max-width:1160px; margin:0 auto; padding:60px 20px; }
.sg-section h2 { text-align:center; font-size:36px; margin:0 0 40px; }

/* ===== Sub-brand cards (Nuestros cuartos) ===== */
.sg-brands { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.sg-brand-card { border:1px solid #eee; border-radius:4px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.sg-brand-card img { width:100%; height:200px; object-fit:contain; display:block; background:#fff; padding:20px; box-sizing:border-box; }
.sg-brand-card .sg-brand-title { text-align:center; padding:16px; font-family:Roboto,Arial,sans-serif; font-weight:700; font-size:18px; }

/* ===== Oferta especial band ===== */
.sg-offer-band { background:#FFDF92; padding:60px 20px; }
.sg-offer-card { max-width:960px; margin:0 auto; background:#fff; display:flex; gap:0; box-shadow:0 2px 10px rgba(0,0,0,0.08); }
.sg-offer-card img { width:280px; height:220px; object-fit:cover; flex-shrink:0; }
.sg-offer-text { padding:30px 40px; }
.sg-offer-text h3 { font-size:20px; margin:0 0 14px; }
.sg-offer-text p { color:#555; line-height:1.7; margin:0 0 20px; }
.sg-btn { display:inline-block; background:#FFDF92; color:#222; font-family:Roboto,Arial,sans-serif; font-weight:700; padding:12px 26px; border:none; cursor:pointer; }
.sg-btn:hover { background:#FAB914; }

/* ===== Footer ===== */
.sg-footer { background:#f3f3f3; padding:40px 20px; margin-top:0; }
.sg-footer-inner { max-width:1160px; margin:0 auto; text-align:center; }
.sg-copy { color:#555; font-size:14px; margin:0 0 20px; }
.sg-copy a { color:#FAB914; font-weight:700; }
.sg-socials { display:flex; justify-content:center; gap:16px; }
.sg-socials a { width:40px; height:40px; border-radius:50%; background:#fff; border:1px solid #ddd; display:flex; align-items:center; justify-content:center; color:#555; font-size:18px; }
.sg-socials a:hover { background:#FAB914; color:#fff; border-color:#FAB914; }

/* ===== Servicios cards ===== */
.sg-service-card { max-width:960px; margin:0 auto 30px; background:#fff; display:flex; box-shadow:0 1px 6px rgba(0,0,0,0.08); border:1px solid #f0f0f0; }
.sg-service-card img { width:280px; height:230px; object-fit:cover; flex-shrink:0; }
.sg-service-text { padding:30px 40px; }
.sg-service-text h3 { font-size:20px; margin:0 0 14px; letter-spacing:0.5px; }
.sg-service-text p { color:#555; line-height:1.7; margin:0 0 20px; }

/* ===== Galeria grid ===== */
.sg-gallery { columns:2; column-gap:24px; max-width:1160px; margin:40px auto; padding:0 20px; }
.sg-gallery img { width:100%; margin-bottom:24px; display:block; border-radius:2px; break-inside:avoid; }

/* ===== Contactos ===== */
.sg-contact-info { max-width:1160px; margin:0 auto 40px; padding:0 20px; display:grid; grid-template-columns:1fr 1fr; gap:30px; text-align:center; }
.sg-contact-info h4 { font-size:16px; margin:0 0 6px; }
.sg-contact-info p { margin:0 0 4px; color:#555; }
.sg-contact-info a { color:#FAB914; font-weight:700; }
.sg-form { max-width:760px; margin:0 auto; padding:0 20px 60px; }
.sg-row { margin-bottom:18px; }
.sg-row label { display:block; font-weight:600; margin-bottom:6px; font-size:14px; }
.sg-row input[type=text], .sg-row input[type=email], .sg-row select, .sg-row textarea { width:100%; box-sizing:border-box; padding:11px 14px; border:1px solid #ddd; border-radius:2px; font-family:inherit; font-size:15px; }
.sg-checkbox-row label { display:flex; align-items:center; gap:8px; font-weight:400; font-size:14px; }
.sg-form button[type=submit] { background:#FAB914; color:#222; font-family:Roboto,Arial,sans-serif; font-weight:700; padding:13px 32px; border:none; border-radius:2px; cursor:pointer; font-size:15px; }
.sg-form button[type=submit]:hover { background:#e5a80c; }
.sg-alert { padding:14px 18px; border-radius:2px; margin-bottom:20px; font-size:14px; }
.sg-ok { background:#e6f6ea; color:#1e7a34; border:1px solid #bfe8c9; }
.sg-err { background:#fdeaea; color:#a33131; border:1px solid #f3c2c2; }

/* ===== Responsive ===== */
@media (max-width: 781px) {
  .sg-tiles { grid-template-columns:1fr; }
  .sg-brands { grid-template-columns:1fr; }
  .sg-offer-card { flex-direction:column; }
  .sg-offer-card img { width:100%; height:200px; }
  .sg-service-card { flex-direction:column; }
  .sg-service-card img { width:100%; height:200px; }
  .sg-gallery { columns:1; }
  .sg-contact-info { grid-template-columns:1fr; }
  .sg-hero-box { max-width:100%; padding:28px; }
  .sg-nav-col { text-align:left; margin-top:10px; }
  .sg-columns-stack-mobile { flex-direction:column !important; }
}