/* ============================================
   Plaza de Toros de Granada — style.css
   Tema: Floki (rebuild limpio)
   Colores: primary=#1a1a1a secondary=#2c2e38 accent=#fcce00 text=#5e6869 bg=#fff
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
  --primary:   #1a1a1a;   /* fondo header/nav */
  --secondary: #2c2e38;   /* nav secundario / overlay hero */
  --accent:    #fcce00;   /* amarillo dorado — hover / destacados */
  --text:      #5e6869;   /* texto cuerpo */
  --bg:        #ffffff;   /* fondo página */
  --border:    #5e6869;   /* bordes / hr */
  --dark2:     #5c5f72;   /* segundo tono oscuro */
}

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

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #000; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--accent); }
p { margin-bottom: 1em; }
ul, ol { margin: .75em 0 1em 1.5em; }
h1, h2, h3, h4, h5 { font-family: 'Roboto', sans-serif; font-weight: 300; color: #000; line-height: 1.3; margin-bottom: .6em; }
h1 { font-size: 38px; color: #fff; }
h2 { font-size: 36px; color: #000; }
h3 { font-size: 28px; color: #000; }
h4 { font-size: 22px; color: #000; }
h5 { font-size: 18px; color: #000; }
strong { color: #000; font-weight: 400; }
hr { background: var(--border); height: 1px; border: none; margin: 20px 0; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; gap: 30px; }
.col-full { flex: 0 0 100%; }
.col-main { flex: 1 1 640px; }
.col-side { flex: 0 0 280px; }

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

.header-top {
  background: var(--secondary);
  padding: 6px 0;
  font-size: 13px;
}
.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.header-top a { color: #ccc; }
.header-top a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 10px; align-items: center; }
.social-icons img { width: 20px; height: 20px; opacity: .8; }
.social-icons a:hover img { opacity: 1; }

.header-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  flex-wrap: nowrap;
}
.header-logo > a { display: block; flex-shrink: 0; }
.header-logo img { height: 55px; width: auto; }
.header-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; }

/* ── NAVEGACIÓN ── */
nav { position: relative; }
#menu, #main-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}
#menu > li, #main-menu > li { position: relative; }
#menu > li > a, #main-menu > li > a {
  display: block;
  padding: 16px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
#menu > li > a:hover,
#menu > li.active > a,
#main-menu > li > a:hover,
#main-menu > li.active > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Dropdown */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary);
  min-width: 280px;
  list-style: none;
  margin: 0; padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  z-index: 200;
}
#menu > li:hover .sub-menu,
#main-menu > li:hover .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: #ddd;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sub-menu li a:hover { color: var(--accent); background: rgba(255,255,255,.05); }

/* ── HERO / NAV2 ── */
.plaza-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--secondary);
}
.plaza-hero .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .7;
}
.plaza-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,26,.5) 0%, rgba(26,26,26,.3) 60%, rgba(26,26,26,.7) 100%);
}
.plaza-hero .hero-shadow-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: url('img/theme/shadow-top.webp') repeat-x top;
}
.plaza-hero .hero-shadow-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: url('img/theme/shadow-bottom.webp') repeat-x bottom;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
}
.hero-content h2 {
  font-size: 48px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,.8);
  margin-bottom: 12px;
}
.hero-content span {
  font-size: 18px;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0,0,0,.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: #fff;
  padding: 30px 0;
  text-align: center;
}
.breadcrumb-bar h1 {
  color: #fff;
  font-size: 38px;
  text-shadow: 3px 3px 0 var(--secondary), 5px 5px 0 var(--dark2);
}
.breadcrumb-bar h1.dark { color: #000; text-shadow: none; }
.breadcrumb-nav { font-size: 13px; color: #aaa; margin-top: 6px; }
.breadcrumb-nav a { color: #bbb; }
.breadcrumb-nav a:hover { color: var(--accent); }

/* ── MAIN CONTENT ── */
.page-content { padding: 50px 0 70px; }
.page-content article { background: #fff; }
.floki-post { }
.floki-post h2 { font-size: 28px; margin: 1.5em 0 .5em; }
.floki-post h3 { font-size: 22px; margin: 1.2em 0 .4em; }
.floki-post p { margin-bottom: 1em; }
.floki-post img { margin: 20px auto; border-radius: 2px; }
.floki-post ul, .floki-post ol { margin: .75em 0 1em 1.5em; }
.floki-post .wp-image { width: 100%; max-width: 700px; margin: 24px auto; }

/* ── BLOG ── */
.blog-posts { display: grid; gap: 40px; }
.blog-post-item { border-bottom: 1px dotted var(--border); padding-bottom: 30px; }
.blog-post-item:last-child { border-bottom: none; }
.post-meta { font-size: 13px; color: #999; margin-bottom: 10px; }
.post-meta .post-date { font-size: 16px; font-weight: 400; color: var(--secondary); }
.post-meta .post-cat a { color: var(--text); }
.post-meta .post-cat a:hover { color: var(--accent); }
.post-title { font-size: 22px; color: #000; margin: 6px 0; }
.post-title a { color: #000; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--text); font-size: 15px; }
.read-more { display: inline-block; margin-top: 12px; font-size: 13px; color: #000; border-bottom: 1px solid #ccc; }
.read-more:hover { color: var(--accent); border-color: var(--accent); }

/* ── CORRIDAS / EVENTOS ── */
.evento-block { margin: 30px 0; }
.evento-img-pair { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0; }
.evento-img-pair img { flex: 1 1 200px; max-width: 300px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 6px 0; border-bottom: 1px dotted var(--border); font-size: 15px; }
.info-list li strong { color: #000; }
.establecimientos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 20px 0; }
.establecimientos li { font-size: 13px; list-style: disc; color: var(--text); }

/* ── CONTACTO ── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contacto-info h3 { font-size: 22px; margin-bottom: 16px; }
.contacto-info p { font-size: 15px; margin-bottom: 8px; }
.contacto-info .tel { font-size: 18px; font-weight: 400; color: #000; }
.contacto-info .email a { color: var(--text); }
.contacto-info .email a:hover { color: var(--accent); }
.contact-form label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--text); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--border); border-radius: 2px;
  font-size: 14px; font-family: inherit; margin-bottom: 14px; background: #fff;
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form .cb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.contact-form .cb-row input { width: auto; margin: 0; }
.btn-submit {
  background: #000; color: #fff; border: 1px solid #000;
  padding: 12px 32px; cursor: pointer; font-size: 14px; font-family: inherit;
  text-transform: uppercase; letter-spacing: 1px; transition: background .2s, color .2s;
}
.btn-submit:hover { background: transparent; color: #000; }

/* ── VISITA ── */
.visita-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.horario-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.horario-table th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; }
.horario-table td { padding: 8px 14px; border-bottom: 1px solid #eee; }
.horario-table tr:nth-child(even) td { background: #f8f9fa; }

/* ── DOCX / ARTICLE TABLE ── */
.article-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-table th { background: var(--primary); color: #fff; padding: 12px; text-align: left; }
.article-table td { padding: 10px 12px; border-bottom: 1px solid #ddd; }
.article-table tr:nth-child(even) td { background: #f8f9fa; }
.faq-section h3 { background: #f0f4f8; padding: 12px 16px; border-left: 4px solid var(--accent); margin: 0 0 2px; font-size: 17px; }
.faq-section .faq-answer { padding: 12px 16px; background: #fafafa; border-left: 4px solid #ddd; margin-bottom: 16px; }
.article-content h1 { color: #000; font-size: 32px; margin-bottom: 20px; }
.article-content h2 { font-size: 24px; margin: 2em 0 .6em; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.article-content h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.article-content ul { margin: .75em 0 1em 1.5em; }
.article-content ul li { margin-bottom: 6px; }
.article-content ol li { margin-bottom: 6px; }
.article-content p { margin-bottom: 1em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-content table th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; }
.article-content table td { padding: 9px 14px; border-bottom: 1px solid #ddd; }
.article-content table tr:nth-child(even) td { background: #f8f9fa; }

/* ── 404 ── */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .big-404 { font-size: 120px; font-weight: 700; color: var(--accent); line-height: 1; text-shadow: 3px 3px 0 var(--secondary); }
.error-404 h2 { font-size: 28px; color: #000; margin: 16px 0; }
.error-404 p { color: var(--text); font-size: 16px; }
.btn-back { display: inline-block; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: 2px; font-weight: 400; margin-top: 20px; transition: background .2s; }
.btn-back:hover { background: var(--secondary); color: #fff; }

/* ── FOOTER ── */
footer { background: var(--primary); color: #aaa; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links a { color: #ddd; padding: 8px 20px; font-size: 13px; border-right: 1px solid rgba(255,255,255,.15); }
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: #666; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.footer-social img { width: 24px; height: 24px; opacity: .6; }
.footer-social a:hover img { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .header-logo { flex-direction: column; gap: 12px; text-align: center; }
  #menu, #main-menu { flex-direction: column; background: var(--secondary); display: none; width: 100%; }
  #menu.open, #main-menu.open { display: flex; }
  #menu > li > a, #main-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .sub-menu { position: static; display: block; background: rgba(255,255,255,.05); box-shadow: none; }
  .btn-menu-toggle { display: block; background: none; border: none; cursor: pointer; color: #fff; font-size: 24px; padding: 8px; }
  .header-nav { position: relative; width: 100%; }
  .contacto-grid { grid-template-columns: 1fr; }
  .visita-info { grid-template-columns: 1fr; }
  .hero-content h2 { font-size: 30px; }
  .hero-content span { font-size: 14px; }
  .plaza-hero { height: 320px; }
}
@media (min-width: 901px) {
  .btn-menu-toggle { display: none; }
}
@media (max-width: 600px) {
  h2 { font-size: 26px; }
  .page-content { padding: 30px 0 50px; }
}
