/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: 'Montserrat', sans-serif;
    background: #0b0f14;
    color: #ffffff;
    line-height: 1.6;
}

/* CONTENEDOR */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

/* LOGO */
.logo {
    flex: 0 0 auto; /* clave */
}

/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-container img {
    height: 80px; /* mÃ¡s presencia */
    width: auto;
}

.logo-container span {
    font-weight: 600;
    font-size: 18px;
    color: #d4af37; /* dorado */
    letter-spacing: 1px;
}

/* NAV */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}

/* HERO */
.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 0;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.hero-text p {
    color: #aaa;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
}

/* SECCIONES */
.section {
    padding: 70px 0;
}

.section.light {
    background: #111827;
    border-radius: 20px;
    margin: 20px 0;
}

/* TITULOS */
.section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* CARDS */
.card {
    background: #1f2937;
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    color: #d4af37;
}

.card p {
    color: #bbb;
}

/* BOTÃ“N */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: black;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

/* FORM */
form {
    max-width: 500px;
    margin: auto;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
}

form textarea {
    height: 120px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px;
    color: #777;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        flex-direction: column; /* clave */
        align-items: flex-start;
        gap: 10px;
    }

    nav {
        /*width: 100%;*/
        display: flex;
        gap: 25px; /* ðŸ”¥ MISMO que desktop */
        justify-content: flex-start; /* ðŸ”¥ no usar space-between */
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 0 0 auto;
    }

    .logo-container img {
        height: 60px;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .logo-container img {
        height: 60px; /* no tan chico */
    }
}

/* BANNER FULL WIDTH */
/* SLIDER */
.slider {
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

/* CONTENEDOR */
.slides {
    position: relative;
}

/* SLIDES FADE */
.slide {
    position: absolute;
    width: 100%;
    height: 350px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* ACTIVO */
.slide.active {
    opacity: 1;
    position: relative;
}

/* BOTONES */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    font-size: 22px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.prev { left: 15px; }
.next { right: 15px; }

/* DOTS */
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 5px;
    background: rgba(255,255,255,0.4);
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}


@media (max-width: 768px) {
    .slide {
        height: 200px;
    }
}



.alerta {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 22px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideIn 0.4s ease;

    /* 🔥 FIX compatibilidad */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* clave para Chrome/Brave */
}

/* Éxito */
.alerta.ok {
    background: rgba(40, 167, 69, 0.95);
    color: #fff;
}

/* Error */
.alerta.error {
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
}

/* Animación */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}