/* Reto Cosentino – Rediseño estático (Plus)
   - Bootstrap first
   - Este CSS sobrescribe la plantilla original para un look más premium y modular
*/

:root{
  --rc-bg: #0b0c0f;
  --rc-surface: #11131a;
  --rc-surface-2: #151826;
  --rc-text: #f4f6ff;
  --rc-muted: rgba(244,246,255,.72);
  --rc-border: rgba(244,246,255,.12);
  --rc-accent: #c9a45a; /* acento sobrio (tipo "latón") */
  --rc-accent-2: #8fd3ff; /* acento secundario muy leve */
  --rc-radius: 18px;
  --rc-shadow: 0 18px 60px rgba(0,0,0,.45);
  --rc-shadow-soft: 0 12px 36px rgba(0,0,0,.25);
  --rc-max: 1160px;
}

/* Base */
html{ scroll-behavior:smooth; }
body{
  background: radial-gradient(1200px 600px at 15% 0%, rgba(143,211,255,.10), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(201,164,90,.12), transparent 55%),
              var(--rc-bg);
  color: var(--rc-text);
}

a{ color: var(--rc-text); }
a:hover{ color: var(--rc-accent); }

.container-rc{ max-width: var(--rc-max); }

/* Navbar */
.navbar{
  background: rgba(11,12,15,.65) !important;
  border-bottom: 1px solid rgba(244,246,255,.08);
  backdrop-filter: blur(10px);
}
.navbar .navbar-brand{
  font-weight: 700;
  letter-spacing: .2px;
}
.navbar .nav-link{
  color: rgba(244,246,255,.78) !important;
  font-weight: 600;
  padding: .65rem .9rem !important;
  border-radius: 999px;
}
.navbar .nav-link:hover{
  background: rgba(244,246,255,.06);
  color: var(--rc-text) !important;
}
.navbar .nav-link.active{
  background: rgba(201,164,90,.16);
  border: 1px solid rgba(201,164,90,.30);
  color: var(--rc-text) !important;
}

/* Sections */
.section{
  padding: 90px 0;
}
.section-title{
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  margin-bottom: 10px;
}
.section-subtitle{
  color: var(--rc-muted);
  max-width: 70ch;
}

/* Hero */
.hero{
  padding: 120px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,12,15,.35), rgba(11,12,15,.96)),
    url("images/portada.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  opacity: .95;
}
.hero > .container{ position: relative; z-index: 1; }
.hero-badge{
  display:inline-flex; gap:.5rem; align-items:center;
  padding:.45rem .75rem;
  border-radius:999px;
  border:1px solid rgba(244,246,255,.16);
  background: rgba(17,19,26,.55);
  color: rgba(244,246,255,.86);
  font-weight:700;
  letter-spacing:.2px;
  box-shadow: var(--rc-shadow-soft);
}
.hero h1{
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  line-height: 1.08;
  margin: 14px 0 12px;
}
.hero p.lead{
  color: rgba(244,246,255,.78);
  max-width: 70ch;
}
.hero-card{
  border:1px solid rgba(244,246,255,.10);
  background: rgba(17,19,26,.60);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  backdrop-filter: blur(10px);
}
.rc-btn{
  border-radius: 999px;
  padding: .78rem 1.05rem;
  font-weight: 700;
  border: 1px solid rgba(244,246,255,.16);
}
.rc-btn-primary{
  background: rgba(201,164,90,.22);
  border-color: rgba(201,164,90,.45);
  color: var(--rc-text);
}
.rc-btn-primary:hover{
  background: rgba(201,164,90,.32);
  border-color: rgba(201,164,90,.62);
}
.rc-btn-ghost{
  background: rgba(244,246,255,.06);
}
.rc-btn-ghost:hover{
  background: rgba(244,246,255,.10);
}
.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.stat{
  border:1px solid rgba(244,246,255,.10);
  background: rgba(17,19,26,.35);
  border-radius: 16px;
  padding: 14px 16px;
}
.stat .k{ font-size: 1.25rem; font-weight: 800; }
.stat .v{ color: var(--rc-muted); font-weight: 600; }

/* Cards */
.rc-card{
  border:1px solid rgba(244,246,255,.10);
  background: rgba(17,19,26,.45);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow-soft);
}
.rc-card .card-body{ padding: 18px; }
.rc-card .icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(201,164,90,.18);
  border:1px solid rgba(201,164,90,.35);
}
.rc-pill{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .65rem;
  border-radius:999px;
  border:1px solid rgba(244,246,255,.14);
  background: rgba(244,246,255,.06);
  color: rgba(244,246,255,.84);
  font-weight:700;
  font-size: .85rem;
}

/* Timeline */
.timeline{
  display:grid;
  gap: 14px;
}
.timeline-item{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--rc-radius);
  border: 1px solid rgba(244,246,255,.10);
  background: rgba(17,19,26,.35);
}
.timeline-time{
  font-weight: 900;
  color: rgba(244,246,255,.86);
}
.timeline-item .title{
  font-weight: 800;
}
.timeline-item .desc{
  color: var(--rc-muted);
  margin: 4px 0 0;
}

/* Accordion */
.accordion .accordion-item{
  background: rgba(17,19,26,.35);
  border: 1px solid rgba(244,246,255,.10);
  border-radius: var(--rc-radius);
  overflow:hidden;
}
.accordion .accordion-button{
  background: transparent;
  color: var(--rc-text);
  font-weight: 800;
}
.accordion .accordion-button:not(.collapsed){
  background: rgba(201,164,90,.12);
  box-shadow: none;
}
.accordion .accordion-body{
  color: var(--rc-muted);
}

/* Gallery */
.gallery-thumb{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(244,246,255,.10);
  background: rgba(17,19,26,.35);
  cursor: pointer;
  box-shadow: var(--rc-shadow-soft);
}
.gallery-thumb img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease, opacity .35s ease;
  opacity: .92;
}
.gallery-thumb:hover img{
  transform: scale(1.03);
  opacity: 1;
}

/* Prizes */
.prize-card{
  position: relative;
  overflow:hidden;
}
.prize-card::after{
  content:"";
  position:absolute;
  inset:-40% -40% auto auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle at 30% 30%, rgba(201,164,90,.20), transparent 70%);
  transform: rotate(25deg);
}
.prize-title{
  font-weight: 900;
  font-size: 1.15rem;
}
.prize-meta{
  color: var(--rc-muted);
  font-weight: 600;
}

/* News */
.filter-bar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.filter-btn{
  border-radius: 999px;
  border: 1px solid rgba(244,246,255,.14);
  background: rgba(244,246,255,.06);
  color: rgba(244,246,255,.84);
  font-weight: 800;
  padding: .45rem .75rem;
}
.filter-btn.active{
  background: rgba(201,164,90,.22);
  border-color: rgba(201,164,90,.45);
}
.news-card .date{
  color: var(--rc-muted);
  font-weight: 700;
  font-size: .9rem;
}
.news-card .tag{
  color: rgba(244,246,255,.82);
  border: 1px solid rgba(244,246,255,.12);
  background: rgba(244,246,255,.06);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-weight: 800;
  font-size: .8rem;
}

/* Footer */
footer{
  border-top: 1px solid rgba(244,246,255,.10);
  background: rgba(11,12,15,.55);
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Floating CTA */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1055;
}
.fab a{
  display:inline-flex;
  align-items:center;
  gap: .55rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: rgba(201,164,90,.26);
  border: 1px solid rgba(201,164,90,.52);
  color: var(--rc-text);
  font-weight: 900;
  box-shadow: var(--rc-shadow);
}
.fab a:hover{ background: rgba(201,164,90,.36); }

/* Responsive */
@media (max-width: 991px){
  .hero{ padding-top: 110px; }
  .stats{ grid-template-columns: 1fr; }
  .timeline-item{ grid-template-columns: 1fr; }
  .timeline-time{ opacity:.9; }
}

/* ================================
   BOTONES – ESTILO COSENTINO
   ================================ */

:root {
  --rc-radius-btn: 6px;
}

.btn,
.rc-btn,
.accordion-button,
.filter-btn {
  border-radius: var(--rc-radius-btn) !important;
}

/* Botón principal */
.rc-btn-primary {
  background: #0f111a;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all .2s ease;
}

.rc-btn-primary:hover,
.rc-btn-primary:focus {
  background: #ffffff;
  color: #0f111a;
  border-color: #ffffff;
}

.rc-btn-primary:active {
  background: #f2f2f2;
  color: #0f111a;
}

/* Botones secundarios / ghost */
.rc-btn-ghost,
.btn-outline-light,
.filter-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  transition: all .2s ease;
}

.rc-btn-ghost:hover,
.btn-outline-light:hover,
.filter-btn:hover {
  background: #ffffff;
  color: #0f111a;
  border-color: #ffffff;
}

.rc-btn-ghost:active,
.btn-outline-light:active,
.filter-btn.active {
  background: #f2f2f2;
  color: #0f111a;
  border-color: #f2f2f2;
}

/* Micro-contraste premium */
.btn,
.rc-btn {
  box-shadow: inset 0 0 0 0 rgba(255,255,255,0);
}

.btn:hover,
.rc-btn:hover {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Ajuste botón vídeo en hero */
.hero .btn-outline-light {
  font-weight: 500;
  letter-spacing: .02em;
}

/* ================================
   NAVBAR – LINKS ESTILO COSENTINO
   ================================ */

/* Fondo/navbar más sólido (opcional, da look premium) */
.navbar {
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Links del menú: menos redondeo y mejor contraste */
.navbar .nav-link {
  color: rgba(255,255,255,0.78);
  padding: .55rem .75rem;
  border-radius: 6px;               /* casi cuadrado */
  transition: all .18s ease;
}

/* Hover: “resalta en blanco” */
.navbar .nav-link:hover {
  background: #ffffff;
  color: #0f111a;
}

/* Activo: también blanco (sección actual) */
.navbar .nav-link.active {
  background: #ffffff;
  color: #0f111a;
}

/* Al pulsar */
.navbar .nav-link:active {
  background: #f2f2f2;
  color: #0f111a;
}

/* Si quieres que el brand también sea más limpio */
.navbar .navbar-brand {
  letter-spacing: .02em;
}
/* ================================
   FIX CONTRASTE: TEXTO NEGRO EN FONDOS BLANCOS
   ================================ */

/* Navbar: al estar activo/hover, asegurar texto oscuro (y también iconos) */
.navbar.navbar-dark .navbar-nav .nav-link:hover,
.navbar.navbar-dark .navbar-nav .nav-link:focus,
.navbar.navbar-dark .navbar-nav .nav-link.active {
  color: #0f111a !important;
  background: #ffffff !important;
}

/* Si hay iconos dentro del link (bi-*) */
.navbar.navbar-dark .navbar-nav .nav-link:hover i,
.navbar.navbar-dark .navbar-nav .nav-link:focus i,
.navbar.navbar-dark .navbar-nav .nav-link.active i {
  color: #0f111a !important;
}

/* Botones ghost y outline: asegurar texto oscuro en hover/active */
.rc-btn-ghost:hover,
.rc-btn-ghost:focus,
.btn-outline-light:hover,
.btn-outline-light:focus,
.filter-btn:hover {
  color: #0f111a !important;
}

.rc-btn-ghost:active,
.btn-outline-light:active,
.filter-btn.active {
  color: #0f111a !important;
}
/* ================================
   HERO CON IMAGEN CORPORATIVA COSENTINO
   ================================ */

.hero {
  position: relative;
  background:
    linear-gradient(
      rgba(10, 12, 18, 0.25),
      rgba(10, 12, 18, 0.15)
    ),
    url("../images/hero.jpg") center center / cover no-repeat;
}

/* ================================
   SECCIÓN ORGANIZADORES (LOGOS)
   ================================ */

.section-organizers {
  background: #0b0d14;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.organizers-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.organizers-logos img {
  max-height: 56px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: all .25s ease;
}

.organizers-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
  .organizers-logos {
    justify-content: center;
  }

  .section-organizers .section-title,
  .section-organizers .section-subtitle {
    text-align: center;
  }
}


/* ================================
   SECCIÓN PREMIOS – FONDO CORPORATIVO
   ================================ */

#premios {
  position: relative;
  background:
    linear-gradient(
      rgba(10, 12, 18, 0.70),
      rgba(10, 12, 18, 0.85)
    ),
    url("../images/cosentino.jpg") center center / cover no-repeat;
}

#formacion {
  position: relative;
  background:
    linear-gradient(
      rgba(10, 12, 18, 0.70),
      rgba(10, 12, 18, 0.85)
    ),
    url("../images/ual.jpg") center center / cover no-repeat;
}
