/* Custom Dark Theme - Radio IGM Entertainment */

:root {
  --bg-dark-base: #0a0a0c;
  --bg-dark-card: rgba(18, 18, 22, 0.75);
  --bg-dark-card-hover: rgba(26, 26, 32, 0.85);
  --primary-glow: #ff2a5f;
  --primary-glow-rgb: 255, 42, 95;
  --accent-cyan: #00f0ff;
  --text-primary: #f3f3f5;
  --text-muted: #9fa0a6;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 42, 95, 0.3);
}

/* Reset / Base styles */
body {
  background-color: var(--bg-dark-base) !important;
  color: var(--text-primary) !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 95, 0.3);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 42, 95, 0.6);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Navbar Modernization */
#mainNav {
  background-color: rgba(10, 10, 12, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease-in-out;
}

#mainNav.navbar-shrink {
  background-color: rgba(10, 10, 12, 0.95) !important;
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#mainNav .navbar-brand {
  font-weight: 700;
  color: var(--text-primary) !important;
  text-shadow: 0 0 10px rgba(255, 42, 95, 0.5);
}

#mainNav .navbar-brand img {
  height: 45px;
  filter: drop-shadow(0 0 8px rgba(255, 42, 95, 0.6));
  transition: transform 0.3s ease;
}

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

#mainNav .navbar-nav .nav-item .nav-link {
  color: var(--text-primary) !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.75rem 1rem;
  transition: color 0.25s ease;
  position: relative;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--primary-glow) !important;
}

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

#mainNav .navbar-nav .nav-item .nav-link:hover::after,
#mainNav .navbar-nav .nav-item .nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* Masthead styling */
header.masthead {
  background-image: linear-gradient(rgba(10, 10, 12, 0.6), rgba(10, 10, 12, 0.9)), url("../assets/img/header-bg.jpg") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 15rem;
  padding-bottom: 12rem;
}

header.masthead .masthead-subheading {
  font-family: "Droid Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 1.5rem !important;
  font-style: italic;
  line-height: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-muted);
}

header.masthead .masthead-heading {
  font-size: 3.25rem !important;
  font-weight: 700;
  line-height: 3.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(255, 42, 95, 0.6);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-glow) !important;
  border-color: var(--primary-glow) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.4);
  transition: all 0.3s ease-in-out !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #ff0d48 !important;
  border-color: #ff0d48 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 95, 0.6);
}

/* Page Sections general settings */
.page-section {
  padding: 6rem 0;
  background-color: var(--bg-dark-base);
}

.page-section.bg-light {
  background-color: #0f0f13 !important; /* Reemplazo de bg-light para tema oscuro */
}

.section-heading {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 42, 95, 0.3);
}

.section-subheading {
  margin-bottom: 4rem;
}

/* Glassmorphism Cards & Containers */
.col-md-4 p {
  line-height: 1.6;
}

/* Portfolio Gallery styling */
.portfolio-item {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(255, 42, 95, 0.15);
}

.portfolio-item .portfolio-link {
  position: relative;
  display: block;
}

.portfolio-item .portfolio-caption {
  padding: 1.5rem;
  text-align: center;
  background-color: rgba(18, 18, 22, 0.95);
  border-top: 1px solid var(--border-glass);
}

.portfolio-item .portfolio-caption-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.portfolio-item .portfolio-caption-subheading {
  font-size: 0.9rem;
  font-style: italic;
}

.portfolio-hover {
  background-color: rgba(255, 42, 95, 0.85) !important;
  transition: all ease 0.5s;
}

/* Timeline/About styling */
.timeline::before {
  background-color: rgba(255, 42, 95, 0.3) !important;
}

.timeline > li .timeline-image {
  background-color: var(--primary-glow) !important;
  border: 7px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.5);
  z-index: 10;
}

.timeline > li .timeline-image h4 {
  font-size: 0.85rem !important;
  line-height: 1.2rem;
  margin-top: 15px;
  color: #fff !important;
}

.timeline > li .timeline-panel {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timeline > li:hover .timeline-panel {
  border-color: var(--border-glass-hover);
  box-shadow: 0 6px 20px rgba(255, 42, 95, 0.15);
}

.timeline > li .timeline-panel .timeline-heading h4 {
  color: var(--text-primary);
}

.timeline > li .timeline-panel .timeline-heading h4.subheading {
  color: var(--primary-glow) !important;
  font-weight: 700;
}

/* Form Styling */
#contact {
  background-image: linear-gradient(rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.95)), url("../assets/img/map-image.png") !important;
  background-color: var(--bg-dark-base) !important;
}

#contactForm .form-group {
  margin-bottom: 1.5rem;
}

#contactForm input.form-control,
#contactForm textarea.form-control {
  background-color: rgba(20, 20, 25, 0.8) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: 8px;
  padding: 1.25rem;
  font-family: inherit;
  transition: all 0.3s ease-in-out;
}

#contactForm input.form-control:focus,
#contactForm textarea.form-control:focus {
  border-color: var(--primary-glow) !important;
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.4) !important;
  background-color: rgba(25, 25, 30, 0.95) !important;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

/* Online Streaming (Reproductor) Container */
#online {
  background-color: #0f0f13 !important;
  border-top: 1px solid var(--border-glass);
}

.player-card-container {
  max-width: 420px;
  margin: 0 auto;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 42, 95, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.player-card-container:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 42, 95, 0.25);
}

.player-card-container iframe {
  border-radius: 12px;
  border: none;
  background: transparent;
  display: block;
  margin: 0 auto;
  width: 100%;
}

/* Modals */
.portfolio-modal .modal-content {
  background-color: var(--bg-dark-base) !important;
  color: var(--text-primary) !important;
  border: none;
}

.portfolio-modal .close-modal {
  filter: invert(1);
}

.portfolio-modal .modal-body {
  padding-top: 6rem;
}

/* Back to Top button */
.ir-arriba {
  display: none;
  padding: 15px;
  background: var(--primary-glow);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.4);
  line-height: 1;
  transition: all 0.3s ease;
}

.ir-arriba:hover {
  background: #ff0d48;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 42, 95, 0.6);
}

/* Footer styling */
footer.footer {
  background-color: var(--bg-dark-base) !important;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
}

footer.footer .btn-social {
  background-color: var(--bg-dark-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glass) !important;
  transition: all 0.3s ease;
}

footer.footer .btn-social:hover {
  background-color: var(--primary-glow) !important;
  border-color: var(--primary-glow) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 42, 95, 0.4);
}
