:root {
  --azul-marino: #0a2342;
  --dorado: #c5a572;
  --gris-claro: #f5f7fa;
  --gris-medio: #6b7280;
  --blanco: #ffffff;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--blanco);
}

h1, h2, h3, h4, h5, h6 {
  font-family: source-serif-4, Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--azul-marino);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

a {
  color: var(--azul-marino);
  text-decoration: none;
  transition: color 0.2s;
}

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

a:focus {
  outline: 2px solid var(--dorado);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HEADER */
header {
  background: var(--azul-marino);
  color: var(--blanco);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-contenido {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: source-serif-4, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--blanco);
  font-weight: 500;
  font-size: 0.95rem;
}

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

@media (max-width: 768px) {
  .header-contenido {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,35,66,0.9) 0%, rgba(10,35,66,0.7) 100%);
  z-index: 2;
}

.hero-contenido {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 2rem 1rem;
}

.hero h1 {
  color: var(--blanco);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .lema {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lema {
    font-size: 1rem;
  }
}

/* BUSCADOR */
.buscador {
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  max-width: 600px;
  margin: 0 auto;
}

.buscador label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--azul-marino);
}

.buscador select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.buscador select:focus {
  outline: none;
  border-color: var(--dorado);
}

/* CONTENEDOR */
.contenedor {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.contenedor-estrecho {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* SECCIONES */
section {
  margin-bottom: 4rem;
}

.seccion-gris {
  background: var(--gris-claro);
  padding: 3rem 0;
}

/* PASOS */
.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.paso {
  background: var(--blanco);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.paso:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.paso img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.paso-numero {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: var(--dorado);
  color: var(--blanco);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* NOTICIAS */
.noticias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.noticia {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.noticia:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.noticia-contenido {
  padding: 1.5rem;
}

.noticia h3 {
  margin-bottom: 0.5rem;
}

.noticia-fecha {
  font-size: 0.875rem;
  color: var(--gris-medio);
  margin-bottom: 0.5rem;
}

/* SUBASTA DESTACADA */
.subasta-destacada {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.subasta-destacada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subasta-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.etiqueta {
  display: inline-block;
  background: var(--dorado);
  color: var(--blanco);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.subasta-info ul {
  list-style: none;
  margin: 1.5rem 0;
}

.subasta-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.subasta-info li:last-child {
  border-bottom: none;
}

.subasta-info strong {
  color: var(--azul-marino);
}

@media (max-width: 768px) {
  .subasta-destacada {
    grid-template-columns: 1fr;
  }
}

/* BOTONES */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--azul-marino);
  color: var(--blanco);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-align: center;
}

.btn:hover {
  background: var(--dorado);
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn:focus {
  outline: 2px solid var(--dorado);
  outline-offset: 2px;
}

.btn-grande {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-bloque {
  display: block;
  width: 100%;
}

/* CAJA ALERTAS */
.caja-alertas {
  background: linear-gradient(135deg, var(--azul-marino) 0%, #163a5f 100%);
  color: var(--blanco);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
}

.caja-alertas h2 {
  color: var(--blanco);
  margin-bottom: 1rem;
}

.caja-alertas p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* FORMULARIOS */
form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--blanco);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--azul-marino);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--dorado);
}

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

.checkbox-grupo {
  margin-bottom: 1.5rem;
}

.checkbox-grupo label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
}

.checkbox-grupo input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

input[name="web"] {
  display: none;
}

/* GUÍA CON ÍNDICE */
.guia-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.indice {
  position: sticky;
  top: 100px;
  background: var(--gris-claro);
  padding: 1.5rem;
  border-radius: 8px;
}

.indice h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.indice ul {
  list-style: none;
}

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

.indice a {
  font-size: 0.95rem;
  color: var(--gris-medio);
}

.indice a:hover {
  color: var(--azul-marino);
}

.guia-contenido h2 {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid var(--dorado);
}

.guia-contenido h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.guia-contenido ul,
.guia-contenido ol {
  margin: 1rem 0 1rem 1.5rem;
}

.guia-contenido li {
  margin-bottom: 0.5rem;
}

.alerta-info {
  background: #e8f4f8;
  border-left: 4px solid var(--azul-marino);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.alerta-aviso {
  background: #fff4e6;
  border-left: 4px solid var(--dorado);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

@media (max-width: 968px) {
  .guia-layout {
    grid-template-columns: 1fr;
  }
  
  .indice {
    position: static;
  }
}

/* GLOSARIO */
.glosario-lista {
  margin-top: 2rem;
}

.termino {
  background: var(--blanco);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--dorado);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.termino h3 {
  margin-bottom: 0.5rem;
}

/* ESTILOS DEL SISTEMA DE NOTICIAS */
.wt-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .wt-lista {
    grid-template-columns: 1fr;
  }
}

.wt-tarjeta {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.wt-tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.wt-tarjeta img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wt-tarjeta h3 {
  margin: 1rem 1.5rem 0.5rem;
}

.wt-tarjeta p {
  margin: 0 1.5rem 1rem;
  color: #555;
  flex-grow: 1;
}

.wt-tarjeta .wt-meta {
  margin: 0 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--gris-medio);
}

.wt-nota {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wt-titulo {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--azul-marino);
}

@media (max-width: 768px) {
  .wt-titulo {
    font-size: 1.75rem;
  }
}

.wt-meta {
  font-size: 0.875rem;
  color: var(--gris-medio);
  margin-bottom: 1.5rem;
}

.wt-entradilla {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 2rem;
  font-weight: 500;
}

.wt-imagen {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.wt-cuerpo {
  font-size: 1rem;
  line-height: 1.75;
}

.wt-cuerpo p {
  margin-bottom: 1.5rem;
}

.wt-cuerpo h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--dorado);
}

.wt-cuerpo h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.wt-cuerpo h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.wt-cuerpo ul,
.wt-cuerpo ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
}

.wt-cuerpo li {
  margin-bottom: 0.5rem;
}

.wt-cuerpo a {
  color: var(--azul-marino);
  text-decoration: underline;
}

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

.wt-fuentes {
  font-size: 0.875rem;
  color: var(--gris-medio);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.wt-volver {
  margin-top: 2rem;
  text-align: center;
}

.wt-vacio {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gris-medio);
  font-size: 1.125rem;
}

/* PIE */
footer {
  background: var(--azul-marino);
  color: var(--blanco);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.pie-contenido {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.pie-seccion h4 {
  color: var(--blanco);
  margin-bottom: 1rem;
}

.pie-seccion ul {
  list-style: none;
}

.pie-seccion li {
  margin-bottom: 0.5rem;
}

.pie-seccion a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

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

.pie-boletines {
  margin-top: 1rem;
}

.pie-boletines input[type="email"] {
  margin-bottom: 0.5rem;
}

.pie-legal {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 2rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.pie-legal-enlaces {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pie-legal a {
  color: rgba(255,255,255,0.7);
}

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

@media (max-width: 768px) {
  .pie-legal {
    flex-direction: column;
    text-align: center;
  }
}
