:root {
  --primary-color: #0e4683;
  --secondary-color: #cf2a2d;
  --accent-color: #c12d37;
  --light-color: #ecf0f1;
  --dark-color: #000000;
  --fourth-color: #4e416f;
  --fifth-color: #004e8e;
  --sixth-color: #d4323c;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --gray-color: #6c757d;
  --light-gray: #f8f9fa;
  --border-radius: 10px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  color: var(--dark-color);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.usam-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--fifth-color) 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.usam-logo {
  background: white;
  color: var(--primary-color);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.usam-logo img{
  width: 60px;
  height: 60px;
  display: flex;
}

.header-title h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

.current-date {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

/* Normativa */
.normativa-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.normativa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.normativa-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.normativa-actions {
  display: flex;
  gap: 15px;
}

.btn-read-more, .btn-download {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-read-more {
  background: var(--light-color);
  color: var(--primary-color);
}

.btn-download {
  background: var(--primary-color);
  color: white;
}

.btn-read-more:hover {
  background: var(--primary-color);
  color: white;
}

.btn-download:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.normativa-content {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-top: 20px;
  border-left: 5px solid var(--primary-color);
}

.normativa-list ul {
  list-style-type: none;
}

.normativa-list li {
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
  position: relative;
  padding-left: 25px;
}

.normativa-list li:before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Opciones de reserva */
.reservation-options {
  margin-bottom: 40px;
}

.reservation-options h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.option-card {
  background: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.option-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--fifth-color) 100%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.option-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.option-content p {
  color: var(--gray-color);
  margin-bottom: 10px;
}

.option-details {
  display: inline-block;
  background: var(--light-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Ver reservas */
.view-reservations {
  margin-bottom: 40px;
}

.view-reservations h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.view-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.view-btn {
  background: white;
  border: 2px solid var(--light-color);
  border-radius: var(--border-radius);
  padding: 15px 25px;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1rem;
}

.view-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Calendario */
.calendar-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
}

.calendar-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.calendar-section h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1rem;
}

.calendar-container {
  max-width: 400px;
}

.date-picker {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--light-color);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  color: var(--primary-color);
  background: white;
  cursor: pointer;
}

.date-picker:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
.usam-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--fifth-color) 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-color);
}

.footer-copyright {
  text-align: right;
  color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-section {
    flex-direction: column;
    text-align: center;
  }
  
  .header-title h1 {
    font-size: 1.8rem;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .normativa-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .normativa-actions {
    width: 100%;
  }
  
  .btn-read-more, .btn-download {
    flex: 1;
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
  
  .view-buttons {
    flex-direction: column;
  }
  
  .view-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mejorar botones principales */
.option-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.02);
}

.option-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 15px rgba(207, 42, 45, 0.3);
}

/* Mejorar botones de vista */
.view-btn {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.view-btn:hover::before {
    left: 100%;
}

.view-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--fifth-color) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(14, 70, 131, 0.2);
}

/* Mejorar calendario */
.calendar-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
}

.date-picker {
    background: white;
    border: 2px solid #dee2e6;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.date-picker:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 70, 131, 0.1);
}

.date-picker:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 70, 131, 0.2);
}

/* Mejorar normativa */
.normativa-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
}

.normativa-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.normativa-list li:hover {
    background: rgba(14, 70, 131, 0.05);
    padding-left: 35px;
}

.normativa-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.normativa-list li:before {
    content: counter(list-item);
    counter-increment: list-item;
}

.normativa-list {
    counter-reset: list-item;
}

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeInUp 0.5s ease forwards;
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.3s; }
.container > *:nth-child(4) { animation-delay: 0.4s; }
.container > *:nth-child(5) { animation-delay: 0.5s; }

/* Responsive mejorado */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-lg {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .elemento-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .elemento-count {
        align-self: flex-start;
    }
    
    .usam-header {
        padding: 20px;
    }
    
    .header-title h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .usam-header {
        padding: 15px;
    }
    
    .normativa-section,
    .reservation-options,
    .view-reservations,
    .calendar-section {
        padding: 20px;
    }
    
    .option-card {
        padding: 20px;
    }
}