/* ==============================
   ESTILOS GENERALES
   ============================== */
body {
    margin: 0;
    background: #0c0c0c;
    font-family: Arial, Helvetica, sans-serif;
    color: #eaeaea;
    line-height: 1.6;
    text-align: center;
}

/* ==============================
   HERO (HEADER)
   ============================== */
.hero {
    background-image: url('../assets/header-bg.png');
    background-size: cover;
    background-position: center;
    padding: 70px 20px;
}

.hero-content {
    max-width: 700px;
    margin: auto;
}

.hero .logo {
    width: 220px;
    max-width: 65%;
    margin-bottom: 10px;
}

.hero h1 {
    margin: 15px 0 0 0;
    font-size: 2rem;
    font-weight: 800;
    color: #00aaff;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* ==============================
   INTRO
   ============================== */
.intro {
    max-width: 700px;
    margin: auto;
    padding: 40px 20px;
}

.intro h2 {
    color: #00aaff;
    font-size: 1.8rem;
}

/* ==============================
   SERVICIOS
   ============================== */
.services {
    padding: 40px 20px;
}

.services h2 {
    color: #00aaff;
    font-size: 1.8rem;
}

.service-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.service-card {
    background: #1a1a1a;
    padding: 25px;
    width: 260px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #222;
}

.service-card h3 {
    color: #00aaff;
}

.service-card:hover {
    transform: translateY(-5px);
    background: #222;
}

/* ==============================
   DETALLES DESPLEGABLES
   ============================== */
.detail {
    display: none;
    max-width: 800px;
    margin: 40px auto;
    background: #111;
    padding: 30px 25px;
    border-radius: 12px;
    border: 1px solid #222;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
    text-align: left;
}

.detail.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.detail h2 {
    color: #00aaff;
    margin-bottom: 15px;
}

.detail ul {
    padding-left: 20px;
}

.detail ul li {
    margin-bottom: 8px;
}

/* ==============================
   CARRUSEL DE MARCAS
   ============================== */
.brand-carousel {
    width: 100%;
    overflow: hidden;
    background: #0d0d0d;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden; /* Garantiza arranque desde borde izquierdo */
}

.carousel-track {
    display: flex;
    gap: 60px;
    align-items: center;

    /* Ahora inicia desde la izquierda */
    transform: translateX(0);

    animation: slide 28s linear infinite;
    opacity: 0.9;
}

.carousel-track img {
    height: 40px;
    filter: grayscale(100%) brightness(150%);
    opacity: 0.75;
    transition: 0.3s;
}

.carousel-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Animación */
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ==============================
   FOOTER
   ============================== */
footer {
    padding: 35px 20px;
    text-align: center;
    background: #000;
    opacity: 0.95;
    margin-top: 0;
    font-size: 1rem;
    border-top: 1px solid #111;
}

footer p:first-child {
    color: #00aaff;
    font-weight: bold;
}

/* ==============================
   RESPONSIVE - MÓVIL
   ============================== */
@media (max-width: 600px) {

    .hero {
        padding: 45px 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .service-card {
        width: 90%;
    }

    .detail {
        max-width: 92%;
        margin: 25px auto !important;
        padding: 25px 20px;
        max-height: 75vh;
        overflow-y: auto;
    }

    .carousel-track img {
        height: 30px;
    }
}
