:root {
  --primary: #7a2d2d;
  --secondary: #2f5d50;
  --background: #f5f1e8;
  --text: #2b2b2b;
}

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

.textura_papel{
  background-image: url('../images/fondo.jpg');
  background-color: rgba(255, 255, 255, 0.3);
  background-blend-mode: lighten;
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  /* Imagen de fondo que cubre todo el body */
  background-image: url('../images/fondo.jpg');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #f4f1ea; /* Un color crema de fondo como respaldo */
  /* Asegurar que cubra toda la altura */
  min-height: 100vh;
  margin: 0;
}

/* Navbar */
.navbar {
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin-left: 1.2rem;
  color: var(--text) !important;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.hero-overlay h2 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Curva decorativa inferior del hero */
.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #f5f1e8;
  clip-path: ellipse(100% 100% at 50% 100%);
  z-index: 3;
}

/* Buttons */
.btn-danger {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-danger:hover {
  background-color: #5a1f1f !important;
  border-color: #5a1f1f !important;
}

.btn-success {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.btn-success:hover {
  background-color: #1f3d2f !important;
  border-color: #1f3d2f !important;
}

/* Cards */
.card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 0.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.event-card .card-body {
  padding: 1.5rem;
}

.event-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

/* Sections */
section {
  padding: 3rem 0;
}

section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  margin-top: 3rem;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-overlay h2 {
    font-size: 1.8rem !important;
  }

  .navbar-nav .nav-link {
    margin-left: 0 !important;
    padding: 0.5rem 0;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
  }
}

/* Dashboard Sidebar */
.sidebar-dashboard {
  background: linear-gradient(#46685c, #2f4f45);
  color: white;
  min-height: 100%;
}

.sidebar-dashboard .nav-link {
  display: block;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  color: white !important;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background 0.3s ease;
}

.sidebar-dashboard .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-dashboard .nav-link.active {
  background: var(--primary);
  font-weight: 600;
}


