html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
  margin: 0;
  box-sizing: border-box;
}

:root {
  /* Tipografías */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Colores principales */
  --color-dorado: #F5B041;
  --color-naranja: #D97A32;
  --color-gris-piedra: #6A5F56;
  --color-negro-suave: #1A1A1A;
  --color-azul-noche: #22313F;
  --color-blanco: #FFFFFF;

  /* Colores auxiliares y estados */
  --color-hover: #b86f3c;
  --color-texto: var(--color-blanco);
  --color-fondo: var(--color-azul-noche);
}

/* Visually hidden h1 para SEO y accesibilidad */
.visually_hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 1em;
}

body {
  font-family: var(--font-body);
  color: var(--color-texto);
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

.resaltado_p {
    color: var(--color-dorado);
}

/*HEADER SECTION*/

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: black;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  backdrop-filter: none;
}


.inicio_header_content {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inicio_header_content_name {
    font-family: var(--font-heading);
    font-size: 1.2em;
    letter-spacing: 0.3em;
    font-weight: 600;
}

.inicio_header_content_name a {
    text-decoration: none;
    color: inherit;
}

#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
  position: fixed;
  top: 20px;
  right: 20px;
  margin: 10px auto;
}

#menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}


.inicio_header_content_nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.inicio_header_content_nav ul li a {
  text-decoration: none;
  color: var(--color-blanco, white);
  font-family: var(--font-heading);
  font-size: 1em;
  font-weight: 600;
  transition: color 0.3s ease;
}

.inicio_header_content_nav ul li a:hover {
  color: var(--color-dorado, gold);
}


/* RESPONSIVE TABLET Y MÓVIL */

/* Activar menú hamburguesa desde 1024px hacia abajo */
@media (max-width: 1024px) {

  /* Ocultar menú horizontal */
  .inicio_header_content_nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:black;
    width: 100vw;
    height: 100vh;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .inicio_header_content_name {
    margin: 0 20px;
}

  /* Mostrar menú activo */
  .inicio_header_content_nav.active {
    display: flex;
  }

  /* Menu vertical con espacio entre enlaces */
  .inicio_header_content_nav ul {
    flex-direction: column;
    gap: 30px;
    margin: 0;
    padding: 0;
  }

  .inicio_header_content_nav ul li a {
    font-size: 1.5rem; 
    color: var(--color-dorado, gold);
    text-align: center;
    font-weight: 500;
  }

  /* Mostrar botón hamburguesa */
  #menu-toggle {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    margin: 10px auto;
  }

  /* Transformación hamburguesa a X */
  #menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* RESPONSIVE MÓVIL PEQUEÑO (768px y menos) */

@media (max-width: 768px) {
  .inicio_header_content_nav ul li a {
    font-size: 1.4rem;
    font-weight: 500;
  }
}


/* Artículo */
/* estilos-articulo.css */

.articulo_container {
  margin: 0 auto;
  margin-top: 80px;
  padding: 3rem 1rem;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: #000000;
  background-color: #efefef;
}

.articulo_img {
  max-width: 850px;
  margin: auto;
}
.articulo_img img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.articulo_header {
  max-width: 850px;
  margin: auto;
}

.articulo_header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.articulo_header .intro {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 2rem;
}

.articulo_section {
    max-width: 850px;
  margin: auto;
  margin-bottom: 3rem;
}

.articulo_section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.articulo_section h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.articulo_section p {
  margin-bottom: 1rem;
}

.articulo_section a {
  text-decoration: none;
  color: var(--color-naranja);
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 1rem;
}

.articulo_section a:hover {
  color:var(--color-azul-noche);
}


.articulo_section ul,
.articulo_section ol {
  margin-left: 1rem;
  margin-bottom: 1.5rem;
}

.articulo_section li {
  margin-bottom: 0.5rem;
}

.articulo_footer {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.articulo_footer p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.articulo_footer .btn_cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-dorado);
  color: black;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.articulo_footer .btn_cta:hover {
  background-color: var(--color-naranja);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .articulo_container {
    padding: 2rem 1rem;
    margin-top: 80px;
  }

  .articulo_header h1 {
    font-size: 2rem;
  }

  .articulo_header .intro {
    font-size: 1.1rem;
  }

  .articulo_section h2 {
    font-size: 1.5rem;
  }

  .articulo_section h3 {
    font-size: 1rem;
  }

  .articulo_footer p {
    font-size: 1rem;
  }

  .articulo_footer .btn_cta {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .articulo_header h1 {
    font-size: 1.75rem;
  }

  .articulo_header .intro {
    font-size: 1rem;
  }

  .articulo_section h2 {
    font-size: 1.25rem;
  }

  .articulo_section h3 {
    font-size: 0.95rem;
  }

  .articulo_footer .btn_cta {
    width: 100%;
    display: block;
    font-size: 0.95rem;
  }
}

/*INICIO FAQ DE ARTÍCULOS */
/* ==== FAQ SECTION ==== */
.faq-section {
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 20px;
  text-align: center;
}

.faq-container {
  max-width: 1200px;margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  background: #f9f9f9;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f1f1f1;
}

.faq-icon {
  font-size: 1.2rem;
  color: #0078ff;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  padding: 0 18px;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
  margin: 14px 0;
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 14px 18px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}


/*INICIO FOOTER */

.footer {
  background-color: black;
  color: white;
  padding: 4rem 2rem 2rem;
  font-family: var(--font-principal);
  border-top: 1px solid var(--color-dorado);
}

.footer_contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 5rem;
}

.footer h3 {
  color: var(--color-dorado);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--color-dorado);
}

.footer_credito {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}


@media (max-width: 768px) {
  .footer_contenedor {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer_menu,
  .footer_politicas {
    width: 100%;
  }

  .footer_menu ul,
  .footer_politicas ul {
    padding: 0;
  }

  .footer_credito {
    margin-top: 2rem;
  }
}

/* COOKIES BANNER */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-negro-suave);
  color: #ecf0f1;
  padding: 18px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  max-width: 900px;
  z-index: 9999;
  gap: 15px;
}

#cookie-banner a {
  color:var(--color-dorado);
  text-decoration: underline;
  margin-left: 10px;
  transition: color 0.3s ease;
}

#cookie-banner a:hover {
  color:var(--color-naranja);
}

#cookie-banner div:first-child {
  flex: 1 1 300px;
}

#cookie-banner button {
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  min-width: 120px;
}

#btn-accept-necessary, #btn-accept-analytics {
  background: #7f8c8d;
  color: black;
}

#btn-accept-necessary:hover {
  background: #95a5a6;
}

#btn-accept-analytics:hover {
  background: #95a5a6;
}

#btn-accept-all {
  background: var(--color-dorado);
  color: black;
}

#btn-accept-all:hover {
  background: #16a085;
}


/* Responsive: en pantallas muy pequeñas el banner se apila */
@media (max-width: 480px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    width: 90%;
  }

  #cookie-banner div:first-child {
    flex: none;
    margin-bottom: 12px;
  }

  #cookie-banner button {
    min-width: 100%;
    margin-bottom: 20px;
  }
}