/* ============================================
   ESTILOS GENERALES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* ============================================
   PERSONALIZACIONES BOOTSTRAP
   ============================================ */

/* BOTONES */
.btn-primary {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3) !important;
  background: linear-gradient(135deg, rgb(116.5664556962, 57.8639240506, 15.9335443038), rgb(187.6875, 93.84375, 26.8125)) !important;
}

.btn-primary:active,
.btn-primary:focus {
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2) !important;
  transform: translateY(0) !important;
}

/* FORMULARIOS */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 5px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease !important;
  font-family: "Lato", sans-serif !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #D2691E !important;
  box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.25) !important;
  background-color: #fff !important;
}

.form-control:disabled,
.form-select:disabled {
  background-color: #f0f0f0 !important;
  opacity: 0.6 !important;
}

.form-control::-moz-placeholder {
  color: #999 !important;
  opacity: 0.7 !important;
}

.form-control::placeholder {
  color: #999 !important;
  opacity: 0.7 !important;
}

/* CARDS */
.card {
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

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

.card .card-header {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
  color: white !important;
  border: none !important;
  padding: 1.5rem !important;
  font-weight: 600 !important;
}

.card .card-body {
  padding: 1.5rem !important;
}

.card .card-footer {
  background-color: #f9f9f9 !important;
  border-top: 1px solid #E0E0E0 !important;
}

/* ALERTAS */
.alert {
  border: none !important;
  border-radius: 8px !important;
}

.alert.alert-success {
  background: linear-gradient(135deg, #4CAF50, #45a049) !important;
  color: white !important;
}

.alert.alert-danger {
  background: linear-gradient(135deg, #f44336, #e53935) !important;
  color: white !important;
}

.alert.alert-warning {
  background: linear-gradient(135deg, #ff9800, #f57c00) !important;
  color: white !important;
}

.alert.alert-info {
  background: linear-gradient(135deg, #2196F3, #1976D2) !important;
  color: white !important;
}

/* BADGES */
.badge {
  padding: 0.5rem 0.75rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

.badge.badge-primary {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
}

/* NAVEGACIÓN TABS */
.nav-tabs {
  border-bottom: 2px solid #E0E0E0 !important;
}

.nav-tabs .nav-link {
  color: #333333 !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.nav-tabs .nav-link:hover {
  color: #D2691E !important;
  border-bottom: 3px solid #D2691E !important;
}

.nav-tabs .nav-link.active {
  color: #8B4513 !important;
  border-bottom: 3px solid #8B4513 !important;
  background: transparent !important;
}

/* TABLAS */
.table {
  border-collapse: collapse !important;
}

.table thead {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
  color: white !important;
}

.table thead th {
  border: none !important;
  padding: 1rem !important;
  font-weight: 600 !important;
}

.table tbody tr {
  transition: all 0.3s ease !important;
}

.table tbody tr:hover {
  background-color: rgba(139, 69, 19, 0.05) !important;
}

.table tbody tr td {
  padding: 0.75rem 1rem !important;
  border-color: #E0E0E0 !important;
}

/* PAGINACIÓN */
.pagination .page-link {
  color: #8B4513 !important;
  border-color: #E0E0E0 !important;
  transition: all 0.3s ease !important;
}

.pagination .page-link:hover {
  background-color: #ECF0F1 !important;
  color: #D2691E !important;
}

.pagination .page-link.active {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
  border-color: transparent !important;
}

/* DROPDOWNS */
.dropdown-menu {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
}

.dropdown-menu .dropdown-item {
  transition: all 0.3s ease !important;
}

.dropdown-menu .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(210, 105, 30, 0.1)) !important;
  color: #D2691E !important;
}

.dropdown-menu .dropdown-item.active {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
}

/* MODALES */
.modal-content {
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.modal-content .modal-header {
  background: linear-gradient(135deg, #8B4513, #D2691E) !important;
  color: white !important;
  border: none !important;
}

.modal-content .modal-header .btn-close {
  filter: brightness(0) invert(1) !important;
}

.modal-content .modal-footer {
  border-top: 1px solid #E0E0E0 !important;
}

/* ============================================
   ESTILOS PERSONALIZADOS DEL SITIO
   ============================================ */

/* NAVBAR */
.navbar-custom {
  background: rgba(139, 69, 19, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #FFD700 !important;
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-item {
  height: 100vh;
}

.carousel-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 100;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInDown 1s ease-out;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn-custom {
  background: linear-gradient(135deg, #8B4513, #D2691E);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
  color: white;
}

/* SERVICIOS SECTION */
.servicios-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #8B4513;
}

.card-servicio {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.card-servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-imagen {
  height: 250px;
  overflow: hidden;
}

.card-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-servicio:hover .card-imagen img {
  transform: scale(1.1);
}

.card-servicio .card-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B4513;
  padding: 1.5rem 1.5rem 1rem;
  margin: 0;
}

.card-servicio .card-texto {
  padding: 0 1.5rem 1rem;
  color: #666;
  line-height: 1.6;
}

.btn-leer-mas {
  display: inline-block;
  padding: 0.5rem 1.5rem 1.5rem;
  color: #D2691E;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-leer-mas:hover {
  color: #8B4513;
  transform: translateX(5px);
}

/* GALERIA SECTION */
.galeria-section {
  padding: 5rem 0;
  background: white;
}

.galeria-panel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 1rem;
  position: relative;
}

.galeria-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.galeria-imagen {
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.galeria-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-panel:hover .galeria-imagen img {
  transform: scale(1.15);
}

.galeria-titulo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #8B4513;
  text-align: center;
  margin: 0;
}

.galeria-link {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: #8B4513;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
}

.galeria-panel:hover .galeria-link {
  opacity: 1;
}

.galeria-link:hover {
  background: #8B4513;
  color: white;
  transform: scale(1.1);
}

/* CONTACTO SECTION */
.contacto-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  color: white;
}

.contacto-section .section-title {
  color: white;
}

.info-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: #FFD700;
  margin-right: 1rem;
  width: 30px;
}

.info-item p {
  margin: 0;
  line-height: 1.6;
}

.redes-sociales {
  margin-top: 2rem;
}

.redes-sociales h5 {
  margin-bottom: 1rem;
  color: #FFD700;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: white;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #FFD700;
  color: #2C3E50;
  transform: translateY(-3px);
}

.mapa-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.mapa-container iframe {
  display: block;
}

/* REGISTRO SECTION */
.registro-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.form-registro {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-control-custom {
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  border-color: #D2691E;
  box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.25);
  outline: none;
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* FOOTER */
.footer-section {
  background: #1a1a1a;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-section p {
  margin: 0.5rem 0;
}

.footer-section i {
  color: #FF6B6B;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .card-servicio .card-titulo {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .btn-custom {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}