/* ========== SECTIONS.CSS ========== */
section {
    text-align: center;
}

/* Contenedor principal ajustado a tu diseño */
.carousel-container {
    margin: 0px auto 10px auto; 
    position: relative;
    max-width: 1280px; 
    overflow: hidden;
    height: 500px;      
    border-radius: 20px; 

    box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.5), 
    0 10px 30px rgba(0, 0, 0, 0.15);

}

/* Contenedor de las imágenes */
.image-container {
    width: 100%;
    height: 100%; 
    position: relative;
}

/* Imágenes del carrusel */
.image-container img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.image-container img.active {
    display: block;
}

/* Barra de navegación con los puntos */
.nav-bar {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 30px; 
}

/* Estilo de los puntos */
.nav-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #555555; 
    margin: 0 7px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #ffffff; 
    transform: scale(1.3); 
}

#play-pause-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    background: transparent;
    border: 2px solid #a5a5a599; 
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    z-index: 101; /* Aumentado para estar sobre los botones laterales */
    color: #a5a5a599; 
    font-size: 16px; 
    transition: border-color 0.3s ease, color 0.3s ease; 
}

#play-pause-btn:hover {
    border-color: #333; 
    color: #333; 
}

/* --- Estilo del Cuadro de Cristal (Glassmorphism) --- */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 60px; 
    transform: translateY(-50%); 
    width: 400px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.45); 
    backdrop-filter: blur(15px);    
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-align: left;
    z-index: 20; 
    color: white;
    display: none; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.carousel-caption.active {
    display: block !important;
}

.carousel-caption h3 {
    font-family: 'Audiowide', cursive;
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #ffffff;
    text-transform: uppercase;
}

.carousel-caption p {
    font-family: 'Open Sans', sans-serif; 
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #e0e0e0;
}

/* ============================================================
   NUEVOS BOTONES LATERALES DEL CARRUSEL (CRISTAL OSCURO)
   ============================================================ */
.carousel-container .nav-stat-btn {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0; /* Ocultos por defecto */
    transition: all 0.4s ease;
    
    /* Efecto Cristal Oscuro */
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 35px;
    user-select: none;
}

/* Área de detección invisible de 50px adicionales */
.carousel-container .nav-stat-btn::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 130px; /* 80px del botón + 50px de margen */
}

.carousel-container .nav-stat-btn.prev { 
    left: 0; 
}

.carousel-container .nav-stat-btn.prev::after {
    left: 0;
}

.carousel-container .nav-stat-btn.next { 
    right: 0; 
}

.carousel-container .nav-stat-btn.next::after {
    right: 0;
}

/* Aparecen solo cuando estás sobre el área del botón (incluyendo los 50px de margen) */
.carousel-container .nav-stat-btn:hover {
    opacity: 1;
}

.carousel-container .nav-stat-btn:hover {
    background: rgba(0, 0, 0, 0.45);
}

.carousel-container .nav-stat-btn span {
    transition: transform 0.2s ease;
}

.carousel-container .nav-stat-btn:active span {
    transform: scale(0.85);
}

.carousel-caption .btn-tux-base {
    height: 40px !important;    /* Forzamos los 40px exactos */
    padding: 0 24px !important; /* Eliminamos el padding vertical que lo engorda */
    display: inline-flex;       /* Aseguramos centrado total */
    align-items: center;
    justify-content: center;
}

/* ============================================================
CARROUSEL PARA SERVICIOS
============================================================ */
.tux-container-wrapper {
    margin: 0 auto 20px auto;
    max-width: 1280px;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tux-showcase {
  width: 100%;
  height: 100%;
  position: relative;
}

.tux-panels {
  display: flex;
  width: 100%;
  height: 100%;
}

.panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column; /* TEXTO ARRIBA */
  justify-content: space-between;
  padding: 40px;
}

/* IZQUIERDA */
.panel-left {
  background: linear-gradient(to right, #e8e8e8, #adadad);
}

/* DERECHA */
.panel-right {
  background: linear-gradient(to left, #235a90, #081f51);
  color: white;
}

/* TEXTO ARRIBA */
.panel-content {
  width: 100%;
}

/* IMAGEN ABAJO */
.panel-image {
  width: 100%;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tux-buttons {
  position: absolute;
  top: 84%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* ===== TITULO COMO IMAGEN ===== */
.panel-title {
  width: 100%;
  display: flex;
  justify-content: center;

  /* 🔥 AJUSTA ESTO PARA SUBIR/BAJAR */
  margin-top: 20px;   /* pon negativo para subir más (-20px por ejemplo) */
  margin-bottom: 30px;
}

/* IMAGEN DEL TITULO */
.panel-title img {
  width: 250px;      /* 🔥 CONTROL DIRECTO DEL TAMAÑO */
  max-width: 100%;
  height: auto;
  object-fit: contain;
}