/* ================================
   DAKAR STUDIOS — BASE
   ================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--dakar-black);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 80% -10%, rgba(249, 115, 22, 0.07), transparent 28rem),
        var(--dakar-black);
    color: var(--dakar-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: var(--noise-bg);
    opacity: 0.04; /* Muy sutil */
    z-index: 9999;
    pointer-events: none;
}

/* Suavizar el scroll para que se sienta natural */
html {
    scroll-behavior: smooth;
}

body.menu-open {
    overflow: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.7em;
    color: var(--dakar-white);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

p {
    color: var(--dakar-text-soft);
}

ul,
ol {
    padding-left: 1.25rem;
}

::selection {
    background: var(--dakar-orange);
    color: var(--dakar-white);
}

:focus-visible {
    outline: 2px solid var(--dakar-orange-light);
    outline-offset: 4px;
}

.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.container-wide {
    width: min(100% - (var(--gutter) * 2), var(--container-wide));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--section-padding);
}

.section--tight {
    padding-block: clamp(55px, 7vw, 90px);
}

.section--dark {
    background: var(--dakar-surface);
}

.section__header {
    max-width: 760px;
    margin-bottom: 50px;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--dakar-orange-light);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section__eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--dakar-orange);
    box-shadow: 0 0 16px var(--dakar-orange-glow-strong);
}

.section__title {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.section__description {
    max-width: 680px;
    margin-bottom: 0;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--dakar-muted);
}

.text-orange {
    color: var(--dakar-orange);
}

.text-muted {
    color: var(--dakar-muted);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

/* Accessibility */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: var(--z-toast);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--dakar-orange);
    color: var(--dakar-white);
    transform: translateY(-150%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dakar-black);
}

::-webkit-scrollbar-thumb {
    background: var(--dakar-surface-3);
    border: 2px solid var(--dakar-black);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dakar-orange-dark);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* --- CORRECCIÓN DEL HERO SLIDER --- */
.hero-slider {
    width: 100%;
    height: 90vh; /* Un poco más alto para que luzca */
    min-height: 600px;
    position: relative;
    background-color: #050505;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Oscurecemos un poco más el fondo para que el texto resalte */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.7) 50%, rgba(5,5,5,0.4) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 800px; /* Limitamos el ancho para que no se riegue */
    margin-left: 0;   /* Quitamos el pegado a la izquierda */
    padding: 0 5%;    /* Margen interno de seguridad */
}

/* Estilo para los títulos en el slider */
.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero__description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Ajuste de los botones para que no se vean gigantes */
.hero__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- ARREGLAR LAS FLECHAS --- */
.swiper-button-next, 
.swiper-button-prev {
    color: var(--orange) !important;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05); /* Un circulito sutil detrás */
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 1.5rem !important; /* Flechas más elegantes y pequeñas */
    font-weight: bold;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: var(--orange);
    color: white !important;
}

/* Mover la paginación (los puntitos) un poco hacia arriba */
.swiper-pagination-bullets {
    bottom: 30px !important;
}