@charset "UTF-8";
/* CSS Document */
/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --gold: #caa24d;
}
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: #0e0e0e;
  color: #eaeaea;
  line-height: 1.85;
}
header {
  height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;

  /* anulamos o flex anterior */
  display: block;
}
header h1 {
  position: absolute;
  top: 12%;                /* sobe o título */
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  letter-spacing: 4px;
  color: #ffffff;          /* proba cambiar isto */
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

header.hero {
  height: 100vh;
  background-image: url("images/img1.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
}
header.hero h1 {
  position: absolute;
  top: 10%;                 /* cambia isto */
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

section {
  max-width: 1100px;
  margin: auto;
  padding: 6rem 2rem;
}

h2 {
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

p {
  text-align: justify;
  max-width: 900px;
}

/* Header */
header {
  height: 100vh;
  background: center / cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header h1 {
  font-size: 4rem;
  letter-spacing: 4px;
}

/* Navegación */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  text-align: center;
  z-index: 10;
}

nav a {
  color: #eaeaea;
  margin: 0 1rem;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: 2px;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery img {
  width: 100%;
  filter: grayscale(100%);
  transition: .6s;
}

.gallery img:hover {
  filter: none;
}

/* Idiomas */
[data-lang] {
  display: none;
}

[data-lang].active {
  display: block;
}
.lang-switch{position:fixed;right:20px;bottom:20px}
.lang-switch button{background:#111;color:#eee;border:1px solid #444;padding:.4rem .6rem;margin:.2rem;cursor:pointer}
.lang-switch .active{background:var(--gold);color:#000}
/* Vídeos */
.video-card {
  display: block;
  text-decoration: none;
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: rgba(0,0,0,.35);
}

.video-thumb:hover .play {
  background: rgba(0,0,0,.55);
}
.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.lazy-video {
  position: relative;
  cursor: pointer;
}

.lazy-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lazy-video .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: rgba(0,0,0,0.35);
}


/* Audio */
audio {
  width: 100%;
  margin: 1rem 0;
}

/* Animación */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.fade.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    height: 65vh;
    background-attachment: scroll;
  }

  header h1 {
    font-size: 2rem;
  }
}

/* === CONTACTO === */

.contact {
  padding: 100px 20px;
}

.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Texto */

.contact-text h2 {
  margin-bottom: 16px;
}

.contact-text p {
  max-width: 420px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Formulario */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 8px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Placeholder */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

/* Focus elegante */

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #caa24d; /* dourado */
  background: rgba(255,255,255,0.03);
}

/* Botón */

.contact-form button {
  align-self: flex-start;
  margin-top: 10px;
  padding: 12px 28px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #caa24d;
  color: #000;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* Mensaxe de éxito */

.form-success {
  display: none;
  margin-top: 16px;
  font-size: 0.95rem;
  color: #caa24d;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* evita zoom en iOS */
  }
}
.lang-switch button.active {
  background: var(--gold);
  color: #000;
}
.site-footer {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  opacity: 0.85;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
  display: inline-block;
}

