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

/* Body y fuente Lato */
body {
  font-family: 'Lato', sans-serif;
  background-color: #000;
  color: white;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Fuentes */
h1 {
  font-size: 1.5em;
  font-weight: 300;
}
h2 {
  font-size: 1.2em;
  font-weight: 300;
}

h3 {
  font-size: 0.8em;
  font-weight: 400;
}
p {
  font-size: 0.8em;
  font-weight: 400;
}
ul {
  list-style: none;
}

a {
  font-size: 0.8em;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.1s ease;
}

.hrbotones {
  max-width: 220px;
  height: 1px;             
  background-color: white; 
  margin: auto; 
  border: none;
}

#metabarroco .hrbotones {
  background-color: black;
}

/* FONDOS */
.imagen-fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5); 
  transition: transform 1s ease;
}

.activa .imagen-fondo .fondo {
  transform: scale(1); 
}
.overlay-hero, .overlay-trayectoria {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.overlay-hero {
background: radial-gradient(circle, 
    rgba(0, 0, 0, 0.2) 0%,     
    rgba(0, 0, 0, 0.6) 70%,    
    rgba(0, 0, 0, 0.85) 100%   
  );
}

.slideshow-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slidefade {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: -1;
  animation: fade 10s infinite;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.slidefade:nth-child(1) { animation-delay: 0s; }
.slidefade:nth-child(2) { animation-delay: 2s; }
.slidefade:nth-child(3) { animation-delay: 4s; }
.slidefade:nth-child(4) { animation-delay: 6s; }
.slidefade:nth-child(5) { animation-delay: 8s; }

@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* Elementos animados */
.slide {
  opacity: 0;
  transform: translateY(-25px);
  transition: opacity 1s ease-out, transform 0.5s ease-out;
}

.slide.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom {
  transform: scale(0.7);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

.zoom.visible {
  transform: scale(1);
  opacity: 1;
}

/* Header */
header {
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: black;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  visibility: hidden; 
}

header.scrolled {
  opacity: 1;
  visibility: visible; 
}

header.visible {
  opacity: 1;
  visibility: visible;
}

header .container {
  width: 75%;
  height: 80px;
  margin: auto;
  padding: 10px;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;

}

.logo {
  height: 50px;
  width: auto;
}

.logo img {
  height: 50px;
  width: auto;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 20px;
}

.desktop-nav a {
  color: white;
}

.desktop-nav a:hover,
.desktop-nav a.activo {
  color: #6999a3;
}

/* Hamburguesa */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  margin-left: auto;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: white;
  transition: all 0.3s ease;
}

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}

.mobile-nav {
  display: flex;
  background-color: black;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 75%;
  height: 350px; /* Cambiado de 400px a auto */
  margin: 0 auto; /* Cambiado para centrar verticalmente */
  position: relative;
  top: -50px; /* Ajusta este valor según necesites */
}


.mobile-nav hr {
  width: 80%;
  height: 1px;             
  background-color: white; 
  margin: auto; 
  border: none;
}

.mobile-nav a {
  padding: 10px 10px;
  color: white;
}

.mobile-nav a:hover,
.mobile-nav a.activo {
  color: #6999a3;
}

.menu-toggle:checked ~ .mobile-menu {
  display: flex;
  opacity: 1;
}

.menu-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: white;
}

.menu-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background-color: white;
}

.menu-toggle:checked ~ .mobile-menu {
  overflow: hidden;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
    padding-right: 20px;
  }

  .logo {
    padding-left: 20px;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* HERO */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  display: flex;
}

#hero video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.container-hero {
  max-width: 100%;
  height: auto;
  margin: 0;
  z-index: 1;
}

.logo-hero {
  width: 220px;
  height: auto;
  margin: auto;
  padding-bottom: 40px;
}

.logo-hero img {
  width: 100%;
  height: auto;
}

.botoneshero {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

#hero a {
  width: 250px;
  text-align: center;
  color: white;
  margin: auto;
}

#hero a:hover,
#hero a.activo {
  color: #85abb4ff;
}

.zonacero {
  width: 250px;
  position: relative;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

#hero i {
  margin-left: 5px;
}

/* PORTAFOLIO */
#portafolio {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
} 

.container-portafolio {
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
}

#portafolio h1 {
  text-align: center;
  margin-bottom: 10px;
}

.botonesportafolio {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 20px 0 20px 0;
}

#portafolio a {
  color: white;
}

#portafolio a:hover {
  color: #85abb4ff;
}


/* TRAYECTORIA */
#trayectoria {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
} 

.container-trayectoria {
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
}

#trayectoria h1 {
  text-align: center;
  margin-bottom: 10px;
}

#trayectoria h2 {
  text-align: center;
  color: #6999a3;
  margin-bottom: 20px;
}

.botonestrayectoria {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 20px 0 20px 0;
}

#trayectoria a {
  color: white;
}

#trayectoria a:hover {
  color: #85abb4ff;
}

#trayectoria a i {
  margin-left: 5px;
}

/* METABARROCO */
#metabarroco {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
} 

.container-metabarroco {
  max-width: 100%;
  height: auto;
  margin: 250px auto 100px auto;
  z-index: 1;
}

#metabarroco h1 {
  text-align: center;
  margin-bottom: 10px;
  color: black;
}

.metabarroco-texto {
  width: 75%;
  margin: auto;
  padding: 20px 0;
}

.metabarroco-texto p {
  font-size: 0.9em;
  color: black;
  text-align: justify;
  line-height: 1.2em;
  margin: 10px 0;
}

.botonesmetabarroco {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 20px auto 10px auto;
}

#metabarroco a {
  width: 100%;
  text-align: center;
  color: black;
}

#metabarroco a:hover {
  color: white;
}

.acordeon-container {
  width: 220px;
  margin: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.acordeon-titulo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: black;
}

.acordeon-titulo i {
  margin-left: 5px;
  transition: transform 0.3s ease;
  display: inline-block;
  vertical-align: middle;
  transform-origin: center;
}

.acordeon-titulo:hover,
.acordeon-titulo.activo {
  color: white;
}

.acordeon-titulo.activo i {
  transform: rotate(180deg);
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

.acordeon-contenido a {
  margin-bottom: 10px;
}

.acordeon-contenido.abierto {
  max-height: 500px;
}

@media (max-width: 768px) {
  #metabarroco {
    height: 110vh;
  }
  .container-metabarroco {
    margin: 150px auto 100px auto;
  }

  .metabarroco-texto {
    width: 80%;
  }

  .metabarroco-texto p {
    font-size: 0.8em;
  }
}

/* CONTACTO */
#contacto {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
} 

.container-contacto {
  position: relative;
  width: 50%;
  height: auto;
  margin: auto;
  z-index: 1;
  align-items: center;
}

#contacto h1 {
  text-align: center;
  margin-bottom: 5px;
}

#formulario-contacto .aviso {
  width: 100%;
  height: 20px;
  margin-top: 10px;
}

#estado-envio {
  font-size: 0.8em;
  color: #6999a3;
  text-align: center;
}

#contacto hr {
  width: 100%;
  height: 1px;             
  background-color: white; 
  margin: 20px auto 10px auto; 
  border: none;
}

#formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 62%;
  margin: 0 auto;
}

#formulario-contacto input,
#formulario-contacto textarea {
  background-color: transparent;
  border-bottom: 1px transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  color: white;
  padding: 10px;
  font-size: 0.8em;
  outline: none;
  transition: border-color 0.1s;
}

#formulario-contacto input::placeholder,
#formulario-contacto textarea::placeholder {
  color: white;
}

#formulario-contacto input:focus,
#formulario-contacto textarea:focus {
 border-bottom: 1px solid white;
}

#formulario-contacto a#enviar-formulario {
  display: inline-block;
  color: white;
  text-decoration: none;
  text-align: center;
  width: 100px;
  margin-left: auto;
  margin-right: auto;
}

#formulario-contacto a#enviar-formulario i {
margin-left: 5px;
}

#formulario-contacto a#enviar-formulario:hover {
  color: #6999a3;
}

@media (max-width: 768px) {
  .container-contacto {
    min-width: 90%;
  }
  #formulario-contacto {
    width: 100%;
  }
}

/* Mensaje formulario */
.overlay-mensaje {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease;
}

.contenido-mensaje {
   display: flex;
  position: relative;
  flex-direction: column;
  max-width: 75%;
  height: auto;
  margin: 100px auto 0 auto;
  padding: 30px 10px 10px 10px;
  overflow-y: auto;
  animation: aparecer 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  background-color: #6999a3;
  justify-content: center;  
  scrollbar-width: none; /* Para Firefox */
  -ms-overflow-style: none; /* Para IE y Edge */
}

.contenido-mensaje::-webkit-scrollbar {
  display: none; /* Para Chrome, Safari y Opera */
}

.contenido-mensaje h3 {
  text-align: center;
  color: black;
  margin-bottom: 10px;
}

.boton-cerrarmensaje {
  position: absolute;
  top: 4px;
  right: 8px;
  background: transparent;
  border: none;
  color: black;
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.1s ease;
}

.boton-cerrarmensaje:hover {
  color: white;
}



/* FOOTER */
.footer {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center; 
  align-items: flex-start; 
  flex-direction: column;
  padding: 40px;
  color: #6999a3;
}

.container-footer {
  position: relative;
  display: flex;
  justify-content: center;
  width: 75%;
  height: auto;
  flex-direction: row;
  gap: 100px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px 0 30px 0;

}

.footer-col {
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-col p {
  margin-bottom: 10px;
  color: #6999a3;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col ul li i {
  min-width: 18px;
}

.footer-col ul .direccion {
  align-items: flex-start;
}
.footer-col ul .direccion i {
  padding-top: 3px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #6999a3;
}

.footer-col ul li a:hover {
  color: white;
}

.copy {
  position: relative;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  padding:0 0 50px 0;
}

.copy p {
 text-align: center;
 color: #6999a3;
}

@media (max-width: 768px) {
  .container-footer {
    flex-direction: column;
    gap: 30px;
  }
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.activo {
  display: flex;
  opacity: 1;
}

.modal-contenido {
  position: relative;
  max-width: 75%;
  max-height: 80vh;
  background-color: black;
  padding: 40px;
  overflow-y: auto;
  animation: aparecer 0.3s ease;
  scrollbar-width: none; /* Para Firefox */
  -ms-overflow-style: none; /* Para IE y Edge */
}

.modal-contenido::-webkit-scrollbar {
  display: none; /* Para Chrome, Safari y Opera */
}

.modal-contenido h3 {
  margin-bottom: 20px;
  color: #6999a3;
}

.modal-contenido p {
  text-align: justify;
  margin-bottom: 10px;
}

.modal-contenido p a {
  font-size: 0.8rem;
}

.modal-contenido i {
  margin-left: 5px;
}

.modal-contenido ul {
  margin: 20px 0;
}

.modal-contenido li {
  font-size: 0.8em;
  font-weight: 500;
  margin-bottom: 10px;

}

.modal-contenido a {
  color: white;
}

.modal-contenido a:hover {
  color: #6999a3;
}

.hrcontenido {
  width: 100%;
  height: 1px;             
  background-color: white; 
  margin: 20px auto; 
  border: none;
}

.contenedor-listas {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  align-items: flex-start;
  justify-content: center;
  flex-direction: row;
  gap: 50px;
}

.lista {
  width: 50%;
}

@keyframes aparecer {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cerrar-modal {
  position: absolute;
  top: 25px;
  right: 40px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.1s ease;
}

.cerrar-modal:hover {
  color: #6999a3;
}


.modal-interno {
  display: none;
}

.modal-interno.activo {
  display: block;
}

@media (max-width: 768px) {
  .modal-contenido {
    min-width: 90%;
    padding: 10px;
  }
  .cerrar-modal {
    font-size: 1.2em;
    top: 5px;
    right: 8px;
  }
  .contenedor-listas {
    flex-direction: column;
  }
  .lista {
    width: 100%;
  }
}

/* MODAL VIDEO */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
}

.video-modal-content iframe {
  width: 100%;
  height: 450px;
}

.close-video-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 10px;
  background-color: black;
}

.close-video-modal:hover {
  color: #6999a3;
}

@media (max-width: 768px) {
  .video-modal-content iframe {
    height: 250px;
  }
}


/* === Banner de Cookies === */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: black;
  padding: 15px;
  text-align: center;
  z-index: 1000;
}

.cookie-message {
  margin: 0;
}

.cookie-link {
  color: white;
  font-size: 0.8rem;
  border: 1px solid white;
  padding: 4px 10px;
  margin-left: 10px;
}

.cookie-link:hover {
  color: #6999a3;
  border: 1px solid #6999a3;
}

.cookie-btn {
  width: 100px;
  border: 1px solid white;
  padding: 5px 10px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 1em;
}

.accept-btn, .reject-btn {
  background: black;
  color: white;
}

.cookie-btn:hover {
  border: 1px solid #6999a3;
  color: #6999a3;
}

@media (max-width: 768px) {
  .cookie-message {
    display: flex;
    flex-direction: column;
    gap: 12px; 
  }

  .cookie-link {
    margin-left: 0;
  }

  .cookie-btn {
    width: 100%; 
    margin-left: 0; 
  }

  .cookie-link {
    display: block;
    margin-bottom: 8px; 
  }
}