/* mundifiesta.es — style.css */
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Maven+Pro:wght@400;500;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --header-bg:   #463939;
  --header-text: #ffffff;
  --accent:      #e85d04;
  --accent-light:#ffd166;
  --body-bg:     #faf9f9;
  --text:        #333333;
  --text-light:  #666666;
  --border:      #e0e0e0;
  --white:       #ffffff;
  --footer-bg:   #2e2424;
  --nav-hover:   rgba(255,255,255,0.15);
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans Pro', 'Maven Pro', Arial, sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ─── HEADER ─── */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.site-logo .logo-name {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.4rem;
  color: var(--header-text);
  line-height: 1.2;
}

.site-logo .logo-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-logo:hover { text-decoration: none; }

/* ─── NAV ─── */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.site-nav a {
  font-family: 'Maven Pro', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  padding: 8px 11px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--nav-hover);
  color: var(--white);
}

.site-nav a.nav-docx {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.site-nav a.nav-docx:hover {
  background: #c94f00;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #463939 0%, #6b3a2a 50%, #8b4513 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 2.4rem;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  font-size: 1.1rem;
  max-width: 660px;
  margin: 0 auto 28px;
  opacity: 0.92;
  position: relative;
}

.hero .phone {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Maven Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  position: relative;
  transition: background 0.2s;
}
.hero .phone:hover { background: #c94f00; text-decoration: none; }

/* ─── MAIN ─── */
.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ─── SECTIONS GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.service-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e0d4cc;
}

.service-card .card-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f0e6df, #e8d5c8);
  color: var(--header-bg);
}

.service-card .card-body {
  padding: 20px;
}

.service-card h3 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1rem;
  color: var(--header-bg);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.service-card .btn-more {
  display: inline-block;
  background: var(--header-bg);
  color: var(--white);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-family: 'Maven Pro', sans-serif;
  font-weight: 600;
  transition: background 0.2s;
}
.service-card .btn-more:hover { background: var(--accent); text-decoration: none; }

/* ─── INFO BOXES ─── */
.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.info-box h2, .info-box h3 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1rem;
  color: var(--header-bg);
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 8px;
}

.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { font-weight: 600; }

/* ─── SUBPAGE ─── */
.subpage-hero {
  background: var(--header-bg);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}
.subpage-hero h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.subpage-hero p { opacity: 0.8; font-size: 0.95rem; }

.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.content-area h2 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.2rem;
  color: var(--header-bg);
  margin: 32px 0 12px;
}

.content-area p {
  margin-bottom: 16px;
  color: var(--text);
}

/* ─── ARTICLE (DOCX) ─── */
.article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.article-wrapper h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.6rem;
  color: var(--header-bg);
  margin-bottom: 20px;
  line-height: 1.4;
}

.article-wrapper h2 {
  font-family: 'Maven Pro', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--header-bg);
  margin: 32px 0 10px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.article-wrapper h3 {
  font-family: 'Maven Pro', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 24px 0 8px;
}

.article-wrapper p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.97rem;
}

.article-meta {
  background: #f0ebe9;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--text-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.article-table th {
  background: var(--header-bg);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
}
.article-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.article-table tr:nth-child(even) td { background: #f7f3f1; }

/* ─── TOC ─── */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc h4 {
  font-family: 'Maven Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 10px;
}
.toc ol {
  margin-left: 18px;
}
.toc li {
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.toc a { color: var(--header-bg); }
.toc a:hover { color: var(--accent); }

/* ─── FAQ ─── */
.faq-item { margin-bottom: 20px; }
.faq-q {
  font-family: 'Maven Pro', sans-serif;
  font-weight: 700;
  color: var(--header-bg);
  font-size: 0.97rem;
  margin-bottom: 6px;
}
.faq-a { font-size: 0.93rem; color: var(--text); padding-left: 12px; }

/* ─── CONTACT FORM ─── */
.contact-form { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Maven Pro', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.btn-submit:hover { background: #c94f00; }

/* ─── 404 ─── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.error-page h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 16px;
}
.error-page p { color: var(--text-light); margin-bottom: 28px; }
.btn-home {
  display: inline-block;
  background: var(--header-bg);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Maven Pro', sans-serif;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-home:hover { background: var(--accent); text-decoration: none; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col p, .footer-col a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 5px;
}
.footer-col a:hover { color: var(--accent-light); text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; padding: 12px 16px; gap: 8px; }
  .site-nav { justify-content: center; gap: 1px; }
  .site-nav a { font-size: 0.75rem; padding: 6px 8px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .services-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .article-wrapper h1 { font-size: 1.3rem; }
}
