/* ====================== GLOBAL ====================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-color: #000;
}

/* ===== SECCIONES ===== */
section {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    background-size: contain;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-wrap: wrap;
    z-index: 1;
    overflow: hidden;
}

/* ===== IMAGEN FLOTANTE ===== */
.imagen-flotante {
    position: fixed;
    top: 0;
    left: 0;
    margin: 250px auto 0 200px;
    width: 35%;
    height: auto;
    object-fit: contain;
    z-index: -1;
    background-size: contain;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== VIDEO DE FONDO ===== */
.video-fondo {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(5px) brightness(0.6);
    pointer-events: none;
}

/* ===== CONTENEDORES PRINCIPALES ===== */
.leftbox, .events {
    max-width: 1000px;
    text-align: center;
    font-size: 18px;
    box-sizing: border-box;
    padding: 10px;
}

.leftbox {
    flex: 1 1 50%;
    color: white;
}

.leftbox .content {
    background: rgba(0, 0, 0, 0.645);
    padding: 40px;
    transition: 0.5s;
}

.leftbox p {
    margin-top: 0;
}

.leftbox h1 {
    font-size: 38px;
}

#event:hover {
    background-size: cover;
    background-image: url("img/leftbox.jpg");
}

.events {
    flex: 1 1 45%;
    background: rgba(0, 0, 0, 0.816);
    opacity: 0.9;
}

.events ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events ul li {
    display: flex;
    margin: 50px 0;
    background: #ffffffe4;
    flex-wrap: wrap;
}

.time {
    width: 40%;
    min-width: 100px;
    height: 276px;
    background: #262626;
    color: #fbf5f5e8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 1s;
}

.time h2 {
    font-size: 70px;
    text-align: center;
}

.time h2 span {
    display: block;
    font-size: 50px;
}

.details {
    margin-top: 10px;
    width: 60%;
    padding: 2px;
    box-sizing: border-box;
}

.details h2 {
    font-size: 32px;
}

.details p {
    text-align: center;
    margin-top: 5px;
}

.details button {
    flex-wrap: wrap;
    align-items: center;
    background: rgba(0, 0, 0, 0.318);
    padding: 10px 22px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    border: none;
    outline: none;
    box-shadow: 0px 16px 32px 0px rgb(0 0 0 / 6%);
    cursor: pointer;
    transition: 0.3s;
}

.details button:hover {
    background-color: #98060686;
    color: white;
    transform: scale(1.05);
}

/* Hover backgrounds específicos */
#img1:hover { background-image: url("img/eventos - no back.png"); background-size: contain;}
#img2:hover { background-image: url("img/Iglesia Real.jpg"); background-size: contain; }

/* ====================== MENÚ ====================== */

/* ===== BARRA DE NAVEGACIÓN PC ===== */
.desktop-nav {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.desktop-nav .container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* logo pegado a la izquierda */
    gap: 3vw;
    width: 100%;
    flex-wrap: wrap;
}

.desktop-nav .logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: transform .3s;
}

.desktop-nav .logo:hover {
    transform: scale(1.05);
}

.desktop-nav .navbar-nav {
    display: flex;
    gap: 2vw;
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-anim {
    font-weight: 500;
    position: relative;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.nav-anim::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff9800;
    bottom: -5px;
    left: 0;
    transition: .3s;
}

.nav-anim:hover::after,
.nav-anim.active::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg,#ff9800,#ff5722);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1rem;
}

/* ===== BARRA DE NAVEGACIÓN MÓVIL ===== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 2%;
    z-index: 999;
    box-sizing: border-box;
    padding-left: 0;
  padding-right: 30px; /* solo margen derecho si quieres */
}

.mobile-nav a {
    color: #aaa;
    text-align: center;
    font-size: 0.75rem;
    text-decoration: none;
    position: relative;
    transition: transform .2s, color .2s;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.mobile-nav i {
    font-size: 1.3rem;
    display: block;
}

.mobile-nav a.active,
.mobile-nav a:hover {
    color: #ff9800;
}

.mobile-nav a:active {
    transform: scale(0.9);
}

.mobile-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ff9800;
    border-radius: 10px;
}

.mobile-nav .logo {
    height: 40px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
}

.mobile-nav .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================== MEDIA QUERIES ====================== */
@media(max-width: 1200px){
    .desktop-nav {
        padding: 0 5%;
    }

    .desktop-nav .navbar-nav {
        gap: 1.5vw;
    }
}

@media(max-width: 992px){
    .desktop-nav .container {
        justify-content: space-between;
    }
}

@media(max-width: 768px){
    .desktop-nav .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media(max-width: 576px){
    .desktop-nav {
        height: auto;
        padding: 10px 5%;
    }

    .desktop-nav .navbar-nav {
        flex-direction: column;
        gap: 8px;
    }
}

/* Responsive Secciones */
@media (max-width: 1200px) {
    .leftbox, .events {
        margin: 0 auto;
        flex: 1 1 100%;
        padding: 30px 10px;
    }
  
    .events ul li {
        flex-direction: column;
    }
  
    .time, .details {
        width: 100%;
        height: auto;
    }
  
    .time {
        justify-content: center;
        padding: 20px 0;
    }
  
    .details {
        padding: 10px;
    }
  
    .imagen-flotante {
        position: fixed;
        width: 100%;
        margin: 67px auto;
        display: block;
    }
}





@import url(http://fonts.googleapis.com/css?family=Dosis:400,200,300,500,600,700,800);
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300,200,700);

/*************************
*******Explore CSS******
**************************/

#explore {
  background-color: #c34b3900;
  background-image: url("../img/contador.jpg");
  background-position: center bottom;
  background-size: cover;
  background-repeat:no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  padding: 1px 1px 1px;
  margin-top: 80px;
  margin-bottom: 20px;
}


#explore h2 {
  color: white;
  font-size: 40px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 20px;
}




#countdown {
  display: block;
  overflow: hidden;
  text-align: center;
  padding: 50px 0px -1px 0px;
  color: white;
}

#countdown li {
  list-style: none;
  display: inline-block;
  margin-right: 80px;
  text-align: center;
  text-transform: uppercase;
  font-size: 17px;
  position: relative;
}

#countdown li:last-child {
  margin-right: 0
}

#countdown li span {
  display: block;
  font-size: 48px;
  font-weight: 700;
  height: 70px;
  line-height: 62px;
  width: 75px;
  border-radius: 10px;
  border-right: 1px solid #9e3e2e;
  border-bottom: 1px solid #9e3e2e;
}

#countdown li .days {
  background-color: #222222;
  border-top: 1px solid #444444;
  border-left: 1px solid #444444;
}

#countdown li .hours {
  background-color: #333333; 
  border-top: 1px solid #555555;
  border-left: 1px solid #555555;
}

#countdown li .minutes {
  background-color: #444444;
  border-top: 1px solid #666666;
  border-left: 1px solid #666666;
}

#countdown li .seconds {
  background-color: #555555;
  border-top: 1px solid #777777;
  border-left: 1px solid #777777;
}

#countdown li:before {
  background-color: #FFFFFF;
  content: "";
  height: 11px;
  left: 0;
  position: absolute;
  top: 36px;
  width: 1px;
}

#countdown li:after {
  background-color: #FFFFFF;
  content: "";
  height: 11px;
  right:0;
  position: absolute;
  top: 36px;
  width: 1px;
}

/* lg */ 
@media (min-width: 1200px) {
  
}
/* xs */
@media (max-width: 767px) {

  #explore {
    background-size:cover;
  }

  #explore h2 {
    float: inherit;
    font-size: 30px;
    margin-bottom: 30px;
  }  

  #countdown li {
    font-size: 14px;
    margin-right:35px;
    width:inherit;
  }

  #countdown li span {
    font-size: 54px;
    height: 60px;
    line-height: 60px;
    width: 60px;
  }

  #countdown li:before, 
  #countdown li:after {
    top:25px;
  }



  /* Explore */
  #explore {
    background-size:cover;
    margin-top: 10px;
  }

  #explore h2 {
    float: inherit;
    font-size: 30px;
    margin-top: 10px;
    margin-bottom: 3px;
  }  

  #countdown li {
    text-align: center;
    font-size: 15px;
    margin-right: 33px;
    width: 45px;
  }

  #countdown li span {
    align-items: center;
    font-size: 30px;
    height: 45px;
    line-height: 40px;
    width: 53px;
  }

  #countdown li:before, 
  #countdown li:after {
    top: 18px
  }





