/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* GENERAL */

body {
  font-family: Arial, sans-serif;
  background: #c4bbb1;
}


/* =========================
   MENÚ SUPERIOR
========================= */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid #8f8270;
  display: flex;
  justify-content: center;
  z-index: 10;
}


.menu {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 60px;
}


.menu a {
  text-decoration: none;
  color: #8f8270;
  font-size: 12px;
  letter-spacing: 5px;
  transition: 0.3s;
}


.menu a:hover {
  color: #eae7e0;
}


/* IDIOMAS */

.idioma {
  position: absolute;
  right: 30px;
  top: 20px;

  display: flex;
  gap: 8px;
  align-items: center;

  font-size: 12px;
  letter-spacing: 4px;
}


.idioma a {
  text-decoration: none;
  color: #8f8270;
  transition: 0.3s;
}


.idioma span {
  color: #8f8270;
}


.idioma a:hover {
  color: #eae7e0;
}


/* =========================
   COOKIES POPUP (MODAL)
========================= */

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);

  display: flex;

  justify-content: center;
  align-items: center;

  z-index: 999999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.cookie-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: #eae7e0;
  padding: 25px;
  border-radius: 12px;

  width: 90%;
  max-width: 420px;

  text-align: left;
  
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.cookie-modal h2 {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: 1px;
}

.cookie-modal p {
  font-size: 13px;
  line-height: 1.5;
}

.cookie-modal a {
  color: #8f8270;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-start;
}

.cookie-buttons button {
  width: auto;
}

.btn-primary,
.btn-secondary {
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  border: none;
}

.btn-primary {
  background: #8f8270;
  color: #eae7e0;
}

.btn-primary:hover {
  background: #c4bbb1;
}

.btn-secondary {
  background: transparent;
  color: #8f8270;
  border: 1px solid #8f8270;
}

.btn-secondary:hover {
  background: #8f8270;
  color: #eae7e0;
}

/* MOBILE */
@media (max-width: 768px) {
  .cookie-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}


/* =========================
   HOME
========================= */

.home .menu a,
.home .idioma a,
.home .idioma span {
  color: #000;
}

.home .menu a:hover,
.home .idioma a:hover {
  color: #eae7e0;
}

.fondo {
  width: 100%;
  height: 100vh;
  background-image: url('../images/desktop.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #c4bbb1;
}


/* HOME INGLES */

.en .fondo {
  background-image: url('../en/images/desktop_en.jpg');
}


@media (max-width: 768px) {

  .en .fondo {
    background-image: url('../en/images/mobile_en.jpg');
  }

}

/* =========================
   ENLACES
========================= */

.link {
    color: #8f8270;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover,
.link:focus {
    color: #c4bbb1;
}

/* =========================
   CONTACTO
========================= */


.contact-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
}


.contact-form {
  background: #eae7e0;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px #8f8270;
}


.logo-contacto {
  display: block;
  margin: 0 auto 30px auto;
  width: 150px;
  height: auto;
}


.contact-form input,
.contact-form textarea {

  width: 100%;
  padding: 12px;
  margin-bottom: 15px;

  border: 1px solid #c4bbb1;
  border-radius: 6px;

  font-size: 14px;
  color: #8f8270;

  background: #eae7e0;
}


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


.contact-form button:not(.btn-primary):not(.btn-secondary) {

  width: 100%;
  padding: 12px;

  background: #8f8270;
  color: #eae7e0;

  border: none;
  border-radius: 6px;

  font-size: 16px;
  cursor: pointer;
}

.contact-form button:not(.btn-primary):not(.btn-secondary):hover {
  background: #c4bbb1;
}

.contact-form button:hover {
  background: #c4bbb1;
}


/* PRIVACIDAD */

.privacidad-check {

  font-size: 11px;
  color: #8f8270;
  margin-top:20px;
  margin-bottom: 15px;
  line-height: 1.4;
}


.privacidad-check input {

  width: auto;
  margin-right: 6px;

  accent-color: #8f8270;
}


.privacidad-check a {

  color: #8f8270;
  text-decoration: underline;
}


.obligatorio {

  font-size: 11px;
  color: #8f8270;

  margin-bottom: 20px;
  margin-top: -25px;
  margin-left: 20px;

  line-height: 1.4;
}


/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 10px;
  color:#8f8270;

}

.footer p {
  text-align: center;
  margin: 0 0 12px;
}

.footer-links {
  justify-content: center;
  align-items: center;

  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* En móviles pasarán a otra línea si hace falta */
}

.footer-links a {
    color: #8f8270;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #8f8270;
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */


@media (max-width: 768px) {
  .fondo {
    background-image: url('../images/mobile.jpg');
  }
  .menu {
    left: 20px;
    transform: none;
  }
}