/* ==========================================================================
   1. VARIABLES, REINICIO Y ESTILOS BASE
   ========================================================================== */
:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --accent: #c11c3a;
  --gray: #f4f4f4;
  --font-main: 'Helvetica', 'Arial', sans-serif;
  --font-headings: 'Helvetica', 'Arial', sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.page-content {
  flex: 1;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: auto;
  padding: 1rem 2rem;
  box-sizing: border-box;
}
/* ==========================================================================
   2. CABECERA Y NAVEGACIÓN
   ========================================================================== */
.header {
  background-color: var(--white);
  padding: 0.8rem 0;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 600;
}

.logo-img {
  max-height: 70px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.btn-contact {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background-color: #a81832;
  color: var(--white);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--black);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

/* ==========================================================================
   3. BLOQUE COOKIE POLICY
   ========================================================================== */
.legal-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.cookie-policy-wrap {
  color: #1a1a1a;
  line-height: 1.6;
  background-color: #ffffff;
  max-width: 900px;
  margin: 20px auto;
  padding: 24px 20px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
}

.cookie-policy-wrap h1,
.cookie-policy-wrap h2,
.cookie-policy-wrap h3,
.cookie-policy-wrap h4 {
  color: var(--black);
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 32px;
  margin-bottom: 12px;
}

.cookie-policy-wrap h1 {
  font-size: 26px;
  margin-top: 0;
  text-align: center;
}

.cookie-policy-wrap h2 {
  font-size: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.cookie-policy-wrap h3 {
  font-size: 17px;
}

.cookie-policy-wrap p {
  font-size: 15px;
  margin: 0 0 16px 0;
  text-align: justify;
}

.cookie-policy-wrap ul {
  font-size: 15px;
  margin: 0 0 16px 20px;
  padding: 0;
}

.cookie-policy-wrap li {
  margin-bottom: 8px;
}

.cookie-policy-wrap .section-block {
  margin-bottom: 32px;
}

.cookie-policy-wrap .address-block {
  background: #f6f6f6;
  border: 1px solid #d0d0d0;
  padding: 16px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 6px;
}

.cookie-policy-wrap .address-block b {
  display: block;
  margin-bottom: 4px;
}

.cookie-policy-wrap a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-policy-wrap a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */

.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 4px;
}

.footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    align-items: center;
  }

  .nav-menu.show {
    display: flex;
  }

  .logo-img {
    max-height: 50px;
  }

  .container {
    padding: 1rem 1.2rem;
  }

  .cookie-policy-wrap {
    margin: 10px auto;
    padding: 16px;
    border-radius: 4px;
  }

  .cookie-policy-wrap h1 {
    font-size: 22px;
  }

  .cookie-policy-wrap h2 {
    font-size: 18px;
  }

  .cookie-policy-wrap h3 {
    font-size: 16px;
  }
}
