/* ============================================================
   Dani Márquez Prieto - Web Personal
   Estilos personalizados sobre Bootstrap 5
   ============================================================ */

/* --- Variables / Colores corporativos --- */
:root {
  --color-primary: #1a3a5c;
  --color-secondary: #c0392b;
  --color-accent: #e67e22;
  --color-dark: #2c3e50;
  --color-light: #ecf0f1;
  --color-bg: #f8f9fa;
  --color-text: #333;
  --color-muted: #6c757d;
}

/* --- Tipografía global --- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  padding-top: 80px; /* espacio para navbar fixed */
}

h1, h2, h3, h4 {
  color: var(--color-primary);
}

a {
  color: var(--color-secondary);
  transition: color 0.2s;
}
a:hover {
  color: var(--color-accent);
}

/* --- Navbar --- */
.navbar-custom {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2a44 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 10px 0;
}
.navbar-custom .navbar-brand img {
  height: 50px;
  transition: transform 0.3s;
}
.navbar-custom .navbar-brand img:hover {
  transform: scale(1.05);
}
.navbar-custom .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 6px;
  margin: 0 2px;
  transition: all 0.2s;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}
.navbar-custom .nav-link.active {
  background: var(--color-secondary);
}

/* --- Logo textual --- */
.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-decoration: none !important;
}
.brand-text {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.75);
  text-transform: lowercase;
  margin-top: -2px;
}
@media (max-width: 576px) {
  .brand-text { font-size: 1.2rem; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 2px; }
}

/* --- Hero / Welcome Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2a44 100%);
  color: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-section h2 {
  color: #fff;
  margin-bottom: 20px;
}
.hero-section p {
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}
.hero-section .more-link {
  color: var(--color-accent);
  font-weight: 600;
}
.hero-section .more-link:hover {
  color: #fff;
}

/* --- News / Cards Section --- */
.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.section-card h2 {
  border-bottom: 3px solid var(--color-secondary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.section-card h3 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-top: 15px;
  margin-bottom: 5px;
}
.section-card p {
  line-height: 1.6;
}
.news-date {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Sidebar / Image areas --- */
.sidebar-img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* --- Social section --- */
.social-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  text-align: center;
}
.social-section h2 {
  border-bottom: 3px solid var(--color-secondary);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}
.social-icons a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.2s;
}
.social-icons a:hover {
  transform: translateY(-3px);
}
.social-icons img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

/* --- Footer --- */
.footer-custom {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2a44 100%);
  color: rgba(255,255,255,0.8);
  padding: 25px 0;
  margin-top: 40px;
  border-radius: 12px 12px 0 0;
}
.footer-custom a {
  color: var(--color-accent);
}
.footer-custom a:hover {
  color: #fff;
}

/* --- Páginas de fotos (lightbox grid) --- */
.photo-grid img {
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.photo-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* --- Tablas de equipos / about --- */
.info-table td {
  padding: 6px 12px;
  vertical-align: top;
}
.info-table td:first-child {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* --- Videos responsive --- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}
.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Audio player styling --- */
.audio-player {
  max-width: 400px;
  margin: 10px auto;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 999;
}
.scroll-top.visible {
  display: flex;
}
.scroll-top:hover {
  background: var(--color-accent);
}

/* --- Responsive fixes --- */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  .hero-section {
    padding: 20px;
  }
  .navbar-custom .navbar-brand img {
    height: 40px;
  }
  .section-card {
    padding: 20px;
  }
  .photo-grid img {
    height: 120px;
  }
}
