/* ===== VARIABLES CSS ===== */
:root {
  /* Light Mode */
  --blanco: #FFFFFF;
  --negro: #222222;
  --oro: #D4AF37;
  --gris-100: #F8F8F8;
  --gris-200: #EEEEEE;
  --gris-300: #DDDDDD;
  --gris-600: #666666;
  --texto: #333333;
  --texto-claro: #555555;
  --borde: #E0E0E0;
  --azul: #34a9da;
  --footer-color: #7f001b;
  
  /* Dark Mode */
  --dm-bg: #1a1a1a;
  --dm-card: #2a2a2a;
  --dm-texto: #f0f0f0;
  --dm-borde: #444444;
  
  /* Fuente principal */
  --fuente-principal: 'Optima LT Pro', Optima, Segoe, "Segoe UI", Candara, Calibri, Arial, sans-serif;
}

/* ===== ESTILOS BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fuente-principal);
  color: var(--texto);
  line-height: 1.6;
  background-color: var(--blanco);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.dark-mode) {
  background-color: var(--blanco);
  color: var(--texto);
}

h1, h2, h3, h4 {
  font-family: var(--fuente-principal);
  color: var(--negro);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ESTRUCTURA PRINCIPAL ===== */
.header {
  height: 100vh;
  background: url('images/portada.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo img {
  width: 300px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ===== BARRA DE NAVEGACIÓN PRINCIPAL ===== (MODIFICADO) */
.main-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--azul);
  padding: 0.01rem 15px; /* Padding reducido para más espacio */
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px; /* Altura automática */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 4px; /* Espacio mínimo entre logo y texto */
  z-index: 1001;
}

.logo-nav {
  width: 250px; /* Tamaño mínimo para mantener legibilidad */
  height: auto;
  filter: drop-shadow(0 0.5px 1px rgba(0,0,0,0.1));
}

.nav-title {
  font-family: var(--fuente-principal);
  font-weight: 1000;
  color: var(--blanco);
  margin: 0;
  font-size: 0.9rem; /* Tamaño mínimo legible */
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* NUEVO: Botón de hamburguesa para móviles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
}

.main-nav-menu {
  display: flex;
  justify-content: flex-end; /* Alineado a la derecha */
  list-style: none;
  gap: 0.70rem; /* Espaciado mínimo entre elementos */
  margin: 0;
  padding: 0;
}

.main-nav-menu li a {
  color: var(--blanco);
  font-size: 0.90rem; /* Tamaño reducido para más espacio */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  padding: 0.3rem 0.5rem; /* Padding reducido */
  border-radius: 2px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ===== ESTILOS PARA MENÚS DESPLEGABLES ===== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--azul);
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(252, 251, 251, 0.2);
  z-index: 1001;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--blanco) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  text-align: left;
  white-space: normal;
}

.dropdown-content a:hover {
  background-color: var(--gris-200);
  color: var(--oro) !important;
}

/* En modo oscuro */
.dark-mode .dropdown-content {
  background-color: var(--dm-card);
}

.dark-mode .dropdown-content a {
  color: var(--dm-texto) !important;
}

.dark-mode .dropdown-content a:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--oro) !important;
}

/* ===== RESPONSIVE - CORRECCIONES PRINCIPALES ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Mostrar botón hamburguesa en móviles */
  }
  
  .nav-title {
    display: none; /* Ocultar título en móviles para más espacio */
  }
  
  .logo-nav {
    width: 75px; /* Logo más pequeño en móviles */
  }
  
  .main-nav-menu {
    position: fixed;
    top: 110px;
    left: 0;
    width: 100%;
    background-color: var(--azul);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .main-nav-menu.active {
    max-height: 500px; /* Altura suficiente para mostrar el menú */
  }
  
  .main-nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .main-nav-menu li a {
    display: block;
    padding: 1rem;
    font-size: 1rem;
  }
  
  .dropdown > a::after {
    content: '▼';
    margin-left: 5px;
    font-size: 0.7rem;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  .dropdown-content li {
    background-color: rgba(0,0,0,0.1);
  }
  
  .theme-switch-wrapper {
    margin-left: auto;
    margin-right: 15px;
  }
}

/* ===== BARRA DE NAVEGACIÓN SECUNDARIA ===== */

.secondary-nav {
  background-color: var(--azul);
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--oro);
  z-index: 999;
}

.secondary-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribuye el espacio entre elementos */
}

.secondary-logo {
  display: flex;
  align-items: center;
}

.menu-wrapper { /* Nuevo contenedor para centrar el menú */
  display: flex;
  justify-content: center;
  flex-grow: 1; /* Ocupa todo el espacio disponible */
}

.secondary-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

/* Los demás estilos se mantienen igual */
.secondary-logo-img {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

.secondary-logo-img:hover {
  transform: scale(1.05);
}

.secondary-nav-menu li a {
  color: var(--blanco);
  font-family: var(--fuente-principal);
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.secondary-nav-menu li a:hover {
  color: var(--oro);
}

.secondary-nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--oro);
  transition: width 0.3s ease;
}

.secondary-nav-menu li a:hover::after {
  width: 100%;
}

/* ===== SECCIONES ===== */
.content-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  background-color: var(--gris-100);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  border: 1px solid var(--borde);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--oro);
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== CALENDARIO ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.calendar-item {
  background-color: var(--blanco);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--borde);
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-item:hover {
  border-color: var(--oro);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.calendar-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.calendar-item.active .calendar-details {
  max-height: 500px;
  margin-top: 1rem;
}

/* ===== FORMULARIO ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--borde);
  border-radius: 4px;
  font-family: var(--fuente-principal);
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: var(--oro);
  color: var(--negro);
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: var(--fuente-principal);
  font-size: 1rem;
}

.contact-form button:hover {
  background-color: var(--negro);
  color: var(--oro);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--footer-color);
  color: var(--blanco);
  padding: 3rem 1rem;
  text-align: center;
  font-family: var(--fuente-principal);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links img {
  width: 30px;
  height: 30px;
  filter: grayscale(100%) brightness(150%);
  transition: all 0.3s ease;
}

.social-links img:hover {
  filter: brightness(100%) saturate(100%) hue-rotate(0deg);
  transform: scale(1.15);
}

/* ===== DARK MODE ===== */
body.dark-mode {
  background-color: var(--dm-bg);
  color: var(--dm-texto);
}

.dark-mode .content-section {
  background-color: var(--dm-card);
  border-color: var(--dm-borde);
  color: var(--dm-texto);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
  color: var(--dm-texto);
}

/* MODIFICACIÓN: Barras de navegación oscuras en modo oscuro */
.dark-mode .main-nav {
  background-color: var(--dm-card) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-mode .main-nav a {
  color: var(--dm-texto);
}

.dark-mode .logo-container .nav-title {
  color: var(--dm-texto);
}

/* MODIFICACIÓN: Barra secundaria oscura en modo oscuro */
.dark-mode .secondary-nav {
  background-color: var(--dm-card) !important;
  border-top-color: var(--oro);
}

.dark-mode .secondary-nav-menu li a {
  color: var(--dm-texto);
}

.dark-mode .calendar-item {
  background-color: var(--dm-card);
  border-color: var(--dm-borde);
}

.dark-mode .theme-switch-wrapper span {
  color: var(--dm-texto);
}

.dark-mode footer {
  background-color: #50000e;
}

/* ===== SWITCH DE TEMA ===== */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  width: 50px;
  position: relative;
}

.theme-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--oro);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .logo-container {
    gap: 8px;
  }
  
  .secondary-nav-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .secondary-logo {
    margin-bottom: 1rem;
    margin-right: 0;
    justify-content: center;
  }
  
  .secondary-nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .secondary-nav-menu li a {
    font-size: 1rem;
  }
  
  .content-section {
    padding: 3rem 1.5rem;
    margin: 2rem auto;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  
  .header {
    height: 80vh;
  }

  .main-nav {
    padding: 0.7rem 15px; /* Ajuste para móviles */
  }
}

/* ===== BARRA DE NAVEGACIÓN SECUNDARIA CENTRADA ===== */

.secondary-nav {
  background-color: var(--azul);
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--oro);
  z-index: 999;
}

.secondary-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.secondary-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  text-align: center;
}

.secondary-logo-img {
  height: 70px;
  width: auto;
  margin-bottom: 0.5rem;
}

.secondary-logo h2 {
  font-family: var(--fuente-principal);
  font-size: 1.5rem;
  color: var(--blanco);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.secondary-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

/* Dark Mode */
.dark-mode .secondary-logo h2 {
  color: var(--dm-texto);
}

/* Responsive */
@media (max-width: 768px) {
  .secondary-logo-img {
    height: 50px;
  }
  
  .secondary-logo h2 {
    font-size: 1.2rem;
  }
  
  .secondary-nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ===== ESTILOS PARA HISTORIA.HTML ===== */

.historia-detallada {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  color: var(--texto);
  font-family: var(--fuente-principal);
}

.historia-section {
  margin-bottom: 3rem;
  width: 100%;
}

.historia-section h2 {
  font-family: var(--fuente-principal);
  color: var(--negro);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--oro);
}

.historia-section p {
  margin-bottom: 1.2rem;
  text-align: justify;
  line-height: 1.7;
}

.highlight-quote {
  background-color: var(--gris-200);
  border-left: 4px solid var(--oro);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--texto);
  font-size: 1.1rem;
  line-height: 1.7;
  font-family: var(--fuente-principal);
}

.image-with-caption {
  margin: 2rem 0;
  text-align: center;
}

.image-with-caption img {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

.image-with-caption figcaption {
  font-size: 0.9rem;
  color: var(--gris-600);
  margin-top: 0.5rem;
  font-style: italic;
  font-family: var(--fuente-principal);
}

.historia-section ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.historia-section li {
  margin-bottom: 0.8rem;
  font-family: var(--fuente-principal);
}

/* MODIFICACIÓN: Barra de navegación de historia oscura en modo oscuro */

.dark-mode .nav-historia {
    background-color: var(--dm-card) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-mode .nav-historia .nav-title {
    color: var(--dm-texto);
}

/* Dark Mode */
.dark-mode .historia-detallada {
  color: var(--dm-texto);
}

.dark-mode .historia-section h2 {
  color: var(--dm-texto);
}

.dark-mode .highlight-quote {
  background-color: var(--dm-card);
  color: var(--dm-texto);
  border-left-color: var(--oro);
}

.dark-mode .image-with-caption figcaption {
  color: var(--gris-300);
}

.espaciado {
  margin-bottom: 2em;
  line-height: 1.8;
}

/* Estilos para las imágenes de fondo transparentes */
.content-section {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    cursor: pointer;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* Nivel de transparencia */
    z-index: 1;
    transition: opacity 0.3s ease;
}

.section-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

/* Efecto hover para la imagen de fondo */
.content-section:hover .background-image {
    opacity: 0.4;
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #8c1d40; /* Color vino tinto, similar al footer en modo claro */
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #6b1630; /* Un tono más oscuro para el hover */
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(1px);
}

/* Estilos para el modo oscuro */
.dark-mode .back-to-top {
    background-color: #4a90e2; /* Azul en modo oscuro */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dark-mode .back-to-top:hover {
    background-color: #3a70b0; /* Azul más oscuro en hover para modo oscuro */
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background-color: var(--blanco);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid var(--oro);
}

.contact-info h3 {
  font-size: 1.4rem;
  color: var(--negro);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gris-300);
}

.contact-info p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.contact-info strong {
  color: var(--negro);
}

.map-container {
  flex: 1.5;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.map-container:hover {
  transform: translateY(-5px);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
}

/* Modo oscuro para sección de contacto */
.dark-mode .contact-info {
  background-color: var(--dm-card);
  border-left-color: var(--oro);
}

.dark-mode .contact-info h3 {
  color: var(--oro);
  border-bottom-color: var(--dm-borde);
}

.dark-mode .contact-info strong {
  color: var(--oro);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-info,
  .map-container {
    min-width: 100%;
  }
  
  .contact-info {
    order: 2;
  }
  
  .map-container {
    order: 1;
  }
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.grid-section {
  text-align: center;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.grid-section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.grid-button {
  display: inline-block;
  background-color: #7f001b;
  color: white;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.grid-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  background-color: #9a0021;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.dark-mode .grid-section {
  background-color: var(--dm-card);
  border: 1px solid var(--dm-borde);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .grid-section p {
  color: var(--dm-texto);
}

.dark-mode .grid-button {
  background-color: #50000e;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dark-mode .grid-button:hover {
  background-color: #6b0014;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.grid-section {
  text-align: center;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.grid-section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--texto);
}

.grid-button {
  display: inline-block;
  background-color: #7f001b;
  color: white;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.grid-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  background-color: #9a0021;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}