/* ==== RESET Y VARIABLES ==== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --navbar-bg: rgba(44, 62, 80, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.3);
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  animation: fadeIn 1s ease-in-out;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: #c0392b;
}

/* ==== NAVBAR ==== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  /* Glassmorphism */
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.navbar-brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  color: #ddd;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background var(--transition-speed), color var(--transition-speed), transform 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Menú hamburguesa (oculto en desktop) */
.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

/* ==== CARRUSEL ==== */
.carousel {
  position: relative;
  width: 100%;
  height: auto;
  /* height: 100vh; */
  /* Pantalla completa */
  overflow: hidden;
  margin-top: 0;
}

.carousel-inner {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  background-color: black;
}

.carousel-caption {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 80%;
  animation: slideUp 1s ease-out;
}

/* Glassmorphism Card en el Carrusel */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 10px;


  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-size: clamp(1.0rem, 2.05vw, 1.05rem);
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card-text {
  font-size: clamp(0.6rem, 1.2vw, 0.8rem);
  color: #444;
}

/* Controles del Carrusel */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

/* ==== GRID SYSTEM (Reemplazando Bootstrap) ==== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.col-lg-3 {
  flex: 1 1 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.col-lg-3:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.col-lg-1 {
  flex: 0 0 auto;
}

/* ==== CONFERENCIA DESTACADA ==== */
.conferencia-destacada {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(2, 32, 53, 0.08);
  margin-top: 5rem;
  /* Efecto sobrepuesto ligeramente sobre el banner superior */
  position: relative;
  z-index: 20;
  padding: 3rem !important;
  max-width: 900px;
}

.conferencia-destacada h1 {
  color: var(--primary-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  width: 100%;
}

.conferencia-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  width: 100%;
}

.conferencia-meta h3 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conferencia-contenido {
  background-color: #fdfdfd;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  width: 100%;
}

.conferencia-contenido p {
  margin-bottom: 1rem;
}

/* ==== PARTICIPANTES (Personas) ==== */
.oval-container {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
  transition: transform 0.4s ease;
}

.oval-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.col-lg-3:hover .oval-container img {
  transform: scale(1.1);
}

.nextprev {
  cursor: pointer;
  background: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nextprev:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.nextprev img {
  width: 30px;
}

/* Botones */
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 25px;
  margin-top: 15px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  background: var(--primary-color);
  color: white;
  margin-top: 50px;
}

footer a {
  color: #f1c40f;
}

/* ==== MEDIA QUERIES (Responsive) ==== */
@media (max-width: 800px) {
  .navbar-nav {
    display: none;
    /* Oculto por defecto en móvil */
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--navbar-bg);
    padding: 20px;
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-toggler {
    display: block;
  }

  .card h1 {
    font-size: 1.8rem;
  }

  .card-text {
    font-size: 1rem;
  }

  .col-lg-3 {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .responsive-image.desktop {
    display: none;
  }

  .responsive-image.mobile {
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}

@media (min-width: 801px) {
  .responsive-image.mobile {
    display: none;
  }

  .responsive-image.desktop {
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}

/* ==== ANIMACIONES ==== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

.fade-in-element {
  animation: fadeIn 1.2s ease-in-out;
}