/* =========================================
   1. BASE Y TIPOGRAFÍA
   ========================================= */
body {
  padding-top: 3.375rem;
  color: #6c757d;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  text-transform: uppercase;
}

h1,
.h1 {
  line-height: 1;
}

p.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

.subheading {
  font-family: "Saira Extra Condensed", -apple-system, sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.5rem;
}

.texto-guinda {
  color: #66001a;
}

/* =========================================
   2. DISEÑO GENERAL Y SECCIONES
   ========================================= */
section.resume-section {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 75rem;
}

section.resume-section .resume-section-content {
  width: 100%;
}

/* =========================================
   3. NAVEGACIÓN LATERAL (SIDEBAR)
   ========================================= */
#sideNav {
  background-color: #66001a !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Scrollbar personalizado para el menú */
#sideNav::-webkit-scrollbar {
  width: 6px;
}

#sideNav::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

#sideNav h3 {
  color: #ffffff !important;
  letter-spacing: 1px;
}

#sideNav .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

#sideNav .navbar-nav .nav-link i {
  color: rgba(255, 255, 255, 0.65) !important;
  margin-right: 10px;
  transition: all 0.3s ease;
}

#sideNav .navbar-nav .nav-link:hover,
#sideNav .navbar-nav .nav-link.active {
  color: #ffffff !important;
}

#sideNav .navbar-nav .nav-link:hover i,
#sideNav .navbar-nav .nav-link.active i {
  color: #1aa1f2 !important;
}

#sideNav .navbar-nav .nav-item {
  margin-bottom: 5px;
}

#sideNav .navbar-toggler:focus {
  outline-color: #d48a6e;
}

.profile-img img {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover;
  margin: 15px auto;
  border: 5px solid #66001a;
}

/* =========================================
   4. ICONOS Y REDES SOCIALES
   ========================================= */
.social-icons .social-icon {
  background-color: transparent !important;
  height: auto !important;
  width: auto !important;
  font-size: 1.5rem !important;
  margin: 0 8px !important;
  transition: 0.3s;
}

.social-icons .social-icon:hover {
  color: #cccccc !important;
  transform: scale(1.1);
}

.icono-red {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.icono-red:hover,
.icono-red:focus {
  background-color: #1aa1f2;
  color: #ffffff;
}

.dev-icons {
  font-size: 3rem;
}

/* =========================================
   5. TARJETA DE INICIO / CAMPAÑA
   ========================================= */
.titulo-card-campana {
  text-align: left;
  margin-top: -150px !important;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 15px;
  max-width: 550px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  width: 100%;
}

.titulo-candidato {
  line-height: 1;
  margin-bottom: 20px;
}

.titulo-candidato .nombre {
  font-size: 55px;
  font-weight: 900;
  color: #66001a;
}

.titulo-candidato .apellido {
  font-size: 40px;
  font-weight: 300;
  color: #272829;
  letter-spacing: 5px;
}

.logo-titulo {
  max-width: 340px;
  width: 100%;
}

.slogan-superior {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.5px;
}

.mascota-flotante {
  position: absolute;
  bottom: 0px;
  right: 30px;
  max-width: 180px;
  width: 100%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.titulo-melchor {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  color: #66001a;
  margin-bottom: 15px;
  line-height: 1.2;
}

.descripcion-texto {
  font-size: 1rem;
  color: #444444;
  margin-bottom: 25px;
}

.slogan {
  font-size: 18px !important;
  font-weight: 600;
  color: #272829;
  letter-spacing: 1px;
}

.linea-separadora {
  width: 60px;
  border: 2px solid #66001a;
  margin: 20px 0;
  opacity: 1;
}

.descripcion-campana {
  font-size: 16px !important;
  color: #000000;
  margin-bottom: 25px;
}

.btn-campana {
  background-color: #66001a;
  color: #ffffff;
  padding: 12px 30px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn-campana:hover {
  background-color: #4d0013;
  color: #ffffff;
}

/* =========================================
   6. SECCIÓN EXPLORAR (PANELES INTERACTIVOS)
   ========================================= */
.seccion-explorar {
  width: 100%;
  min-height: 100vh;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.encabezado-paneles h2 {
  font-family: "Saira Extra Condensed", sans-serif;
  color: #66001a;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
}

.encabezado-paneles p {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.paneles-grid {
  display: flex;
  width: 100%;
  height: 520px;
}

.panel-item {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: flex 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 25px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0.95) 25%, rgba(248, 249, 250, 0.75) 30%, rgba(248, 249, 250, 0.5) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.panel-content,
.panel-btn {
  position: relative;
  z-index: 2;
}

.panel-numero {
  font-family: "Saira Extra Condensed", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #66001a;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.panel-titulo {
  font-family: "Saira Extra Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #212529;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.panel-texto {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.4;
}

.panel-btn {
  align-self: center;
  width: 45px;
  height: 45px;
  background-color: #66001a;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.panel-item:hover {
  flex: 1.35;
  color: inherit;
}

.panel-item:hover .panel-btn {
  background-color: #4d0013;
  color: #ffffff;
  transform: scale(1.1);
}

.pie-paneles {
  margin-top: 2rem;
  color: #888;
  font-size: 0.95rem;
}

/* =========================================
   7. SECCIÓN DE CONTACTO OSCURO
   ========================================= */
.contacto-oscuro {
  background-color: #0a0a0a;
  color: #ffffff;
  overflow: hidden;
}

.quote-box {
  border-right: 2px solid #8B0000;
  padding-right: 2rem;
}

.quote-icon {
  font-size: 3rem;
  color: #8B0000;
  margin-bottom: 10px;
}

.quote-text {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 5px;
}

.text-resaltado {
  color: #8B0000;
  font-weight: 500;
}

.firma-candidato {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: #cca461;
  margin-top: 10px;
}

.contacto-titulo {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #ffff;
}

.contacto-subtitulo {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-bottom: 1.5rem;
}

.input-oscuro {
  background-color: transparent !important;
  border: 1px solid #333333 !important;
  color: #ffffff !important;
  border-radius: 4px;
  font-size: 0.85rem;
  padding: 10px 15px;
}

.input-oscuro::placeholder {
  color: #666666;
}

.input-oscuro:focus {
  border-color: #8B0000 !important;
  box-shadow: none !important;
}

.btn-enviar-oscuro {
  background-color: #6a1a24;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-enviar-oscuro:hover {
  background-color: #4a1219;
  color: #ffffff;
}

.mascota-contacto {
  max-height: 250px;
  object-fit: contain;
}

/* =========================================
   8. MEDIA QUERIES RESPONSIVAS
   ========================================= */

/*pantallas grandes / monitores / Mac */
@media (min-width: 1200px) {
  .mascota-flotante {
    max-width: 220px;
    right: 0px;
  }
}

/* Dispositivos Móviles y Tablets pequeñas */
@media (max-width: 991px) {
  #inicio {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 1) 55%), url('../assets/img/leo_fondo4.jpg') right top / 120% auto no-repeat !important;
    background-color: #ffffff !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding-left: 0 !important;
    padding-bottom: 8rem !important;
  }

  .titulo-card-campana {
    margin-top: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-align: center;
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    backdrop-filter: none !important;
    padding-bottom: 100px !important;
  }

  .titulo-candidato,
  .descripcion-campana {
    display: none !important;
  }

  .linea-separadora {
    display: block !important;
    width: 80% !important;
    max-width: 280px !important;
    margin: 15px auto !important;
    border: 1px solid #1aa1f2 !important;
    opacity: 1 !important;
  }

  .slogan {
    font-size: 18px !important;
    color: #555555 !important;
    font-weight: 700 !important;
    letter-spacing: 0px !important;
  }

  .slogan .texto-guinda {
    font-size: 26px !important;
    display: block !important;
    font-weight: 900 !important;
    margin-top: 5px !important;
    color: #66001a !important;
    border-bottom: none !important;
  }

  .logo-titulo {
    max-width: 180px;
    margin-top: 180px;
  }

  .btn-campana {
    width: 85% !important;
    max-width: 350px !important;
    margin: 20px auto 0 auto !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    display: block !important;
  }

  #sideNav .navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 0 10px !important;
  }

  .mascota-flotante {
    max-width: 140px;
    right: 15px;
  }

  #sideNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Explorar / Paneles (Mobile) */
  .seccion-explorar {
    min-height: auto;
    padding: 40px 0;
  }

  .encabezado-paneles h2 {
    font-size: 2rem;
  }

  .paneles-grid {
    flex-direction: column;
    height: auto;
  }

  .panel-item {
    height: 320px;
    padding: 30px 20px;
  }

  .panel-item:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
  }

  .panel-item:hover {
    flex: 1;
  }

  .quote-box {
    border-right: none;
    border-bottom: 2px solid #8B0000;
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .mascota-contacto {
    margin-top: 1rem;
    max-height: 150px;
  }
}

/* Pantallas grandes (Laptops y Desktop) */
@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }

  section.resume-section {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  #sideNav {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
    overflow-y: auto;
  }

  #sideNav .navbar-brand {
    display: flex;
    margin: 3rem auto 0;
    padding: 0.5rem;
  }

  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
  }

  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item {
    display: block;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }

  .titulo-card-campana {
    position: relative;
    top: -20px;
    min-width: 400px;
  }
}

/* Laptops intermedias */
@media (min-width: 992px) and (max-width: 1366px) {

  .titulo-card-campana {
    text-align: left;
    margin-top: -150px !important;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 15px;
    max-width: 200px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    width: 100%;
  }

  .titulo-candidato {
    line-height: 1;
    margin-bottom: 20px;
  }

  .titulo-candidato .nombre {
    font-size: 35px;
    font-weight: 100;
    color: #66001a;
  }

  .titulo-candidato .apellido {
    font-size: 330px;
    font-weight: 300;
    color: #272829;
    letter-spacing: 5px;
  }

  .logo-titulo {
    max-width: 250px;
  }


  .slogan-superior {
    font-size: 0.85rem;
  }

  .titulo-melchor {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .descripcion-texto {
    font-size: 0.8rem;
    margin-bottom: 10px !important;
  }

  .slogan {
    font-size: 18px !important;
    font-weight: 600;
    color: #272829;
    letter-spacing: 1px;
  }

  .linea-separadora {
    width: 60px;
    border: 2px solid #66001a;
    margin: 20px 0;
    opacity: 1;
  }

  .descripcion-campana {
    font-size: 13px !important;
    color: #000000;
    margin-bottom: 0px;
  }

  .btn-campana {
    background-color: #66001a;
    color: #ffffff;
    padding: 10px 30px;
    margin-top: 0px;
    font-size: 12px;
    font-weight: 400;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
  }

  /* Celulares en horizontal (Landscape) */
  @media (max-height: 500px) and (orientation: landscape) {
    #inicio {
      min-height: 480px !important;
      padding-top: 70px !important;
    }

    .titulo-card-campana {
      transform: scale(0.75);
      transform-origin: center center;
      background: rgba(255, 255, 255, 0.6);
      padding: 10px 25px;
      border-radius: 12px;
      backdrop-filter: blur(4px);
    }
  }

}

/* =========================================
   4. PÁGINA: HISTORIA PERSONAL (historia.html)
   ========================================= */

   /* =========================================
   COLORES GLOBALES Y UTILIDADES
   ========================================= */
.text-gold {
    color: #cca461 !important;
}

/* =========================================
   ENCABEZADO DE HISTORIA
   ========================================= */
.kiosco-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 100%);
    opacity: 0.8;
}

/* =========================================
   LÍNEA DE TIEMPO VERTICAL (TIMELINE)
   ========================================= */
.timeline-container {
    position: relative;
    padding-left: 2rem; 
}

/* La línea vertical dorada */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px; 
    width: 2px;
    background-color: #cca461;
}

.timeline-item {
    position: relative;
    padding-bottom: 5rem; 
}

/* El círculo dorado de cada ítem */
.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #cca461;
    border: 4px solid #fbfbfb;
}

/* =========================================
   TARJETAS Y ELEMENTOS INTERNOS
   ========================================= */
.info-card {
    transition: transform 0.2s ease;
}
.info-card:hover, .value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Línea de progreso académico horizontal */
.academic-timeline {
    position: relative;
}
.academic-line-bg {
    position: absolute;
    top: 25px;
    left: 10%;
    width: 80%; 
    height: 2px;
    background-color: #66001a; 
    z-index: 1;
}
.academic-icon {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #66001a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    border: 3px solid #fbfbfb;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .timeline-container {
        padding-left: 1.5rem;
    }
    .timeline-container::before {
        left: 4px;
    }
    .timeline-dot {
        left: -1.7rem;
        width: 16px;
        height: 16px;
    }
    .academic-line-bg {
        display: none;
    }
}

/* =========================================
   PÁGINA: GALERÍA
   ========================================= */

.galeria-item {
    cursor: pointer;
    background-color: #000;
}


.galeria-item img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Efecto de zoom al pasar el mouse */
.galeria-item:hover img {
    transform: scale(1.08);
}


.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(102, 0, 26, 0.95), transparent);
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

/* =========================================
   CARRUSEL DE NOTICIAS
   ========================================= */

#carruselNoticias .carousel-indicators [data-bs-target] {
    background-color: #66001a; 
    opacity: 0.4;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

#carruselNoticias .carousel-indicators .active {
    background-color: #cca461;
    opacity: 1;
}

/* Oscurecer las flechas laterales para que resalten sobre cualquier imagen */
.nav-carrusel-icono {
    background-color: rgba(102, 0, 26, 0.7) !important; 
    border-radius: 50%;
    padding: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%; 
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 220px !important;
    }
}



/*Redes*/

.btn-red-social {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #ffffff;
    color: #212529;
    padding: 16px 20px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}


.btn-red-social .icono-izq {
    position: absolute;
    left: 24px;
    font-size: 1.3rem;
    color: #66001a;
    transition: color 0.3s ease;
}


.btn-red-social:hover {
    background-color: #66001a;
    border-color: #66001a;
    color: #ffffff;
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(102, 0, 26, 0.2);
}

.btn-red-social:hover .icono-izq {
    color: #cca461 !important;
}

.btn-red-social.oficial {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.btn-red-social.oficial:hover {
    background-color: #cca461;
    border-color: #cca461;
    color: #1a1a1a;
}

.btn-red-social.oficial:hover .icono-izq {
    color: #1a1a1a !important;
}

body.pagina-redes {
    padding-left: 0 !important;
    margin-left: 0 !important;
}


/* Galeria*/

.galeria-item {
        cursor: pointer;
        transition: box-shadow 0.3s ease;
        background-color: #000; 
        border-radius: 8px;
    }

    .galeria-img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        min-height: 350px; 
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

    
    .galeria-item:hover .galeria-img {
        transform: scale(1.05);
        opacity: 0.5; 
    }

    .galeria-item:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .info-overlay {
        pointer-events: none;
        z-index: 2;
    }

    .lupa-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 3;
        pointer-events: none;
    }

    .galeria-item:hover .lupa-overlay {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .modal-backdrop.show {
        opacity: 0.9 !important;
        background-color: #000000;
    }