/* IV Congreso Nacional COSSPRA - Home Page Styles */

/* Base Styles */
body {
  background: url('../img/nuevo/FONDO -  SEMINARIO EVOLUCIÓN 2026.png') center/cover no-repeat fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Logo Styles */
.logo-fixed {
  max-width: 30%;
  transition: all 0.3s ease;
  pointer-events: none;
  height: auto;
}

.logo-top {
  display: block;
  margin: 0 0 0.5rem 0;
}

.logo-bottom {
  display: block;
  margin: 0.5rem auto 0 0;
}

.div-logo-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  z-index: 1000;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

/* Stream Card Styles */
.stream-card {
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.95) !important;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.stream-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 2px 12px rgba(0,0,0,0.15);
}

.stream-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* Button Styles */
.btn-sala {
  border-radius: 25px;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #00bcd4 0%, #0097a7 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.33);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-width: 200px;
  text-align: center;
}

.btn-sala:hover {
  background: linear-gradient(90deg, #0097a7 0%, #00bcd4 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
  text-decoration: none;
}

.btn-sala:active {
  transform: translateY(0) scale(0.98);
}

/* YouTube Button */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  padding: 0.65rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #c4302b 0%, #ff0000 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 3px 12px rgba(196, 48, 43, 0.45);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-youtube:hover {
  background: linear-gradient(90deg, #a52520 0%, #cc0000 100%);
  color: #fff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(196, 48, 43, 0.55);
  text-decoration: none;
}

.btn-youtube:active {
  transform: translateY(0) scale(0.98);
}

.btn-youtube:focus-visible {
  outline: 3px solid rgba(255, 0, 0, 0.6);
  outline-offset: 2px;
}

.btn-questions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  padding: 0.65rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #0B67B2 0%, #1a89e8 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 3px 12px rgba(11, 103, 178, 0.45);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-questions:hover {
  background: linear-gradient(90deg, #084f8a 0%, #0f6fc4 100%);
  color: #fff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(11, 103, 178, 0.55);
  text-decoration: none;
}

.btn-questions:active {
  transform: translateY(0) scale(0.98);
}

.btn-questions:focus-visible {
  outline: 3px solid rgba(11, 103, 178, 0.6);
  outline-offset: 2px;
}

/* Stream language label (above buttons, below logo) */
.stream-lang-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: linear-gradient(90deg, #0B67B2 0%, #1a89e8 100%);
  color: #fff;
  border-radius: 20px;
  padding: 0.28rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(11, 103, 178, 0.28);
}

.stream-divider {
  border: none;
  border-top: 1.5px solid rgba(11, 103, 178, 0.1);
  margin: 0.6rem auto 0;
  width: 65%;
  border-radius: 2px;
}

/* Container and Layout Improvements */
.container-fluid {
  padding: 0;
}

.main-container {
  min-height: calc(100vh - 100px);
  padding-bottom: 120px;
}

/* Admin Button Styles */
.admin-panel {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */

/* Extra Large screens (1280px and up) */
@media (min-width: 1280px) {
  .logo-fixed {
    max-width: 20%;
  }
  
  .stream-card {
    padding: 3rem 2.5rem;
  }
  
  .stream-logo {
    max-height: 250px;
  }
}

/* Large screens (992px to 1279px) */
@media (max-width: 1279.98px) and (min-width: 992px) {
  .logo-fixed {
    max-width: 25%;
  }
}

/* Medium screens and tablets (768px to 991px) */
@media (max-width: 991.98px) {
  .logo-fixed {
    max-width: 40%;
  }
  
  .div-logo-bottom {
    position: relative;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 0;
    margin-top: 2rem;
  }
  
  .stream-card {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .btn-sala {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    min-width: 180px;
  }
  
  .main-container {
    padding-bottom: 20px;
  }
}

/* Small screens and mobile (576px to 767px) */
@media (max-width: 767.98px) {
  .logo-fixed {
    max-width: 60%;
  }
  
  .logo-top {
    max-width: 65%;
    margin: 0 auto 1rem auto;
  }
  
  .logo-bottom {
    max-width: 65%;
    margin: 1rem auto 0 auto;
  }
  
  .div-logo-bottom {
    position: relative;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px 20px 0 0;
    margin-top: 2rem;
    padding: 1.5rem 12px;
  }
  
  .stream-card {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    border-radius: 15px !important;
  }
  
  .stream-logo {
    max-height: 150px;
    margin-bottom: 1rem;
  }
  
  .btn-sala {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    min-width: 160px;
    width: 100%;
    max-width: 250px;
  }
  
  .second-card-mobile {
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .main-container {
    padding-bottom: 10px;
  }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575.98px) {
  .logo-fixed {
    max-width: 75%;
  }
  
  .logo-top, .logo-bottom {
    max-width: 75%;
  }
  
  .stream-card {
    padding: 1.25rem 0.75rem;
    margin: 0.75rem 0;
  }
  
  .stream-logo {
    max-height: 120px;
  }
  
  .btn-sala {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    min-width: 140px;
  }
  
  .div-logo-bottom {
    padding: 1rem 8px;
  }
}

/* Very small screens (up to 390px) */
@media (max-width: 390px) {
  .stream-card {
    padding: 1rem 0.5rem;
  }
  
  .stream-logo {
    max-height: 100px;
  }
  
  .btn-sala {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-width: 120px;
  }
  
  .logo-fixed {
    max-width: 85%;
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .stream-card {
    padding: 1rem;
    margin: 0.5rem 0;
  }
  
  .stream-logo {
    max-height: 80px;
  }
  
  .div-logo-bottom {
    position: relative;
    margin-top: 1rem;
    padding: 0.75rem 12px;
  }
  
  .main-container {
    min-height: auto;
    padding-bottom: 10px;
  }
}

/* Focus styles for accessibility */
.btn-sala:focus {
  outline: 3px solid rgba(0, 188, 212, 0.5);
  outline-offset: 2px;
}

.btn-sala:focus:not(:focus-visible) {
  outline: none;
}

.btn-sala:focus-visible {
  outline: 3px solid rgba(0, 188, 212, 0.8);
  outline-offset: 2px;
}

/* Loading and performance optimizations */
.stream-logo, .logo-fixed {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .stream-card {
    background: rgba(255,255,255,1) !important;
    border: 2px solid #000;
  }
  
  .btn-sala {
    background: #000 !important;
    border: 2px solid #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .logo-fixed,
  .stream-card,
  .btn-sala {
    transition: none !important;
  }
  
  .stream-card:hover {
    transform: none !important;
  }
  
  .btn-sala:hover {
    transform: none !important;
  }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
  .admin-panel {
    background: rgba(40, 40, 40, 0);
    color: #fff;
  }
}

/* YouTube Live Stream Access Button */
.youtube-access-btn {
  background: linear-gradient(90deg, #b81c1c 0%, #e52b2b 50%, #b81c1c 100%);
  border-radius: 25px;
  padding: 1rem 2.5rem;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 22px rgba(200, 0, 0, 0.35);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 720px;
  border: 2px solid rgba(255,255,255,0.15);
  gap: 0;
}

.youtube-access-btn:hover {
  background: linear-gradient(90deg, #8b0000 0%, #c0392b 50%, #8b0000 100%);
  color: #fff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(200, 0, 0, 0.55);
}

.youtube-access-btn:active {
  transform: translateY(0) scale(0.98);
}

.youtube-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.youtube-external {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.youtube-btn-text {
  text-align: center;
  flex: 1;
}

/* Per-language colors inside buttons (dark backgrounds) */
.yt-lang-es {
  color: #ffffff;
  font-weight: 700;
}
.yt-lang-pt {
  color: #80deea;
  font-weight: 600;
}
.yt-lang-en {
  color: #b0bec5;
  font-weight: 500;
}

/* YouTube per-language individual buttons */
.youtube-lang-btn {
  border-radius: 22px;
  padding: 0.75rem 1.75rem;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  gap: 0;
}

.youtube-lang-btn .youtube-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.youtube-lang-btn:hover {
  color: #fff !important;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.youtube-lang-btn:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.95);
}

/* Español — azul */
.youtube-lang-es {
  background: linear-gradient(90deg, #0951a0 0%, #1976d2 100%);
  box-shadow: 0 4px 16px rgba(11, 103, 178, 0.4);
}
.youtube-lang-es:hover {
  box-shadow: 0 6px 22px rgba(11, 103, 178, 0.6);
}

/* Português — teal */
.youtube-lang-pt {
  background: linear-gradient(90deg, #006978 0%, #00acc1 100%);
  box-shadow: 0 4px 16px rgba(0, 151, 167, 0.4);
}
.youtube-lang-pt:hover {
  box-shadow: 0 6px 22px rgba(0, 151, 167, 0.6);
}

/* English — slate */
.youtube-lang-en {
  background: linear-gradient(90deg, #3d4f60 0%, #64748b 100%);
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4);
}
.youtube-lang-en:hover {
  box-shadow: 0 6px 22px rgba(100, 116, 139, 0.6);
}


.yt-lang-sep {
  opacity: 0.35;
  font-weight: 300;
}

@media (max-width: 767.98px) {
  .youtube-access-btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 18px;
  }

  .youtube-btn-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.5;
  }

  .yt-lang-sep {
    display: none;
  }

  .youtube-icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 575.98px) {
  .youtube-access-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===== indexEvento Landing Panel ===== */
.landing-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Per-language color coding (white background contexts) */
.lang-es {
  color: #0B67B2;
  font-weight: 700;
}
.lang-pt {
  color: #0097a7;
  font-weight: 600;
}
.lang-en {
  color: #64748b;
  font-weight: 500;
}

.landing-sep {
  color: rgba(11, 103, 178, 0.25);
  margin: 0 0.45em;
  font-weight: 300;
  font-size: 1.05em;
}

.landing-divider {
  border: none;
  border-top: 3px solid rgba(11, 103, 178, 0.18);
  margin: 0.5rem 0;
  border-radius: 2px;
}

/* Certificate register button */
.btn-cert-register {
  background: linear-gradient(90deg, #0B67B2 0%, #0097a7 100%);
  border-radius: 25px;
  padding: 1rem 2.5rem;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 22px rgba(11, 103, 178, 0.32);
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.15);
  gap: 0;
}

.btn-cert-register:hover {
  background: linear-gradient(90deg, #094f8a 0%, #007b8a 100%);
  color: #fff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(11, 103, 178, 0.5);
}

.btn-cert-register:active {
  transform: translateY(0) scale(0.98);
}

.cert-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  opacity: 0.92;
}

.cert-btn-text {
  text-align: center;
  flex: 1;
}

.cert-arrow {
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.75;
}

/* Login row */
.landing-login-label {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
}

/* Subtle login link (not a button) */
.landing-login-link {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.landing-login-link:hover {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .landing-welcome-title {
    font-size: 1.2rem;
  }

  .btn-cert-register {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 18px;
  }

  .cert-btn-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.5;
  }

  .btn-cert-register .yt-lang-sep {
    display: none;
  }

  .cert-icon {
    font-size: 1.4rem;
  }

  .landing-login-link {
    font-size: 0.85rem;
  }
}

/* Print styles */
@media print {
  body {
    background: none !important;
  }
  
  .div-logo-bottom {
    position: relative !important;
  }
  
  .btn-sala {
    background: #00bcd4 !important;
    color: #fff !important;
    border: 1px solid #000;
  }
  
  .stream-card {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}