/* ==================== RESET GLOBAL ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ==================== ESTILOS GENERALES ==================== */
body {
  font-family: 'Arial', sans-serif;
  background-color: #e9e9e9;
  color: #333;
  height: 100vh;
}

/* ==================== HEADER ==================== */
header {
  background: #131313;
  color: #fdfdfdec;
  padding: 1rem;
  text-align: center;
  display: flex;
}

.logo {
  background-image: url(../img/isotipo.svg);
  height: 50px;
  width: 50px;
  background-repeat: no-repeat;
  background-size: cover;
}
.menu-toggle {
  display: none;
}
nav {
  margin-left: 73%;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: #fdfdfdec;
  text-decoration: none;
  font-weight: bold;
}


/* ==================== CONTENEDORES ==================== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.article-container {
  display: flex;
  justify-content: center;
}
.article {
  max-width: 3000px;
  width: 100%;
  margin-top: 50px;
}
.article-header {
  margin-top: 50px;
}

/* ==================== TEXTO ==================== */
.article p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #333;
  text-align: justify;
  line-height: 25px;
}
.article-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
  text-align: left;
}
blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #f4f6f9;
  border-left: 4px solid #002147;
  font-style: italic;
  color: #444;
}

/* ==================== IMAGEN FULL-BLEED ==================== */
.full-bleed {
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 5px 8px 8px #acacac;
}
.full-bleed .article-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

/*=========TABLE==========*/
.ethical-table {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ethical-table th, 
.ethical-table td {
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.ethical-table th {
  background-color: #f0f0f0; /* gris claro */
  color: #222;
  font-weight: bold;
  text-align: center;
}

.ethical-table tr:nth-child(even) {
  background-color: #fafafa; /* filas pares en gris muy suave */
}

.ethical-table tr:nth-child(odd) {
  background-color: #fff; /* filas impares en blanco */
}

.ethical-table strong {
  color: #333; /* ya no azul, sino gris oscuro */
}
/* ==================== FOOTER ==================== */
footer {
  margin-top: 85px;
  background: #131313;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  justify-content: center;
}
.info{
  display: flex;
  gap: 5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  margin-bottom:20px;
}

#mail,#tel,#direccion{
  padding-right:50px;
  text-align: center;
  display: flex;  
  align-items: center;
  justify-content: center;
  border-right: 2px solid white;
}
.icon{
  width: 25px;
  height: 25px;
  margin-right: 15px;
}
#direccion{
  border: none;
}
#derechos{
  font-size: 8pt;
  letter-spacing: 1.5pt;
}
/* ==================== MEDIA QUERY: LAPTOP (≥ 1024px) ==================== */
@media (min-width: 1024px) {
  nav {
    margin-left: auto;
  }
    .article {
    max-width: 900px; /* centrado y cómodo de leer */
    margin: 50px auto;
  }

  .article-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .article p {
    font-size: 1.1rem;
    line-height: 1.8;
  }
}


/* ==================== MEDIA QUERY: TABLET (≥ 768px y < 1024px) ==================== */
@media (max-width: 1023px) and (min-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin-left: 0;
  }

  nav ul {
    justify-content: center;
  }

  .article {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 1rem;
  }

  .article-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .article p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

  #derechos{
  font-size: 6pt;
  letter-spacing: 1.5pt;
}

/* ==================== MEDIA QUERY: MÓVIL (< 768px) ==================== */
@media (max-width: 767px) {

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Mostrar menú hamburguesa solo en móvil */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
  }

  /* Asegura que no se vea en desktop */
.nav-principal {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: #131313;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

  .nav-principal.open {

  display: block;
  opacity: 1;
  transform: translateY(0);
  }

  /* Estilo del header en vertical */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    position: relative;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
.info{
  flex-direction: column;
  gap:2.5rem;
  margin-bottom:1.5rem;
}
#direccion,#tel,#mail{
  border: none;
  height: 5px;
}
#derechos{
  font-size: 6pt;
  letter-spacing: 1.5pt;
}
}