/* SISTEMA DE DISEÑO GLOBAL - AMELIA BELLA */
:root {
  --color-bg: #FDFBF7;
  --color-bg-alt: #F5EFEB;
  --color-primary: #2C1A12;
  --color-primary-light: #4A2E20;
  --color-accent: #D4A373;
  --color-accent-dark: #C58B58;
  --color-terracotta: #8C5A3C;
  --color-text: #3E2F28;
  --color-text-muted: #6C5A51;
  --color-white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(44, 26, 18, 0.04);
  --shadow-md: 0 10px 30px rgba(44, 26, 18, 0.06);
  --shadow-lg: 0 20px 50px rgba(44, 26, 18, 0.1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ACCESIBILIDAD */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 1rem 2rem;
  z-index: 9999;
  transition: top 0.2s ease;
  font-weight: 600;
  text-decoration: none;
  border-bottom-right-radius: 8px;
}
.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 4px;
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* CONTENEDOR */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* HEADER STICKY */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 26, 18, 0.05);
}

.header-scrolled {
  padding: 0.6rem 0;
  background-color: rgba(44, 26, 18, 0.95);
  border-bottom-color: rgba(212, 163, 115, 0.2);
}

.header-scrolled .logo, 
.header-scrolled .nav-link,
.header-scrolled .mobile-menu-btn {
  color: var(--color-bg);
}

.header-scrolled .nav-link::after {
  background-color: var(--color-accent);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  transition: var(--transition-smooth);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.logo span {
  color: var(--color-accent-dark);
  font-weight: 400;
  font-style: italic;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-dark);
}
.nav-link.active::after {
  width: 100%;
  background-color: var(--color-accent-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* MENU MOVIL EXPANDIDO */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateY(-120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}
.mobile-nav.active {
  transform: translateY(0);
}
.mobile-nav-link {
  color: var(--color-bg);
  font-size: 1.4rem;
  font-family: var(--font-serif);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-accent);
}

/* BANNER DE PÁGINA INTERNA (HERO ALTERNATIVO) */
.inner-hero {
  position: relative;
  padding: 10rem 0 6rem;
  background: linear-gradient(rgba(44, 26, 18, 0.6), rgba(44, 26, 18, 0.8)),
              url('https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&q=80&w=1800') no-repeat center center/cover;
  color: var(--color-white);
  text-align: center;
}
.inner-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 0.8rem;
}
.inner-hero p {
  color: rgba(253, 251, 247, 0.9);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* HERO PRINCIPAL (INICIO) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: linear-gradient(rgba(44, 26, 18, 0.4), rgba(44, 26, 18, 0.6)), 
              url('https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&q=80&w=1800') no-repeat center center/cover;
  color: var(--color-white);
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-description {
  color: rgba(253, 251, 247, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.4s ease forwards;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.6s ease forwards;
}

.hero-buttons .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}
.hero-buttons .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECCIONES */
.section {
  padding: 6rem 0;
}
.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-dark);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* GRID Y TARJETAS COMUNES */
.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(44, 26, 18, 0.03);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 163, 115, 0.3);
}

.card-img-wrapper {
  height: 250px;
  overflow: hidden;
  position: relative;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.card:hover .card-img {
  transform: scale(1.06);
}

.card-content {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  color: var(--color-text-muted);
}

.card-meta {
  background-color: var(--color-bg-alt);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--color-primary);
  border-left: 3px solid var(--color-accent-dark);
}

/* HISTORIA / NOSOTROS */
.history-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 163, 115, 0.2);
}
.history-badge-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.history-badge-desc {
  font-size: 0.85rem;
  color: var(--color-bg-alt);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
  display: block;
}

.history-image-wrapper {
  position: relative;
}
.history-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 500px;
  display: block;
}

/* GALERÍA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 26, 18, 0.8), rgba(44, 26, 18, 0.2));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item-title {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}
.gallery-item-desc {
  color: var(--color-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* LIGHTBOX DE GALERÍA */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 26, 18, 0.95);
  backdrop-filter: blur(8px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-bg);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(253, 251, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.lightbox-close:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}
.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 163, 115, 0.2);
}
.lightbox-caption {
  margin-top: 1rem;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-align: center;
}

/* PREGUNTAS FRECUENTES (FAQs) */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(44, 26, 18, 0.08);
  padding-bottom: 1rem;
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}
.faq-question:hover {
  color: var(--color-accent-dark);
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  transition: var(--transition-smooth);
}
.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  transition: var(--transition-smooth);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  padding-bottom: 1rem;
}
.faq-item.active .faq-answer {
  max-height: 500px; /* Soporta parrafos mas extensos */
}
.faq-item.active .faq-icon {
  background-color: var(--color-primary);
}
.faq-item.active .faq-icon svg {
  stroke: var(--color-bg);
  transform: rotate(180deg);
}

/* FILTROS / BÚSQUEDAS (PRODUCTOS, BLOG, FAQS) */
.filter-search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 26, 18, 0.04);
}
.search-wrapper {
  position: relative;
  max-width: 400px;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 0.8rem 1.2rem 0.8rem 2.8rem;
  border-radius: 50px;
  border: 1px solid rgba(44, 26, 18, 0.15);
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.search-input:focus {
  border-color: var(--color-accent-dark);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.filter-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn-filter {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}
.btn-filter:hover,
.btn-filter.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* BLOG */
.blog-layout {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr;
  gap: 3.5rem;
}
.blog-sidebar {
  background-color: var(--color-white);
  padding: 2.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 26, 18, 0.04);
  height: fit-content;
}
.sidebar-widget {
  margin-bottom: 2.5rem;
}
.sidebar-widget:last-child {
  margin-bottom: 0;
}
.widget-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.4rem;
}
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.category-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
}
.category-item a:hover {
  color: var(--color-accent-dark);
}

/* DETALLE DEL ARTÍCULO (Lector del Blog) */
.article-detail {
  background-color: var(--color-white);
  padding: 3.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 26, 18, 0.04);
}
.article-header {
  margin-bottom: 2.5rem;
}
.article-meta-info {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.article-title-detail {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.article-img-detail {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}
.article-body-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}
.article-body-content h2,
.article-body-content h3 {
  margin: 2.5rem 0 1rem;
}
.article-body-content p {
  margin-bottom: 1.5rem;
}
.article-body-content ul {
  margin-left: 2rem;
  margin-bottom: 1.8rem;
}
.article-body-content li {
  margin-bottom: 0.5rem;
}
.article-body-content blockquote {
  border-left: 4px solid var(--color-accent-dark);
  padding-left: 1.5rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-primary-light);
  margin: 2rem 0;
  font-size: 1.15rem;
}

/* DETALLE LEGAL / TRANSPARENCIA */
.legal-content {
  background-color: var(--color-white);
  padding: 3.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 26, 18, 0.03);
  max-width: 900px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 1rem;
}
.legal-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
}
.legal-content ul,
.legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
}

/* UBICACIÓN / CONTACTO */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}
.contact-card-info {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(44, 26, 18, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-group {
  margin-bottom: 2rem;
}
.contact-group:last-child {
  margin-bottom: 0;
}
.contact-lbl {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-lbl svg {
  color: var(--color-accent-dark);
}
.contact-val {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.contact-val a {
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 600;
}

/* FOOTER */
.footer {
  background-color: var(--color-primary);
  color: var(--color-bg-alt);
  padding: 5rem 0 2rem;
  border-top: 3px solid var(--color-accent);
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand .logo {
  color: var(--color-bg);
  margin-bottom: 1.2rem;
}
.footer-brand p {
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(253, 251, 247, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  transition: var(--transition-smooth);
  border: 1px solid rgba(212, 163, 115, 0.2);
}
.social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  color: rgba(253, 251, 247, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: rgba(253, 251, 247, 0.75);
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(253, 251, 247, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(253, 251, 247, 0.5);
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}
.footer-legal-links a {
  color: rgba(253, 251, 247, 0.5);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-legal-links a:hover {
  color: var(--color-accent);
}

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVIDAD */
@media (max-width: 1024px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .history-img {
    height: 400px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-width: 100%;
  }
  .header-inner {
    height: 60px;
  }
  .mobile-nav {
    top: 60px;
    height: calc(100vh - 60px);
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero {
    padding-top: 80px;
    text-align: center;
    min-height: 80vh;
  }
  .hero-buttons {
    justify-content: center;
  }
  .history-badge {
    bottom: -10px;
    left: 10px;
    right: 10px;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
