:root
{
  --color-bg: #F9F7F1;
  /* Cream/Paper */
  --color-text-primary: #2D3748;
  --color-text-secondary: #4A5568;
  --color-accent: #722F37;
  /* Conchevino/Merlot */
  --color-accent-hover: #5a252b;
  --color-gold: #D69E2E;
  --color-border: #E2E8F0;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html
{
  font-size: 18px;
  scroll-behavior: smooth;
}

body
{
  font-family: var(--font-serif);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23722f37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
h6
{
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--color-accent);
  /* Conchevino headers */
  margin-bottom: 1rem;
}

h1
{
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2
{
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
  padding-bottom: 0.5rem;
}

h3
{
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

p
{
  margin-bottom: 1rem;
}

.lead
{
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

a
{
  color: var(--color-accent);
  text-decoration: none;
  transition: all 200ms ease;
  border-bottom: 1px solid transparent;
}

a:hover
{
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

blockquote
{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  border-left: 4px solid var(--color-gold);
  padding: 1rem 2rem;
  margin: 3rem 0;
  background: rgba(214, 158, 46, 0.1);
  border-radius: 0 8px 8px 0;
}

blockquote cite
{
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.btn
{
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 6px rgba(114, 47, 55, 0.2);
  text-transform: uppercase;
  text-decoration: none;
  /* Fix link decoration override */
  border-bottom: none;
}

.btn:hover
{
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(114, 47, 55, 0.3);
  color: white;
  border-bottom: none;
}

.btn--small
{
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn--outline
{
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  box-shadow: none;
}

.btn--outline:hover
{
  background-color: var(--color-accent);
  color: white;
}

.container
{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main
{
  min-height: calc(100vh - 200px);
  overflow-x: hidden;
  /* Prevent horizontal scroll from crazy elements */
}

/* Header & Nav */
.header
{
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.nav
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav__logo
{
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: none;
}

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

.nav__menu
{
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav__menu a
{
  color: var(--color-text-secondary);
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  font-weight: 500;
  border-bottom: none;
}

.nav__menu a:hover
{
  color: var(--color-accent);
}

.nav__menu a::after
{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 250ms ease;
}

.nav__menu a:hover::after
{
  width: 100%;
}

/* Search */
.nav__search
{
  margin-left: auto;
}

.nav__menu
{
  margin-left: auto;
}

.nav__search-btn
{
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease;
}

.nav__search-btn:hover
{
  color: var(--color-accent);
}

.search-modal
{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 55, 72, 0.95);
  z-index: 1000;
  padding: 2rem;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-modal.active
{
  display: flex;
}

.search-modal__content
{
  background: var(--color-bg);
  border-radius: 8px;
  width: 100%;
  max-width: 700px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-modal__close
{
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease;
}

.search-modal__close:hover
{
  color: var(--color-accent);
}

.search-modal__input
{
  width: 100%;
  padding: 1rem;
  font-size: 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 200ms ease;
}

.search-modal__input:focus
{
  border-color: var(--color-accent);
}

.search-modal__results
{
  margin-top: 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
}

.search-result
{
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 200ms ease;
}

.search-result:hover
{
  background-color: rgba(114, 47, 55, 0.05);
}

.search-result__title
{
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.search-result__excerpt
{
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.search-result__link
{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Hero Section */
.hero
{
  background-color: transparent;
  padding: 6rem 1.5rem 8rem;
  text-align: center;
  border-bottom: none;
  position: relative;
}

.hero__content
{
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__subtitle
{
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero__silhouette
{
  position: absolute;
  bottom: -64px;
  right: 5%;
  width: 300px;
  opacity: 0.85;
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-5deg);
  filter: sepia(0.3) contrast(1.1);
}

@media (max-width: 768px)
{
  .hero__silhouette
  {
    width: 150px;
    bottom: 0;
    right: 0;
    opacity: 0.4;
  }

  h1
  {
    font-size: 2.5rem;
  }
}


/* Carousel with a "Crazy" Twist */
.proyectos-carousel
{
  padding: 4rem 0 6rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.proyectos-carousel::before
{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to right, var(--color-accent), var(--color-gold));
}

.proyectos-carousel .container h2
{
  text-align: center;
  position: relative;
  z-index: 2;
}

.proyectos-carousel__subtitle
{
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
}

.carousel
{
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0;
  perspective: 1000px;
  /* For 3D feeling */
}

.carousel__track-container
{
  overflow: hidden;
  padding: 2rem 1rem;
  /* Space for shadows/rotation */
}

.carousel__track
{
  display: flex;
  gap: 2rem;
  /* Transition handled in js */
}

.carousel__card
{
  flex: 0 0 350px;
  /* Fixed width */
  background: white;
  padding: 1rem;
  border-radius: 2px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--color-border);
  position: relative;
  /* The "Crazy" Part: Subtle random-ish feel using nth-child */
}

/* Pseudo-random rotations for "thrown on table" look */
.carousel__card:nth-child(odd)
{
  transform: rotate(1deg);
}

.carousel__card:nth-child(even)
{
  transform: rotate(-1.5deg);
}

.carousel__card:nth-child(3n)
{
  transform: rotate(0.5deg) translateY(10px);
}

.carousel__card:hover
{
  transform: rotate(0) scale(1.05) translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border-color: var(--color-gold);
}

.carousel__card-image
{
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent);
}

.carousel__card-image img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.carousel__card:hover .carousel__card-image img
{
  transform: scale(1.1);
}

.carousel__card-content
{
  text-align: left;
}

.carousel__card-year
{
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}

.carousel__card h3
{
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.carousel__card p
{
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.carousel__btn
{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel__btn:hover
{
  background: var(--color-accent);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev
{
  left: 1rem;
}

.carousel__btn--next
{
  right: 1rem;
}

.carousel__indicators
{
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel__dot
{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: all 200ms;
}

.carousel__dot.active
{
  background: var(--color-accent);
  transform: scale(1.2);
}

/* Areas Grid */
.areas
{
  background-color: transparent;
  padding: 6rem 1.5rem;
}

.areas-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.area-card
{
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  transition: all 300ms ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.area-card::after
{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 300ms ease;
  transform-origin: center;
}

.area-card:hover
{
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: #FDFBF7;
}

.area-card:hover::after
{
  transform: scaleX(1);
}

.area-card__icon
{
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: all 300ms;
  color: var(--color-accent);
}

.icon-svg
{
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.area-card:hover .area-card__icon
{
  background: transparent;
  color: var(--color-gold);
  transform: scale(1.1) rotate(5deg);
}

.area-card h3
{
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.area-card__link
{
  margin-top: auto;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Footer Tweak */
.footer
{
  background-color: var(--color-text-primary);
  border-top: 5px solid var(--color-accent);
  padding: 3rem 1rem;
}

.footer__content
{
  text-align: center;
  color: var(--color-bg);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__content p
{
  margin: 0;
}

.footer a
{
  color: var(--color-gold);
  border-bottom: 1px solid transparent;
}

.footer a:hover
{
  color: white;
  border-bottom-color: white;
}


.libro-card
{
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.libro-card:hover
{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.libro-card__cover
{
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: #f5f5f5;
  padding: 0.75rem;
  display: block;
  border-bottom: 1px solid #e2e8f0;
}

.libro-card__content
{
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.libro-card h3
{
  font-size: 18px;
  color: #2c5282;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.libro-card__subtitle
{
  font-style: italic;
  color: #4a5568;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2em;
}

.libro-card__description
{
  color: #1a202c;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.libro-card__year
{
  font-size: 0.8rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.libro-card .btn--download
{
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

@media (min-width: 1400px)
{
  .libros-grid
  {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px)
{
  .libros-grid
  {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .libro-card__cover
  {
    height: 240px;
  }

  .libro-card h3
  {
    font-size: 0.95rem;
  }
}

.revista-historia
{
  max-width: 800px;
  margin: 0 auto;
}

.revista-historia h2,
.revista-historia h3
{
  color: #2c5282;
  margin-top: 3rem;
}

.revista-historia p
{
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.revista-historia ul
{
  margin: 1.5rem 0;
  padding-left: 2rem;
}

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

.revista-intro
{
  margin-bottom: 3rem;
}

.revista-intro .lead
{
  font-size: 1.125rem;
  font-style: italic;
  color: #4a5568;
  border-left: 4px solid #d69e2e;
  padding-left: 1.5rem;
  margin: 3rem 0;
}

.revista-quote
{
  background: #f7f5ef;
  border-left: 4px solid #2c5282;
  padding: 1.5rem;
  margin: 3rem 0;
  font-style: italic;
}

.revista-quote cite
{
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.875rem;
  color: #4a5568;
}

.portadas-galeria
{
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid #e2e8f0;
}

.portadas-galeria h2
{
  text-align: center;
  color: #2c5282;
  margin-bottom: 1rem;
}

.portadas-intro
{
  text-align: center;
  color: #4a5568;
  margin-bottom: 3rem;
}

.portadas-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portada-item
{
  text-align: center;
  transition: transform 0.2s;
}

.portada-item:hover
{
  transform: translateY(-4px);
}

.portada-item img
{
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.portada-item img:hover
{
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.portada-item figcaption
{
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 500;
}

.revista-prensa,
.revista-libro
{
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid #e2e8f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.prensa-articulo h3
{
  color: #2c5282;
  margin-bottom: 0.5rem;
}

.prensa-articulo .prensa-meta
{
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.prensa-articulo blockquote
{
  background: #f7f5ef;
  border-left: 4px solid #d69e2e;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

.proyectos-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.proyecto-card
{
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.proyecto-card:hover
{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.proyecto-card__image
{
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.proyecto-card__image img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.proyecto-card__content
{
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proyecto-card h3
{
  font-size: 1.125rem;
  color: #2c5282;
  margin-bottom: 0.5rem;
}

.proyecto-card__year
{
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proyecto-card p
{
  color: #1a202c;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex: 1;
}

.proyecto-card .btn
{
  align-self: flex-start;
}

@media (max-width: 768px)
{
  .proyectos-grid
  {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cursos-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.curso-card
{
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.curso-card:hover
{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.curso-card h3
{
  font-size: 1.125rem;
  color: #2c5282;
  margin-bottom: 1rem;
  font-weight: 600;
}

.curso-card p
{
  color: #1a202c;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px)
{
  .cursos-grid
  {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.header
{
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav__logo
{
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  color: #1a202c;
  font-weight: 600;
}

.nav__logo:hover
{
  color: #2c5282;
}

.nav__menu
{
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav__menu a
{
  color: #4a5568;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav__menu a:hover
{
  color: #2c5282;
}

.nav__menu a::after
{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2c5282;
  transition: width 250ms ease;
}

.nav__menu a:hover::after
{
  width: 100%;
}

.nav__toggle
{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span
{
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a202c;
  margin: 5px 0;
  transition: transform 150ms ease;
}

.book-card
{
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.book-card:hover
{
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.book-card h3
{
  color: #2c5282;
  margin-bottom: 0.5rem;
}

.book-card p
{
  color: #4a5568;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.libros-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.libro-card
{
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 250ms ease, transform 250ms ease;
  display: flex;
  flex-direction: column;
}

.libro-card:hover
{
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.libro-card__cover
{
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid #e2e8f0;
}

.libro-card__content
{
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.libro-card h3
{
  color: #2c5282;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.libro-card__subtitle
{
  color: #718096;
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.libro-card__description
{
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.libro-card__year
{
  color: #718096;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.libro-card__note
{
  color: #718096;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.libro-card .btn
{
  margin-top: auto;
}

.subnav
{
  background-color: #f7f5ef;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.subnav .container
{
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.subnav--sticky
{
  position: sticky;
  top: 0;
  z-index: 100;
}

.subnav__link
{
  color: #4a5568;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 150ms ease;
}

.subnav__link:hover
{
  color: #2c5282;
}

.subnav__link::after
{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2c5282;
  transition: width 250ms ease;
}

.subnav__link:hover::after
{
  width: 100%;
}

.subnav__link.active
{
  color: #2c5282;
  font-weight: 600;
}

.subnav__link.active::after
{
  width: 100%;
}

.articulos-list
{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.articulo-card
{
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.articulo-card:hover
{
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border-color: #2c5282;
}

.articulo-card h3
{
  color: #2c5282;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.articulo-card__description
{
  color: #4a5568;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.articulo-card__meta
{
  color: #718096;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.articulo-card__year
{
  color: #718096;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.articulo-card__note
{
  color: #718096;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.nota-importante
{
  background-color: #fff7ed;
  border-left: 4px solid #d69e2e;
  padding: 1.5rem;
  margin-top: 3rem;
  border-radius: 4px;
}

.nota-importante p
{
  color: #1a202c;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.area-card
{
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.area-card:hover
{
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-color: #2c5282;
}

.area-card:hover h3
{
  color: #2c5282;
}

.area-card h3
{
  color: #1a202c;
  margin-bottom: 0.25rem;
  transition: color 150ms ease;
}

.area-card p
{
  color: #718096;
  font-size: 0.875rem;
  margin-bottom: 0;
}

[data-year="0"] .libro-card__year,
[data-year="0"] .articulo-card__year
{
  display: none !important;
}

@media (max-width: 768px)
{
  html
  {
    font-size: 16px;
  }

  h1
  {
    font-size: 2rem;
  }

  h2
  {
    font-size: 1.5rem;
  }

  .nav
  {
    flex-wrap: wrap;
  }

  .nav__toggle
  {
    display: block;
  }

  .nav__menu
  {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 1rem;
    gap: 0.5rem;
  }

  .nav__menu.is-open
  {
    display: flex;
  }

  .nav__menu a
  {
    padding: 0.5rem 0;
  }

  .hero
  {
    padding: 2rem 1.5rem;
  }

  .hero__quote
  {
    font-size: 0.875rem;
  }

  .featured,
  .areas
  {
    padding: 2rem 1.5rem;
  }

  .books-grid,
  .areas-grid
  {
    grid-template-columns: 1fr;
  }

  .libros-grid
  {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .libro-card__cover
  {
    height: 350px;
  }
}

@media (max-width: 576px)
{
  h1
  {
    font-size: 1.75rem;
  }

  .hero__subtitle
  {
    font-size: 1rem;
  }

  .book-card,
  .area-card
  {
    padding: 1.5rem;
  }
}

@media print
{

  .header,
  .footer,
  .nav
  {
    display: none;
  }

  .main
  {
    padding: 0;
  }

  a
  {
    color: #1a202c;
    text-decoration: underline;
  }
}

/* Cronología */
.cronologia
{
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.cronologia h2
{
  color: #2c5282;
  margin-bottom: 0.5rem;
}

.cronologia__decada
{
  margin-top: 3rem;
}

.cronologia__decada h3
{
  color: #1a202c;
  font-size: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d69e2e;
  margin-bottom: 1.5rem;
}

.cronologia__item
{
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.cronologia__item:last-child
{
  border-bottom: none;
  margin-bottom: 0;
}

.cronologia__year
{
  flex-shrink: 0;
  width: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c5282;
  background-color: #ebf4ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  height: fit-content;
}

.cronologia__content h4
{
  font-size: 1rem;
  color: #1a202c;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.cronologia__content p
{
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px)
{
  .cronologia__item
  {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cronologia__year
  {
    width: fit-content;
  }
}

/* Carrusel de Proyectos - La Circulación de la Vida */
.proyectos-carousel
{
  background-color: #ffffff;
  padding: 4rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.proyectos-carousel h2
{
  text-align: center;
  color: #2c5282;
  margin-bottom: 0.5rem;
}

.proyectos-carousel__subtitle
{
  text-align: center;
  color: #718096;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.carousel
{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel__track-container
{
  overflow: hidden;
  flex: 1;
}

.carousel__track
{
  display: flex;
  gap: 24px;
  transition: transform 400ms ease;
}

.carousel__card
{
  flex: 0 0 calc((100% - 48px) / 3);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.carousel__card:hover
{
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.carousel__card-image
{
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f7f5ef;
}

.carousel__card-image img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__card-content
{
  padding: 1.25rem;
}

.carousel__card-year
{
  display: inline-block;
  font-size: 0.75rem;
  color: #ffffff;
  background-color: #2c5282;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.carousel__card-content h3
{
  font-size: 1.125rem;
  color: #1a202c;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.carousel__card-content p
{
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel__btn
{
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #2c5282;
  background: #ffffff;
  color: #2c5282;
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel__btn:hover
{
  background-color: #2c5282;
  color: #ffffff;
}

.carousel__indicators
{
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel__dot
{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #e2e8f0;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.carousel__dot:hover
{
  background-color: #a0aec0;
}

.carousel__dot.active
{
  background-color: #2c5282;
  transform: scale(1.2);
}

.btn--small
{
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
}

/* Áreas - Grid de 3 columnas */
.areas-grid--three
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.area-card--large
{
  padding: 2rem;
  text-align: center;
}

.area-card--large .area-card__icon
{
  font-size: 3rem;
  margin-bottom: 1rem;
}

.area-card--large h3
{
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.area-card--large p
{
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.area-card__link
{
  display: inline-block;
  color: #2c5282;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 150ms ease;
}

.area-card--large:hover .area-card__link
{
  color: #1a365d;
}

/* Responsive para carrusel */
@media (max-width: 1024px)
{
  .carousel__card
  {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px)
{
  .proyectos-carousel
  {
    padding: 3rem 1rem;
  }

  .carousel__card
  {
    flex: 0 0 100%;
  }

  .carousel__btn
  {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel__card-image
  {
    height: 200px;
  }

  .areas-grid--three
  {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .area-card--large
  {
    padding: 1.5rem;
  }

  .area-card--large .area-card__icon
  {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px)
{
  .carousel__btn
  {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .carousel
  {
    gap: 0.5rem;
  }
}

/* Modal para Colofón */
.modal
{
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal__content
{
  background-color: #fffdf7;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal__close
{
  color: #718096;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease;
}

.modal__close:hover,
.modal__close:focus
{
  color: #1a202c;
}

.colofon__periodo
{
  font-style: italic;
  color: #718096;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.colofon__nota
{
  color: #4a5568;
  padding: 1rem;
  background-color: #f7fafc;
  border-left: 3px solid #d69e2e;
  margin: 1rem 0;
}

.colofon__seccion
{
  margin-bottom: 1.5rem;
}

.colofon__seccion h3
{
  font-size: 1.125rem;
  color: #2c5282;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.25rem;
}

.colofon__seccion ul
{
  list-style: none;
  padding-left: 0;
}

.colofon__seccion li
{
  padding: 0.25rem 0;
  color: #4a5568;
}

.colofon__seccion li strong
{
  color: #1a202c;
}

.btn--colofon
{
  background-color: #d69e2e;
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
}

.btn--colofon:hover
{
  background-color: #b7791f;
}

.loading
{
  text-align: center;
  color: #718096;
  padding: 2rem;
}

.error
{
  color: #c53030;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 768px)
{
  .modal__content
  {
    width: 95%;
    margin: 10% auto;
    padding: 1.5rem;
  }

  .btn--colofon
  {
    display: block;
    width: 100%;
    margin: 0.5rem 0 0 0;
  }
}

/*# sourceMappingURL=main.css.map */