* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(135deg, #004080 0%, #003366 100%);
  color: white;
  padding: 1rem;
  min-height: 82px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  transition: height 0.3s ease;
}

header.scrolled .logo {
  height: 60px;
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

header.scrolled .site-title {
  font-size: 1.6rem;
}

/* Navigation */
nav {
  flex-shrink: 0;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

header.scrolled .nav a {
  font-size: 0.95rem;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: #ffd700;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 300px);
}

h1 {
  color: #004080;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  padding-bottom: 0;
}

.subtitle {
  color: #666;
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e8f0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-logo {
  flex: 0 0 220px;
  text-align: center;
}

.hero-logo img {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.hero-content {
  flex: 1;
}

h2 {
  color: #003366;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  color: #004080;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}

section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f0f4f8;
  border-left: 4px solid #004080;
  border-radius: 4px;
}

section h2 {
  margin-top: 0;
  color: #003366;
}

section p {
  margin-bottom: 0.5rem;
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.8;
}

ul li, ol li {
  margin-bottom: 0.75rem;
  color: #555;
}

/* Links */
a {
  color: #004080;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #003366;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #004080 0%, #003366 100%);
  color: white;
  border: 2px solid #004080;
  box-shadow: 0 4px 6px rgba(0, 64, 128, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 64, 128, 0.25);
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #003366 0%, #001f4d 100%);
}

/* Publicaciones */
.publicacion {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e0e8f0;
}

.publicacion:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.publicacion-portada {
  flex-shrink: 0;
  width: 160px;
}

.publicacion-portada img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.publicacion-contenido {
  flex: 1;
  min-width: 0;
}

.publicacion-contenido h2 {
  margin-top: 0;
}

/* Footer */
footer {
  background: #f0f0f0;
  color: #555;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 3px solid #004080;
  font-weight: 500;
}

footer p {
  font-size: 0.88rem;
  color: #555;
  margin: 0.4rem auto;
  max-width: 940px;
}

footer .cookies-notice {
  font-size: 0.85rem;
  color: #777;
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

footer .legal-notice,
footer .contact-notice {
  font-size: 0.88rem;
  color: #555;
  font-weight: 400;
  max-width: 940px;
  margin: 0 auto 0.6rem;
  line-height: 1.6;
}

footer .legal-notice {
  font-size: 0.8rem;
  color: #666;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  main {
    padding: 1.5rem;
    margin: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .site-title {
    font-size: 1.4rem;
  }

  section {
    padding: 1rem;
  }

  .publicacion {
    flex-direction: column;
    gap: 1rem;
  }

  .publicacion-portada {
    width: 140px;
  }
}
  