/* ==========================
   global.css
========================== */

/* --- Variables globales --- */
:root {
  --color-primary: #1e1e1e;
  --color-secondary: #585858;
  --color-accent: #6c6c6c;
  --color-background: #f4f4f4;
  --color-on-dark: #e8e8e8;

  --font-heading: 'Georgia', serif;
  --font-body: 'Inter', sans-serif;

  --border-radius-base: 8px;
  --box-shadow-subtle: 0 4px 10px rgba(0, 0, 0, 0.1);
  --container-width: 1200px;
}

/* --- Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-primary);
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Tipografía --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5em;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: #dbbba6;
}

/* --- Header y navegación --- */
.site-header {
  background-color: #ebe7e7;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 !important;
  margin: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px; /* 🔹 un poco más alto */
  padding: 0 18px;
}

/* === Logo === */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 130px; /* 🔹 más grande */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === Botón hamburguesa === */
.nav-toggle { 
  font-size: 1.8rem;
  background: none; 
  border: none;
  cursor: pointer; 
  padding: 0;
  margin: 0;
  line-height: 1;
  color: #a67b5b;
}

/* === Navegación escritorio === */
.main-nav {
  position: relative;
  display: flex;
  justify-content: flex-end; /* 🔹 Botones a la derecha */
  align-items: center;
  gap: 28px;
}

.main-nav a {
  padding: 4px 6px;
  font-size: 1rem;
  line-height: 1;
  margin: 0;
}

/* === Menú móvil === */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background-color: rgba(30,30,30,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  border-left: 2px solid #dbbba6;
  border-radius: 10px 0 0 10px;
}

.mobile-nav.is-active {
  transform: translateX(0);
}

.mobile-nav a,
.mobile-dropbtn {
  color: #dbbba6;
  font-size: 1rem;
  margin: 6px 0;
  padding: 8px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease, transform 0.2s ease;
}

.mobile-nav a:hover,
.mobile-dropbtn:hover {
  background-color: #dbbba6;
  color: black;
}

/* === Submenú móvil === */
.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0 0 0;
}
.mobile-dropdown-content.show {
  display: flex !important;
}

/* === Responsive === */

/* 💻 Escritorio */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }

  .header-inner {
    height: 120px;
    padding: 0 24px;
  }

  .logo-img {
    width: 220px;
  }

  .logo {
    justify-content: flex-start; /* 🔹 logo a la izquierda */
    width: 195px;
  }
}

/* 📱 Móvil */
@media (max-width: 767px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .header-inner {
    height: 120px;
    padding: 0 14px;
    justify-content: flex-start;
    position: relative;
  }

  .logo {
    flex: 1;
    display: flex;
    justify-content: center; /* 🔹 centrado en móvil */
    align-items: center;
  }

  .logo-img {
    width: 165px;
    
  }

  .nav-toggle {
    position: absolute;
    right: 12px; /* 🔹 botón hamburguesa a la derecha */
  }
  .mobile-nav a,
  .mobile-dropbtn {
    color: #dbbba6 !important;
    background: none !important;
  }

  .mobile-nav a:hover,
  .mobile-dropbtn:hover {
    background: none !important;
    color: #dbbba6 !important;
    transform: none !important;
  }

  .mobile-dropdown-content a:hover {
    background: none !important;
    color: #dbbba6 !important;
    transform: none !important;
  }
   .mobile-dropdown-content a {
    color: #ffffff !important;
  }

}

/* ==========================
   FOOTER
========================== */
.site-footer {
  background-color: black;
  color: #dbbba6;
  padding: 25px 20px;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 15px;
  width: 100%;
}

.footer-left {
  font-weight: 600;
  color: var(--color-on-dark);
  font-size: 0.95rem;
}

.footer-right a i,
.footer-right svg {
  color: #dbbba6 !important;
  font-size: 4.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.footer-right a:hover i,
.footer-right a:hover svg {
  transform: scale(1.05);
}
.privacidad{
  color:#fff;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px 20px;
  }

  .footer-left {
    font-size: 0.9rem;
  }

  .footer-right a i,
  .footer-right svg {
    font-size: 3rem;
  }
}

/* === Dropdown escritorio === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 5px 8px;
  position: relative;
  z-index: 2;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
  padding: 15px 25px;
  gap: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-content.show {
  opacity: 1;
  pointer-events: auto;
}

.dropdown-content a {
  color: #1e1e1e;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
}


.dropdown-content a:hover {
  background-color: #dbbba6;
  color: black;
  transform: scale(1.05);
}
.footer-left .mail {
  color: #dbbba6 !important;
  font-weight: bold;
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-left .mail:hover {
  text-decoration: underline;
}
