:root {
  --fondo: #101117;
  --panel: #2340be;
  --texto: #e8eaf6;
  --suave: #44559c;
  --acento: #f5b942;
  --borde: #2c3358;
  --beige: #f3ead8;
  --beige-claro: #faf5ea;
  --cafe: #5b3d2a;
  --cafe-claro: #8a6446;
  --verde: #2f4a32;
  --verde-claro: #6f8a5b;
  --fuente-titulo: "Cormorant Garamond", Georgia, serif;
  --fuente-texto: "Lora", Georgia, serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
   background-color: #1c2019;
    padding: 30px 15px;
    width: 100%;
    height: 100%;
}

.carrusel {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    height: 90%;
}

.carrusel-contenedor {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.carrusel-pista {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrusel-pista img {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.flecha:hover {
    background-color: #8b6748;
}

.anterior {
    left: 15px;
}

.siguiente {
    right: 15px;
}

.indicadores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.indicador {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background-color: #c9c0b5;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicador.activo {
    background-color: #8b6748;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .carrusel-pista img {
        height: 260px;
    }

    .flecha {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 520px) {
  :root { --ancho: clamp(150px, 44vw, 220px); }
  .marco { padding: 1rem 0.5rem 0.8rem; outline-offset: 4px; }
  .flecha { width: 30px; background: rgba(253, 253, 251, 0.75); }
  .flecha svg { width: 80%; }
  .ficha { padding: 0.9rem 1rem 1.1rem; }
}

/* ---------- Respetar "reducir movimiento" ---------- */
@media (prefers-reduced-motion: reduce) {
  .carta, .ficha, .foto img { transition: none; }
}