/* 1. FUENTES */
@font-face {
  font-family: 'Avenir Light';
  src: url('fonts/Avenir Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Allrounder Monument';
  src: url('fonts/AllrounderMonumentTest-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* 2. BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Avenir Light', sans-serif;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* 3. HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    transition: 0.4s;
}

header.scrolled { background-color: rgba(0,0,0,0.9); padding: 10px 5%; }

.logo { display: flex; align-items: center; gap: 10px; color: white; font-family: 'Allrounder Monument', serif; }
.logo-img { height: 40px; width: auto; object-fit: contain; }

nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a { text-decoration: none; color: white; font-size: 0.85rem; font-family: 'Allrounder Monument', serif; transition: 0.3s; }
nav ul li a:hover { color: #c59d5f; }

/* 4. SECCIONES Y TÍTULOS */
.seccion {
  padding: 80px 5%;
}

.seccion.gris {
  background-color: #f9f9f9;
}

/* Formato para títulos de cada sección con pleca inferior */
.seccion h2 {
  font-family: 'Allrounder Monument', serif;
  text-align: center;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: 40px;
  position: relative;
  display: block;
}

.seccion h2::after {
  content: '';
  display: block;
  width: 60px; /* Ancho de la pleca */
  height: 1px;  /* Pleca fina y delgada */
  background-color: #333; /* Color de la pleca acorde al texto */
  margin: 15px auto 0 auto; /* Centrado automático */
}

#home {
    scroll-margin-top: 70px;
}

.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url("Imagenes/imagenhome.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
img { width: 100%; display: block; }

/* 6. INTERACCIÓN GALERÍA */
.item { position: relative; overflow: hidden; cursor: pointer; }
.item img { transition: 0.5s; }
.item:hover img { transform: scale(1.05); }
.overlay-text { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.6); color: white; padding: 10px; opacity: 0; transition: 0.3s; font-family: 'Allrounder Monument', serif; }
.item:hover .overlay-text { opacity: 1; }

/* 7. VIDEO RESPONSIVO */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* 8. FAQ */
.faq-item { max-width: 850px; margin: 0 auto; text-align: left; }
.faq-question { 
    width: 100%; 
    background: #222; 
    color: white; 
    border: none; 
    padding: 20px; 
    font-size: 1.1rem; 
    text-align: left; 
    cursor: pointer; 
    font-family: 'Allrounder Monument', serif; 
    margin-top: 10px; 
    transition: color 0.3s;
}
.faq-question:hover {
    color: #c59d5f;
}
.faq-answer { display: none; padding: 20px; background: #fff; border: 1px solid #eee; }

/* 9. FORMULARIO Y REDES */
.formulario { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 15px; }
.formulario input, .formulario textarea { width: 100%; padding: 15px; border: 1px solid #ccc; font-size: 1rem; }
.btn-enviar { background: #000; color: #fff; padding: 18px; border: none; font-family: 'Allrounder Monument', serif; cursor: pointer; transition: 0.3s; }
.btn-enviar:hover { background: #c59d5f; }
.redes-container { display: flex; justify-content: center; gap: 25px; margin-top: 30px; }
.redes-container a { color: #000 !important; text-decoration: none; font-family: 'Allrounder Monument', serif; }

/* 10. RESPONSIVE (MENÚ HAMBURGUESA) */
.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: rgba(0,0,0,0.95); }
    nav.active { display: block; }
    nav ul { flex-direction: column; padding: 20px 0; gap: 0; }
    nav ul li { text-align: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .grid-3, .dos-columnas { grid-template-columns: 1fr; }
    .seccion { padding: 60px 5%; }
}

/* FOOTER */
footer { background: black; color: white; text-align: center; padding: 30px 0; font-family: 'Allrounder Monument', serif; }

/* MODAL */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 2000; padding: 50px; overflow-y: auto; }
.modal-contenido { display: flex; flex-direction: column; gap: 20px; align-items: center; max-width: 900px; margin: auto; }
.modal .cerrar { position: fixed; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; z-index: 2100; }

/* ANIMACIONES */
.fade-in { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

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

.formulario textarea{
  min-height:180px;
  resize:vertical;
}

.redes-container{
  flex-wrap:wrap;
}

@media (max-width:480px){
  .logo-img{max-width:150px;}
  .seccion{padding:50px 4%;}
  .seccion h2{font-size:1.5rem;}
  .redes-container{
    flex-direction:column;
    align-items:center;
  }
  .modal{
    padding:15px;
  }
}