/* 
 * Tema Rojo y Negro para Mundo de las Runas
 * Este archivo sobrescribe los colores amarillos con rojo y negro
 */

:root {
  /* Colores principales - cambiar amarillo por rojo */
  --bs-primary: #7D110D !important;
  --bs-warning: #7D110D !important;
  --bs-yellow: #7D110D !important;
  
  /* Links y hover */
  --bs-link-color: #B71C1C !important;
  --bs-link-hover-color: #D32F2F !important;
  
  /* Colores de fondo y texto */
  --bs-body-bg: #000000;
  --bs-body-color: #ffffff;
  
  /* Colores de bordes */
  --bs-border-color: #333333;
  
  /* Highlight color - cambiar amarillo por rojo claro */
  --bs-highlight-bg: #FFCDD2 !important;
}

/* Fondo principal del sitio */
body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Navbar - fondo negro con texto blanco */
.navbar {
  background-color: #000000 !important;
}

/* Solo aplicar a elementos que NO tengan colores específicos definidos */
.navbar-brand:not([style*="color"]),
.navbar-nav .nav-link:not([style*="color"]) {
  color: #ffffff !important;
}

.navbar-nav .nav-link:not([style*="color"]):hover,
.navbar-nav .nav-link:not([style*="color"]):focus {
  color: #B71C1C !important;
}

/* CORRECCIÓN DE COLORES AMARILLOS EN SERVICIOS */
/* Sobrescribir bg-primary (amarillo) con colores del tema */
.bg-primary {
  background-color: #7D110D !important;
}

/* Sobrescribir bg-warning (amarillo) con colores del tema */
.bg-warning {
  background-color: #673AB7 !important;
}

/* Texto primario - cambiar de amarillo a blanco/rojo */
.text-primary {
  color: #ffffff !important;
}

/* Botones primary - sin amarillo */
.btn-primary {
  background-color: #7D110D !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
}

/* Botones warning - sin amarillo */
.btn-warning {
  background-color: #673AB7 !important;
  border-color: #673AB7 !important;
  color: #ffffff !important;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #9C27B0 !important;
  border-color: #9C27B0 !important;
}

/* Portfolio captions con colores consistentes */
.portfolio-caption.bg-primary {
  background: linear-gradient(135deg, #7D110D 0%, #000000 100%) !important;
  border: 1px solid rgba(125, 17, 13, 0.3) !important;
}

.portfolio-caption.bg-warning {
  background: linear-gradient(135deg, #673AB7 0%, #000000 100%) !important;
  border: 1px solid rgba(103, 58, 183, 0.3) !important;
}

/* Dropdown menus */
.dropdown-menu {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
  z-index: 1050 !important;
}

.dropdown-item {
  color: #ffffff !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #7D110D !important;
  color: #ffffff !important;
}

/* Asegurar que los dropdowns se muestren correctamente */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.dropdown-toggle::after {
  border-top: 0.3em solid #ffffff;
  border-right: 0.25em solid transparent;
  border-bottom: 0;
  border-left: 0.25em solid transparent;
}

/* Navbar toggler */
.navbar-toggler {
  border-color: #7D110D !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Botones primarios - rojo */
.btn-primary {
  background-color: #7D110D !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  color: #ffffff !important;
}

/* Botones secundarios - negro con borde rojo */
.btn-secondary {
  background-color: #000000 !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #7D110D !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
}

/* Masthead - fondo negro */
header.masthead {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Portfolio hover - cambiar amarillo por rojo */
#portfolio .portfolio-item .portfolio-link .portfolio-hover,
#terapias .portfolio-item .portfolio-link .portfolio-hover,
#stavs .portfolio-item .portfolio-link .portfolio-hover {
  background: rgba(125, 17, 13, 0.9) !important;
}

/* Timeline - cambiar amarillo por rojo */
.timeline > li .timeline-image {
  background-color: #7D110D !important;
  border-color: #333333 !important;
}

.timeline:before {
  background-color: #333333 !important;
}

/* Cards y contenido - fondo oscuro con texto blanco */
.card {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
  color: #ffffff !important;
}

.card-header {
  background-color: #7D110D !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
}

/* Secciones del sitio */
section {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Títulos de sección */
.section-heading {
  color: #ffffff !important;
}

/* Modales */
.modal-content {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

.modal-header {
  background-color: #7D110D !important;
  border-color: #7D110D !important;
}

.modal-title {
  color: #ffffff !important;
}

/* Formularios */
.form-control {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
  color: #ffffff !important;
}

.form-control:focus {
  background-color: #1a1a1a !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(125, 17, 13, 0.25) !important;
}

.form-label {
  color: #ffffff !important;
}

/* Links generales */
a {
  color: #B71C1C !important;
}

a:hover {
  color: #D32F2F !important;
}

/* Footer si existe */
footer {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Texto en general */
p, h1, h2, h3, h4, h5, h6, span, div {
  color: inherit !important;
}

/* Para elementos con fondo blanco específico, cambiar a fondo oscuro */
.bg-white {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.bg-light {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

/* Para elementos que necesiten fondo blanco en temas oscuros */
.bg-white-for-dark {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Accordion/Collapse específico */
.accordion-item {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
}

.accordion-header .accordion-button {
  background-color: #7D110D !important;
  color: #ffffff !important;
  border-color: #7D110D !important;
}

.accordion-button:not(.collapsed) {
  background-color: #B71C1C !important;
  color: #ffffff !important;
}

.accordion-body {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

/* Tables */
.table {
  color: #ffffff !important;
}

.table-dark {
  --bs-table-bg: #1a1a1a !important;
  --bs-table-striped-bg: #000000 !important;
}

/* Alerts */
.alert-primary {
  background-color: #7D110D !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
}

.alert-warning {
  background-color: #7D110D !important;
  border-color: #7D110D !important;
  color: #ffffff !important;
}

/* Pentagon buttons específicos - asegurar que sean rojos */
.pentagon-button {
  background-color: #7D110D !important;
  color: #ffffff !important;
  border-color: #7D110D !important;
}

.pentagon-button:hover {
  background-color: #B71C1C !important;
  color: #ffffff !important;
  border-color: #B71C1C !important;
}

.pentagon-button::before,
.pentagon-button::after {
  border-color: #7D110D !important;
}

/* Video background container */
#video-background {
  background-color: #000000 !important;
}

/* Asegurar que el texto sea visible en fondos oscuros */
.text-white {
  color: #ffffff !important;
}

.text-dark {
  color: #ffffff !important;
}

/* Para preservar texto negro cuando sea necesario */
.text-black-preserved {
  color: #000000 !important;
}

/* ========================================
 * EFECTOS VISUALES MEJORADOS
 * ======================================== */

/* Animación de pulso para elementos decorativos */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* Animación de flotación */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}

/* Efecto hover para tarjetas de facultad */
.facultad-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 25px 50px rgba(125, 17, 13, 0.6) !important;
}

.facultad-card:hover .icon-container {
  transform: rotate(360deg) scale(1.1);
  transition: transform 0.6s ease;
}

.facultad-card:hover .position-absolute {
  opacity: 1 !important;
}

/* Efectos para tarjetas de servicios */
.service-card:hover {
  transform: translateY(-15px) scale(1.03) !important;
  box-shadow: 0 30px 60px rgba(125, 17, 13, 0.8) !important;
}

.service-card:hover img {
  transform: scale(1.1) !important;
}

.service-card:hover .position-absolute {
  opacity: 1 !important;
}

.service-card .badge {
  transition: all 0.3s ease;
}

.service-card:hover .badge {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Efectos para tarjetas de Stavs */
.stav-card:hover {
  transform: translateY(-15px) scale(1.03) rotate(1deg) !important;
  box-shadow: 0 35px 70px rgba(125, 17, 13, 0.9) !important;
}

.stav-card:hover img {
  transform: scale(1.15) rotate(-1deg) !important;
}

.stav-card:hover .position-absolute {
  opacity: 1 !important;
}

.stav-card .badge {
  transition: all 0.3s ease;
}

.stav-card:hover .badge {
  transform: scale(1.15) rotate(-2deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Runas flotantes animadas */
.stav-card::before {
  content: 'ᚠᚢᚦᚨᚱᚲᚷᚹ';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.1);
  z-index: 0;
  animation: float 8s infinite linear;
  pointer-events: none;
}

/* Color específico para texto púrpura */
.text-purple {
  color: #9C27B0 !important;
}

/* Efectos para tarjetas de productos de la tienda */
.product-card:hover {
  transform: translateY(-15px) scale(1.03) rotate(0.5deg) !important;
  box-shadow: 0 35px 70px rgba(139, 69, 19, 0.9) !important;
}

.product-card:hover img {
  transform: scale(1.1) !important;
}

.product-card .badge {
  transition: all 0.3s ease;
}

.product-card:hover .badge {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Efectos para carrusel de productos */
.product-card .carousel-control-prev,
.product-card .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
  opacity: 1;
}

.product-card .carousel-control-prev:hover,
.product-card .carousel-control-next:hover {
  background: rgba(139, 69, 19, 1) !important;
  transform: scale(1.1);
}

/* Efecto dorado para precios */
.price-section p {
  animation: goldShimmer 2s infinite alternate;
}

@keyframes goldShimmer {
  0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
  100% { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.5); }
}

/* Botones de compra con efecto especial */
.product-card .btn-advanced:hover {
  background: linear-gradient(135deg, #FFA000 0%, #FF8F00 100%) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 30px rgba(255, 160, 0, 0.6) !important;
}

/* Efecto de hover para botones principales */
.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(125, 17, 13, 0.4) !important;
}

/* Gradientes animados para títulos */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background: linear-gradient(-45deg, #ffffff, #ff6b6b, #ffffff, #B71C1C);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Efecto de partículas flotantes */
.floating-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(125, 17, 13, 0.6), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(183, 28, 28, 0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(125, 17, 13, 0.5), transparent);
  background-repeat: repeat;
  background-size: 200px 150px;
  animation: float 20s infinite linear;
  pointer-events: none;
}

/* Mejorar scrolling suave */
html {
  scroll-behavior: smooth;
}

/* Efectos de transición suaves */
* {
  transition: all 0.3s ease;
}

/* Sombras mejoradas para texto */
.text-shadow-strong {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(125, 17, 13, 0.6);
}

/* Cards con efecto glassmorphism */
.glass-effect {
  background: rgba(125, 17, 13, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Botones con efectos avanzados */
.btn-advanced {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-advanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-advanced:hover::before {
  left: 100%;
}

/* Efectos de loading/shimmer */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

/* Responsive mejorado para móviles */
@media (max-width: 768px) {
  .facultad-card {
    margin-bottom: 2rem;
  }
  
  .section-heading {
    font-size: 2rem !important;
  }
  
  .icon-container {
    width: 50px !important;
    height: 50px !important;
  }
  
  .icon-container i {
    font-size: 1.5rem !important;
  }
}
