/* filepath: c:\Apache24\htdocs\buslinnes\assets\css\index.css */
/* ===========================================================
   Buslinnes — Hoja de estilos reordenada
   - Primera sección: INTERFAZ NORMAL (por defecto)
   - Segunda sección (abajo): OVERRIDES para MODO OSCURO
   - Variables usadas para evitar duplicidad y facilitar overrides
   - No se cambió la estructura ni tamaños; sólo se centralizaron colores
   =========================================================== */

/* =========================
   VARIABLES — interfaz normal
   ========================= */
:root{
    /* layout */
    --header-height: 72px;
    --container-max-width: 1200px;

    /* branding / accents (modo normal) */
    --accent: #8059d4ff;         /* color de links principales */
    --text-color: #25212cff;     /* color de texto principal (modo normal) */
    --header-text: #ffffff;      /* color general dentro del header (por defecto blanco) */

    /* botones (modo normal) */
    --btn-border: #8059d4ff;           /* borde de btn-outline */
    --btn-text: #8059d4ff;             /* texto en botones outline */
    --btn-hover-bg: #8059d4ff;   /* fondo al hacer hover en btn-outline */
    --btn-hover-text: #ffffff;       /* texto en hover de btn-outline */

    /* primary button (modo normal) */
    --btn-primary-bg: #ffffff;
    --btn-primary-text: var(--accent);

    /* footer (modo normal) */
    --footer-bg: #d1d1d1ff;
    --footer-text-color: #333333; /* Cambiado a color oscuro para mejor contraste */
}

/* =========================
   RESET / BASE
   ========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html, body {
    height:100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================
   BODY (INTERFAZ NORMAL)
   ========================= */
body {
    color: var(--text-color);
    line-height:1.6;
    min-height:100vh;
    position:relative;
    background-color:#0a0014;
    overflow-x:hidden;
    padding-top: var(--header-height); /* espacio para header fijo */
}

/* Fondo animado (por defecto) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/assets/img/pattern.svg");
    background-repeat: repeat;
    background-size: 150px;
    animation: mover-fondo 5s linear infinite;
    z-index: -1;
}
@keyframes mover-fondo {
    from { background-position: 0 0; }
    to   { background-position: 150px 0; }
}

/* =========================
   CONTAINER
   ========================= */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    padding-left: env(safe-area-inset-left, 20px);
    padding-right: env(safe-area-inset-right, 20px);
}

/* =========================
   HEADER (FIXED)
   ========================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1200;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255,255,255,0.03);

    /* color textual del header (usa variable para facilitar override) */
    color: var(--header-text);
}
.header-container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    gap: 12px;
    padding: 0 20px; /* evita recortes laterales en pantallas pequeñas */
    box-sizing: border-box;
}

/* Logo */
.logo { display:flex; align-items:center; gap:10px; font-weight:700; }
.logo-img{
    width: 50px;
    height: auto;
    /* imagen por defecto (modo normal) */
    content: url("/assets/img/logomorado.svg");
    display: inline-block;
}

/* Mobile toggle (hamburger) */
.mobile-toggle {
    display:none; /* se habilita en media queries */
    background:transparent;
    border:0;
    color: var(--accent);
    font-size:1.4rem;
    cursor:pointer;
    padding:8px;
    line-height:1;
}

/* =========================
   NAV
   ========================= */
.nav-menu {
    display:flex;
    gap:30px;
    align-items:center;
    justify-content:center;
    transition:all 180ms ease-in-out;
}
.nav-link {
    color: var(--accent);
    text-decoration:none;
    font-weight:500;
    padding:6px 8px;
    border-radius:6px;
    transition:background .18s ease, transform .18s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* =========================
   BOTONES (INTERFAZ NORMAL)
   ========================= */
.header-auth { display:flex; gap:12px; align-items:center; }

/* base btn */
.btn {
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    font-weight:500;
    display:inline-flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

/* outline (usa variables) */
.btn-outline {
    background:transparent;
    border:2px solid var(--btn-border);
    color: var(--btn-text);
}
.btn-outline:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
}

/* primary (usa variables) */
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border:2px solid var(--btn-border);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,0.18);
    opacity: .96;
}

/* =========================
   HERO / SECCIONES
   ========================= */
.hero {
    min-height: calc(100vh - var(--header-height));
    display:flex;
    align-items:self-start;
    padding: 48px 0;
}
.hero-container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}
.hero-content { flex:1; max-width:600px; color: var(--text-color); }
.hero h1 { font-size: 3rem; line-height:1.1; margin-bottom:18px; color: var(--accent); text-shadow: 1px 1px 1px #0a0014; }
.hero p { font-size:1.05rem; margin-bottom:18px; opacity:0.92; color: var(--text-color); }
.hero-buttons { display:flex; gap:12px; margin-top:6px; }

.hero-image { flex:1; display:flex; justify-content:flex-end; }
.hero-image img { width:100%; max-width:600px; height:auto; border-radius:16px; box-shadow:0 20px 40px rgba(0,0,0,0.35); object-fit:cover; }

/* =========================
   ANIMACIONES UTILES
   ========================= */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0); }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
    :root { --header-height: 64px; } /* reduce header en pantallas medianas */
    .container { padding: 0 14px; }
    .mobile-toggle { display:inline-flex; }
    .nav-menu {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(var(--header-height) + 6px);
        margin: 0;
        padding: 12px 14px;
        background: rgba(37, 33, 44, 0.938);
        backdrop-filter: blur(1px);
        flex-direction: column;
        gap: 8px;
        border-radius: 10px;
        transform-origin: top;
        transform: translateY(-6px) scaleY(0.98);
        opacity: 0;
        pointer-events: none;
        z-index: 1100;
    }

    
    .nav-menu.open {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu .nav-link { display:block; padding:10px 12px; width:100%; box-sizing: border-box; }
    .hero-container { flex-direction:column; text-align:center; gap:20px; }
    .hero-content { max-width:100%; width:100%; padding: 0; }
    .hero-image { justify-content:center; margin-top:10px; width:100%; }
    .hero-image img { max-width:95%; max-height:360px; border-radius:12px; }
    .header-auth { margin-left:auto; gap:8px; }
}

@media (max-width: 576px) {
    :root { --header-height: 56px; }
    .logo-img { width:40px; }
    .hero h1 { font-size:1.9rem; }
    .nav-menu { left:10px; right:10px; padding: 10px 12px; }
    .hero-image img { max-height:240px; }
    .mobile-toggle { font-size:1.2rem; padding:6px; }
    .header-auth .btn { padding:8px 10px; font-size:0.95rem; }
}

/* =========================
   SECCIONES ADICIONALES
   ========================= */

/* Sección: Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Sección: Testimoniales */
.testimonial-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.testimonial-card .quote {
    margin-bottom: 15px;
}

.testimonial-card .fa-quote-left {
    color: var(--accent);
    font-size: 1.5rem;
    opacity: 0.6;
    margin-bottom: 10px;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 10px;
}

.author-name {
    font-weight: bold;
    color: var(--accent);
}

.author-company {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sección: Contacto */
.contact-form {
    margin: 25px 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font-family: inherit;
}

.contact-info {
    background: rgba(255, 255, 255, 0.06);
    padding: 30px;
    border-radius: 12px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    color: var(--accent);
    font-size: 1.2rem;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: white;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 50px 0 20px;
    background: var(--footer-bg); /* Usa la variable para facilitar el cambio en modo oscuro */
    color: var(--footer-text-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo-img {
    width: 100px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--accent);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-column i {
    margin-right: 8px;
    color: var(--accent);
    font-size: 0.9rem;
}

.footer-column .social-links {
    margin-top: 15px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #8059d4ff;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive para nuevas secciones */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        margin-top: 30px;
    }
}

/* =========================
   UTILITIES
   ========================= */
.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* QUITAR SCROLLBAR Para Chrome, Edge, Safari */
::-webkit-scrollbar {
  display: none;
}

/* Para Firefox */
html {
  scrollbar-width: none; /* oculta la barra */
}

/* General */
body {
  -ms-overflow-style: none; /* IE y Edge antiguos */
}


/* ===========================================================
   MODO OSCURO — OVERRIDES (TODO LO RELACIONADO AL DARK MODE)
   - Se colocan al final para no mezclar con la interfaz normal.
   - Usamos variables para minimizar la cantidad de reglas necesarias.
   =========================================================== */
body.dark {
    /* swap de variables para modo oscuro */
    --text-color: #d1d1d1ff;
    --text-color-h1: var(--accent);
    --header-text: #d1d1d1ff;

    /* botones en modo oscuro */
    --btn-border: #8059d4ff;
    --btn-text: #8059d4ff;
    --btn-hover-bg: #8059d4ff;
    --btn-hover-text: #111111;

    --btn-primary-bg: #f5f5f5;
    --btn-primary-text: #121212;

    /* fondo alternativo para modo oscuro (sustituye el pattern por otro si se desea) */
    background-image: url("/assets/img/pattern2.svg");
    background-repeat: repeat;
    background-size: 150px;

    /* footer en modo oscuro (diferente del fondo de la página) */
    --footer-bg: #25212cff; /* Actualizado al color solicitado */
    --footer-text-color: #d1d1d1ff;
}

/* si es necesario, la pseudo-capa se actualiza para usar la imagen alternativa */
body.dark::before {
    background-image: url("/assets/img/pattern2.svg");
}

/* logo sustituida en modo oscuro */
body.dark .logo-img {
    content: url("/assets/img/logomorado.svg");
}

/* header background tenue en modo oscuro (mejor contraste con --header-text) */
body.dark header {
    background: #ffffff0a;
}
/* Si se desea un fondo más oscuro, usar esta línea en su lugar: */
.hero-content.dark { flex:1; max-width:600px; color: var(--text-color); }
body.dark .hero h1 { font-size: 3rem; line-height:1.1; margin-bottom:18px; color: var(--accent); text-shadow: 1px 1px 1px #0a0014;}
.hero p { font-size:1.05rem; margin-bottom:18px; opacity:0.92; color: var(--text-color); }
.hero-buttons { display:flex; gap:12px; margin-top:6px; }


/* ===========================================================
   MODO OSCURO — OVERRIDES CORREGIDOS
   =========================================================== */
body.dark {
    /* Variables corregidas (agregar punto y coma) */
    --text-color: #d1d1d1ff;
    --text-color-h1: var(--accent); /* ← Punto y coma agregado */
    --header-text: #d1d1d1ff;

    /* ... (resto de variables) */
}

/* Reglas corregidas para contenido hero */
body.dark .hero-content {
    color: var(--text-color);
}

body.dark .hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--accent);
    text-shadow: 1px 1px 1px #0a0014;
}

/* Asegurar que las reglas responsive apliquen en modo oscuro */
@media (max-width: 576px) {
    body.dark .hero h1 {
        font-size: 1.9rem; /* Mismo tamaño que en modo normal */
    }
}
/* Nav y botones adoptan las variables ya definidas en body.dark,
   por lo que no se requieren múltiples reglas adicionales.
   Se mantienen aquí por si hay excepciones específicas. */
/* (reglas específicas opcionales — actualmente gestionadas por variables) */

/* ===========================================================
   FIN del archivo
   =========================================================== */

/* Añade estos estilos al final del archivo para secciones sin imágenes */

/* Para secciones de ancho completo (sin imagen lateral) */
.features-full-width,
.testimonials-full-width {
    max-width: 100% !important;
}

/* Ajuste para la rejilla de características */
.features-full-width .features-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Ajuste para las tarjetas de testimonios */
.testimonials-full-width .testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Estilos para el footer - contacto */
.footer-column i {
    margin-right: 8px;
    color: var(--accent);
    font-size: 0.9rem;
}

.footer-column .social-links {
    margin-top: 15px;
}

/* Responsive para las secciones de ancho completo */
@media (max-width: 992px) {
    .features-full-width .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-full-width .testimonial-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-full-width .features-grid,
    .testimonials-full-width .testimonial-cards {
        grid-template-columns: 1fr;
    }
}

/* Añade este estilo para crear más separación entre secciones */

/* Espaciado adicional entre secciones */
.section {
    padding: 30px 0;
}

.section-spaced {
    margin-top: 40px;
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
}

/* Añade una línea decorativa sutil entre secciones */
.section-spaced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    opacity: 0.3;
    border-radius: 3px;
}

/* Mejora el espaciado responsivo */
@media (max-width: 768px) {
    .section-spaced {
        margin-top: 30px;
        padding-top: 40px;
    }
}
