/* RESET CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif; 
  background-color: #fff;
  color: #000; 
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
  letter-spacing: 1px; 
}

p {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit; 
}
/*BOTONES*/
.btn-primario{
  font-family: 'Bebas Neue', sans-serif;
  color: #000;
  background-color: #FFD43B;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 12px 16px;
  letter-spacing: .5px;
  border: none;
  transition: transform .2s ease, filter .2s ease;
}
.btn-primario:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.btn-primario:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn-secundario{
  font-family: 'Bebas Neue', sans-serif;
  color: #fff;
  background-color: #5b0f16;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 12px 16px;
  letter-spacing: .5px;
  border: none;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-secundario:hover {
  background-color: #3c0a0e;
  transform: translateY(-1px);
  filter: brightness(1.1);
  color: #fff;
}
.btn-secundario:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/*BOTONES*/
/*HEADER*/
header,
.navbar {
  background-color: #5b0f16;
  padding: 10px 0;
}

.navbar-collapse {
  background-color: #5b0f16;
}
.logo-header{
  max-width: 130px;
  height: auto;
}
.nav-link {
  display: inline-block;
  position: relative;
  color: #fff !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform .3s ease, color .3s ease;
  transform-origin: center bottom;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width .3s ease;
}

.nav-link:hover {
  color: #fff !important;
  transform: scale(1.05);
}
.nav-link:hover::after { width: 100%; }

@media (max-width: 991.98px) {
  .navbar { position: relative; z-index: 20; }
  .navbar-collapse {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #5b0f16;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,.15);
  }
}
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }
/*HEADER*/
/*SECCION 1 - HERO*/
#hero.hero-cover {
  position: relative;
  min-height: 80vh;
  background-image: url('../img/hero-cirkeros.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  scroll-margin-top: 100px;
}
#hero {
  position: relative;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#hero .container, #hero .row { position: relative; z-index: 1; }
.hero-logo { width: 500px; height: auto; }
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}
.hero-tagline { font-family: 'Poppins', sans-serif; font-size: 16px; opacity: 0.8; }
#hero .btn-primario { padding: 12px 22px; }

/* Responsive */
@media (max-width: 991.98px) {
  #hero.hero-cover { min-height: 90vh; }
  .hero-logo { width:350px; }
}
/*SECCION 1 - HERO*/
/*SECCION 2 - FESTIVAL*/
#festival {
  position: relative;
  background: linear-gradient(180deg, #1ABC9C 0%, #000 100%);
  color: #fff;
  overflow: hidden;
  padding-bottom: 70px;
}
.festival-logo { max-width: 360px; width: 100%; height: auto; }
.festival-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 36px; }
.festival-text { font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 1.6; opacity: 0.8; }
#festival .btn-primario {
  background-color: #FFD43B; color: #000; font-weight: 600; padding: 12px 20px;
}
.custom-shape-divider-bottom-1757894377 {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 120px;
  line-height: 0; overflow: hidden; transform: rotate(180deg);
  transform-origin: center; pointer-events: none;
}
.custom-shape-divider-bottom-1757894377 svg { display: block; width: 100%; height: 100%; }
.custom-shape-divider-bottom-1757894377 .shape-fill { fill: #ffffff; }
/*SECCION 2 - FESTIVAL*/
/*SECCION 3 - SERVICIOS*/
#servicios { background: #fff; color: #000; }

.servicios-title {
  font-family: 'Bebas Neue', sans-serif;
  color: #6B1E2C;
  font-size: 32px;
  font-weight: 600;
}
.servicios-subtitle { max-width: 70ch; margin: 0 auto; color: #333; }

.service-card{
  position: relative;
  height: 600px;
  width: 494px;
  border-radius: 5px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.447);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
  perspective: 1000px; /* base */
}
/* Overlay */
.service-card::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.622) 0%, rgba(0,0,0,.65) 100%);
  z-index: 1;
}
/* Título card */
.service-title {
  position: absolute; top: 32%; left: 50%; transform: translate(-50%, -50%);
  margin: 0; padding: 6px 10px;
  font-family: 'Bebas Neue', sans-serif; color: #fff; font-size: 25px; text-transform: uppercase;
  z-index: 2;
}
/* Texto al centro */
.service-text{
  position: relative; z-index: 2;
  font-family: 'Poppins', sans-serif; color: #e2e2e2; max-width: 28ch; margin: 0 auto; font-size: 18px;
}
/* Flip */
.service-inner{
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .6s ease; z-index: 2;
}
.service-face{
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; padding: 16px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.service-back{
  transform: rotateY(180deg);
  background: rgba(0, 0, 0, 0.499); color: #fff; border-radius: 5px;
}
.service-back-title{
  font-family: 'Bebas Neue', sans-serif; font-size: 26px; margin: 0 0 6px; color: #FFD43B;
}
.service-back-text{
  font-family: 'Poppins', sans-serif; max-width: 32ch; margin: 0 auto 10px; color: #eaeaea;
}
.service-card.is-flipped .service-inner { transform: rotateY(180deg); }

/* Responsive */
@media (max-width: 1199.98px){
  .service-card{ width: 100%; max-width: 384px; }
}
@media (max-width: 991.98px){
  .service-card{ height: 480px; }
}
@media (max-width: 575.98px){
  .service-card{ height: 480px; }
  .service-text{ max-width: 32ch; }
}
/*SECCION 3 - SERVICIOS*/
.section-divider {
  border: none; height: 2px; width: 60%;
  margin: 40px auto; background-color: #800000; opacity: 0.7;
}
/*SECCION 4 - PRODUCCIONES*/
#producciones{ background: linear-gradient(#ffffff, #000); }
.prod-card{
  border: 0; border-radius: 5px; background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.prod-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.12); }
.prod-thumb{
  aspect-ratio: 16/9; background: #ffffff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.prod-thumb img{ width: 95%; height: 90%; border-radius: 5px; object-fit: cover; display: block; }
.prod-body{ padding: 5px 18px 22px; }
.prod-title{ font-size: 24px; font-weight: 500; letter-spacing: 0cap; color: #5b0f16; text-transform: uppercase; }
.prod-text{ font-size: 15px; color: #000000; margin-bottom: 16px; }
.modal-title { color: #ffff; font-size: 24px; font-weight: 500; letter-spacing: 0cap; text-transform: uppercase; }
.modal-header{ background-color:#5b0f16; }
.modal-footer{ background-color: #5b0f16; }
.modal-body{ background-color: #000000; color: #fff; }
/*SECCION 4 - PRODUCCIONES*/
/*SECCION 5 - QUIENES SOMOS*/
.back-1-somos{
  background: linear-gradient(to bottom, #000 0%, #3c0a0e 100%);
  clip-path: ellipse(120% 100% at 50% 0%);
}
.titulo-quienes-somos{ color: #fff; font-size: 46px; }
.about-photo img{
  width: 500px; height: auto; object-fit: cover; border: 2px solid #FFD43B;
}
.about-logo{ max-width: 400px; height: auto; }
.about-text{ color: #fff; margin: 0; }
/* Responsive tweaks */
@media (max-width: 991.98px){
  .about-hero{ padding-block: 36px; }
  .about-panel::after{ width: 90%; bottom: -22px; height: 44px; }
  .about-logo{ width: 56%; max-width: 180px; }
}
/*PARTE - 2*/
#quienes-somos-2{ background: #fff; }
.qs-card{
  background:#fff; border:2px solid #E0782B; border-radius:5px;
  padding:28px 22px; box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.qs-card:hover{
  transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.10); border-color:#ff8c2a;
}
.qs-icon{ width:100px; height:auto; display:block; margin:10px auto 8px; }
.qs-title{
  font-family: 'Bebas Neue', sans-serif; letter-spacing:.5px; font-size:26px; color:#000; padding: 5px;
}
.qs-text{ max-width:36ch; margin:1px auto 0; color:#111; line-height:1.6; font-size:14px; }
@media (max-width: 991.98px){
  .qs-icon{ width:64px; }
  .qs-title{ font-size:22px; }
  .qs-text{ font-size:0.95rem; }
}
/*SECCION 5 - QUIENES SOMOS*/
/*SECCION 6 - GALERÍA */
#galeria { background:#000; color:#fff; padding-block:60px; }
.galeria-title{
  font-family:'Bebas Neue', sans-serif; text-align:center; font-size: 40px; letter-spacing:.5px; margin-bottom:20px;
}
#main-carousel{ max-width:500px; height: 500px; margin-inline:auto; }
#main-carousel .splide__slide{ aspect-ratio: 1 / 1; }
#main-carousel .splide__slide img{
  width:100%; height:100%; object-fit:cover; display:block; border-radius:4px;
}
/* Flechas blancas */
#main-carousel .splide__arrow{
  background:transparent; border:0; box-shadow:none; width:56px; height:56px; opacity:1;
}
#main-carousel .splide__arrow svg{ width:24px; height:24px; fill:#fff; }
@media (min-width: 992px){
  #main-carousel .splide__arrow--prev{ left:-48px; }
  #main-carousel .splide__arrow--next{ right:-48px; }
}
/* Thumbnails*/
.thumbnails{
  display:flex; margin: 1rem auto 0; padding:0; justify-content:center; gap:.5rem;
}
.thumbnail{
  width:80px; height:80px; list-style:none; overflow:hidden; cursor:pointer;
  border-radius:8px; outline:2px solid transparent;
  opacity:.45; transition:opacity .2s ease, transform .15s ease, outline-color .2s ease;
}
.thumbnail img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumbnail.is-active{
  opacity:1; transform:translateY(-2px);
  outline-color:#FFD43B; box-shadow:0 8px 22px rgba(0,0,0,.35);
}
@media (max-width: 576px){
  .thumbnail{ width:64px; height:64px; }
}
/*SECCION 6 - GALERÍA */
/*FOOTER*/
.footer { background-color: #5b0f16; color: #fff; padding-top: 40px; }
.footer-logo { max-width: 180px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.footer-nav { flex-wrap: wrap; gap: 10px 16px; }
.footer-nav .footer-link{
  font-family: 'Bebas Neue', sans-serif; font-size: 18px; text-transform: uppercase; color: #fff;
  position: relative; transition: color .2s ease; white-space: nowrap; display: inline-block; padding: 4px 2px;
}
.footer-nav .footer-link:hover{ color: #FFD43B; }
.footer-nav .footer-link::after{
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0%; height: 2px; background-color: #FFD43B; transition: width .25s ease;
}
.footer-nav .footer-link:hover::after { width: 100%; }
.contact-footer{ color: #ffffff; font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: .3px; }
.footer-social-link { font-size: 32px; color: #fff; transition: color .2s ease, transform .15s ease; }
.footer-social-link:hover { color: #FFD43B; transform: translateY(-2px); }
.footer-bottom { background-color: #3c0a0e; color: #fff; font-size: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom .brand { color: #FFD43B; font-weight: 700; letter-spacing: .3px; }
@media (max-width: 991.98px){ .footer { padding-top: 32px; } }
@media (max-width: 575.98px){
  .footer-nav { flex-direction: column; align-items: center; gap: 8px; }
}
/*CONTACTO*/
.contacto-section{ background: linear-gradient(180deg, #000 0%, #3c0a0e 100%); color: #fff; }
.contact-card{
  background: #111; border: 2px solid #E0782B; border-radius: 8px; padding: 32px; box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.contact-title{ font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: .5px; }
.contact-subtitle{ color: #e6e6e6; margin: 0; }
.contact-control{
  background: #0b0b0b; border: 1.5px solid rgba(255,255,255,.18); color: #fff; border-radius: 6px;
}
.contact-control::placeholder{ color: rgba(255,255,255,.55); }
.contact-control:focus{
  border-color: #FFD43B; box-shadow: 0 0 0 0.2rem rgba(255, 212, 59, .2);
  background: #0b0b0b; color: #fff;
}
@media (max-width: 991.98px){
  .contact-card{ padding: 24px; }
  .contact-title{ font-size: 28px; }
}

/* —— FIX FLIP 3D iOS / Safari —— */
.service-card{
  perspective: 1200px;
  -webkit-perspective: 1200px;
  position: relative;
}
.service-inner{
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .6s ease;
  will-change: transform;
}
.service-card::after{ z-index: 0; }
.service-face{
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateY(0deg) translateZ(0);
}
.service-front{ transform: rotateY(0deg) translateZ(1px); }
.service-back{
  transform: rotateY(180deg) translateZ(1px);
  background: rgba(0,0,0,.60); color:#fff; border-radius: 5px;
}
.service-card.is-flipped .service-inner{ transform: rotateY(180deg); }
.service-face *{ backface-visibility: hidden; -webkit-backface-visibility: hidden; }
