/* Base */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Header y Navegación */
/* Header reorganizado */
header {
    background-color: #000000;
    padding: 10px 20px 0 20px;
    text-align: center;
    border-bottom: 4px solid #ffc107;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-top h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #ffc107;
}

#logo {
    width: 50px;
    height: auto;
}


h1 {
    margin: 0;
    color: #ffc107;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

nav ul li a {
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e0a800;
}

/* Secciones generales (excepto el carrusel) */
section:not(#carrusel) {
    background-color: #1f1f1f;
    margin: 30px auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    max-width: 800px;
}

section h2 {
    color: #ffc107;
    margin-bottom: 10px;
}

/* Carrusel a pantalla completa */
#carrusel {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #111;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 80%;
    margin: 20px auto;
    height: 850px; /* Altura aumentada */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra la imagen completa sin recorte */
    background-color: #000;
}



/* Flechas de navegación */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 12px 18px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s, color 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(255,193,7,0.9);
    color: black;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

/* Puntos de navegación */
#carrusel div[style*="text-align:center"] {
    text-align: center;
    padding: 10px 0;
    background-color: #111;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #ffc107;
}
@media screen and (max-width: 768px) {
  .carousel-wrapper {
    height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .carousel-wrapper {
    height: 250px;
  }
}

  .prev, .next {
    font-size: 20px;
    padding: 8px 12px;
  }

/* Botón cápsula de cambio de modo */
.modo-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #ffc107;
  border-radius: 25px;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  font-size: 18px;
  transition: background-color 0.3s, transform 0.2s;
}

.modo-toggle:hover {
  transform: scale(1.1);
}

.modo-toggle .icono {
  display: block;
}

/* MODO DÍA */
body.modo-dia {
  background-color: #ffffff;
  color: #1a1a1a;
}

body.modo-dia header {
  background-color: #f5f5f5;
  border-bottom: 4px solid #ffc107;
}

body.modo-dia section:not(#carrusel) {
  background-color: #eeeeee;
  color: #1a1a1a;
}

body.modo-dia nav ul li a {
  color: #333;
}

body.modo-dia nav ul li a:hover {
  color: #e65100;
}

body.modo-dia .btn-cotiza {
  background-color: #ffc107;
  color: #000;
}

body.modo-dia .btn-cotiza:hover {
  background-color: #e0a800;
}
