/* === Tema custom Semana Internacional de Cine Fantástico Costa del Sol ===
   Reconstrucción de los estilos sobre la estructura Weebly original.
*/
:root {
  --brand: #a82e2e;
  --brand-dark: #7a1f1f;
  --brand-accent: #508d24;
  --ink: #1a1a1a;
  --paper: #fafafa;
  --muted: #6b6b6b;
  --border: #e6e6e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Convergence", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  margin: 0;
  padding: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Bare text node at top of body — removed by site.js on load */

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Amaranth", "Antic Slab", Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 1.2em 0 .55em;
}
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

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

/* === Page-wide container === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
#header-wrap {
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  border-bottom: 1px solid #000;
  position: relative;
}
#header-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, var(--brand) 70%, transparent 100%);
}
#header-wrap #header { width: 100%; border-collapse: collapse; }
#header-wrap #logo { padding: 18px 0; }
#header-wrap #logo img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(168,46,46,.3));
}
#header-wrap #header-right { vertical-align: middle; text-align: right; }
#header-wrap .phone-number { color: #888; font-size: .9rem; }

/* === Navigation === */
#nav-wrap {
  background: var(--ink);
  border-top: 4px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
#nav-wrap .wsite-menu-default,
#nav-wrap ul.wsite-menu-default {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
#nav-wrap .wsite-menu-default li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#nav-wrap .wsite-menu-default li::before { display: none; }
#nav-wrap .wsite-menu-default li a,
#nav-wrap .wsite-menu-item {
  display: block;
  color: #fff !important;
  padding: 14px 16px;
  font-family: "Convergence", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-bottom: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
#nav-wrap .wsite-menu-default li a:hover,
#nav-wrap .wsite-menu-default li#active > a {
  background: var(--brand);
  border-bottom-color: var(--brand-dark);
  text-decoration: none;
}

/* === Banner / slideshow === */
#banner-wrap {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c1416 100%);
  color: #fff;
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}
#banner-wrap #banner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
#banner-wrap #bannerleft {
  flex: 2;
  min-width: 320px;
  min-height: 380px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  background-color: #0d0d0d;
  background-image:
    linear-gradient(135deg, rgba(168,46,46,.55) 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.85) 100%),
    url('/uploads/2/4/0/0/24000822/header_images/1391098554.jpg');
  background-size: cover;
  background-position: center;
}
/* Decorative overlay film grain */
#banner-wrap #bannerleft::before {
  content: "FESTIVAL DE CINE FANT\\00C1 STICO COSTA DEL SOL";
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  color: #fff;
  font-family: "Amaranth", serif;
  font-size: 1.1rem;
  letter-spacing: 4px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
#banner-wrap #bannerleft::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255,255,255,.02) 3px,
      rgba(255,255,255,.02) 4px
    );
  pointer-events: none;
}
/* Hide the (broken) inline slideshow markup since we paint via background */
#banner-wrap .wslide-main,
#banner-wrap .wslide-content,
#banner-wrap .wslide-slides,
#banner-wrap .wslide-slide { display: none !important; }
#banner-wrap .wslide-content,
#banner-wrap .wslide-content-inner,
#banner-wrap .wslide-slides,
#banner-wrap .wsite-header,
#banner-wrap .wslide-main {
  width: 100% !important;
  height: 100% !important;
  position: relative;
}
#banner-wrap .wslide-slide-inner2 {
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  background-size: cover;
  background-position: center;
}
#banner-wrap .wslide-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
#banner-wrap #bannerright {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: rgba(168, 46, 46, .15);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}
#banner-wrap h2 { color: #fff; font-size: 2.6rem; margin: 0 0 12px; letter-spacing: -.5px; }
#banner-wrap p { color: #ccc; margin: 0 0 18px; }
#banner-wrap .wsite-headline-paragraph font {
  color: #f4d4d4 !important;
  font-size: 1.05rem !important;
}

/* === Main content === */
#main-wrap {
  background: #fff;
  padding: 40px 0;
}
#wsite-content {
  display: block;
}

/* === Multicol === */
.wsite-multicol-table,
.wsite-multicol-table-wrap {
  width: 100%;
}
.wsite-multicol-col {
  padding: 0 15px;
  vertical-align: top;
}

/* === Images / content === */
.wsite-image {
  margin: 6px 0;
  display: inline-block;
  vertical-align: top;
}
.wsite-image img {
  border-radius: 4px;
  display: block;
  max-width: 100%;
}

/* === Hide search box (Weebly search doesn't work statically) === */
.wsite-search,
.wsite-search-input,
input[name="search"],
.wsite-search-element-input,
input[placeholder*="úsqueda"i],
input[placeholder*="usqueda"i],
input[placeholder*="search"i] { display: none !important; }
.wsite-search-element-button { display: none !important; }

/* === PDF download blocks (Catalogo, Programa) === */
.wsite-image[class*="cdn1.editmysite.com/editor/libraries/files"],
img[src*="weebly.com/weebly/images/file_icons"] { display: none !important; }
/* Wrap PDF/file links with an icon ::before */
a[href$=".pdf"]::before, a[href$=".PDF"]::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a82e2e'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path fill='%23fff' d='M14 2v6h6'/><text x='7' y='17' font-family='Helvetica' font-size='6' font-weight='bold' fill='%23a82e2e'>PDF</text></svg>") center/contain no-repeat;
}

/* === Audio player styling === */
.mejs-container {
  background: #1a1a1a !important;
  border-radius: 4px;
  max-width: 480px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.mejs-controls { background: #1a1a1a !important; }
.mejs-time, .mejs-currenttime, .mejs-duration { color: #fff !important; }
.mejs-time-rail .mejs-time-total { background: rgba(255,255,255,.15) !important; }
.mejs-time-rail .mejs-time-current { background: var(--brand) !important; }
/* Hide native audio when mediaelement wrapper exists */
.mejs-container + audio,
audio.wsite-mejs-align-right { display: none !important; }
/* Some pages render multiple wrappers — keep only first */
.mejs-container ~ .mejs-container { display: none !important; }
.wsite-com-music-product + .wsite-com-music-product { display: none !important; }

/* === Search box === */
input[type="text"], input[type="search"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: .95rem;
}
input[type="text"]:focus, input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(168, 46, 46, .15);
}

/* === Buttons === */
.wsite-button {
  display: inline-block;
  padding: 11px 22px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 4px;
  font-family: "Convergence", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: .85rem;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.wsite-button:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
  color: #fff !important;
}
.wsite-button-inner { color: inherit; }
#banner-wrap .wsite-button {
  background: #fff;
  color: var(--brand) !important;
}
#banner-wrap .wsite-button:hover { background: #f4f4f4; }

/* === Tables (sponsor logo grids) === */
table.wsite-multicol-table { border-collapse: collapse; }
table.wsite-multicol-table td { padding: 10px; vertical-align: middle; }

/* === OLD weebly footer-wrap: hide, we have our own === */
#footer-wrap { display: none !important; }

/* === Hide bottom-of-page sponsor grids that vary per page ===
   They live in the last wsite-multicol blocks. Show ours instead. */
#wsite-content > div > div > div > div.wsite-multicol:nth-last-child(-n+8) {
  /* keep — too risky to hide; rely on unified footer below */
}

/* === Unified footer === */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 50px 0 30px;
  margin-top: 60px;
  border-top: 4px solid var(--brand);
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-footer__sponsors-title {
  font-family: "Amaranth", serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #888;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.site-footer__sponsors-title::before,
.site-footer__sponsors-title::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: #444;
  vertical-align: middle;
  margin: 0 12px;
}
.site-footer__sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 36px;
}
.site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 8px;
}
.site-footer__logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .2s, transform .2s;
}
.site-footer__logo img:hover {
  filter: grayscale(0);
  transform: scale(1.05);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  padding: 20px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 24px;
}
.site-footer__nav a {
  color: #ccc;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: color .15s;
}
.site-footer__nav a:hover { color: var(--brand); text-decoration: none; }
.site-footer__legal {
  text-align: center;
  font-size: .85rem;
  color: #777;
}
.site-footer__legal p { margin: 4px 0; }
.site-footer__legal .site-footer__addr { color: #555; font-size: .8rem; }

@media (max-width: 700px) {
  .site-footer__sponsors { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .site-footer__nav { gap: 10px 18px; }
  .site-footer__nav a { font-size: .75rem; }
}

/* === PDF download links === */
a[href$=".pdf"], a[href$=".PDF"] {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(168, 46, 46, .08);
  border-left: 3px solid var(--brand);
  border-radius: 0 4px 4px 0;
  color: var(--brand-dark);
  font-weight: 600;
  margin: 4px 0;
}
a[href$=".pdf"]:hover, a[href$=".PDF"]:hover {
  background: rgba(168, 46, 46, .15);
  text-decoration: none;
}

/* === Strip Weebly's customer-accounts modal styles bleed === */
.customer-accounts-app__modal-wrapper { display: none !important; }

/* === Hide Weebly editor remnants === */
.wsite-spacer { min-height: 1px; }

/* === Marquee === */
marquee {
  background: var(--brand);
  color: #fff;
  padding: 10px 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  display: block;
}

/* === Mobile === */
@media (max-width: 900px) {
  #header-wrap #header { display: block; }
  #header-wrap #header tbody, #header-wrap #header tr, #header-wrap #header td { display: block; width: 100%; }
  #nav-wrap .wsite-menu-default { flex-direction: column; }
  #nav-wrap .wsite-menu-default li a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  #banner-wrap #banner { flex-direction: column; }
  #banner-wrap #bannerleft { min-height: 240px; }
  #banner-wrap h2 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .container { padding: 0 12px; }
  h2 { font-size: 1.4rem; }
}

/* === Print === */
@media print {
  #nav-wrap, audio, video, .wsite-button { display: none; }
}
