﻿/* filepath: c:\Apache24\htdocs\buslinnes\assets\css\index.css */

/* =========================
   VARIABLES — interfaz normal
   ========================= */
:root{
    /* layout */
    --header-height: 72px;
    --container-max-width: 1200px;

    /* branding / accents (modo normal) - Heredados de _variables.css */
    --accent: var(--primary-color);
    --text-color: #25212cff;     /* color de texto principal (modo normal) */
    --header-text: #ffffff;      /* color general dentro del header (por defecto blanco) */

    /* botones (modo normal) - Heredados de _variables.css */
    --btn-border: var(--primary-color);
    --btn-text: var(--primary-color);
    --btn-hover-bg: var(--primary-color);
    --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;
    scroll-padding-top: 80px;
}

/* =========================
   BODY (INTERFAZ NORMAL)
   ========================= */
body {
    color: var(--text-color);
    line-height:1.6;
    min-height:100vh;
    position:relative;
    overflow-x:hidden;
    padding-top: var(--header-height); /* espacio para header fijo */
    
    /* Fondo patrón de puntos (Modo Claro) */
    background-color: #d1d1d1ff;
    background-image: 
        radial-gradient(var(--primary-color) 3%, transparent 6%),
        radial-gradient(var(--primary-color) 3%, transparent 6%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

/* =========================
   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 a { text-decoration: none; }
.logo { display:flex; align-items:center; gap:10px; font-weight:700; }
.header-back-arrow {
    font-size: 24px;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.header-back-arrow:hover {
    transform: scale(1.1);
}

.logo-img {
    width: 50px;
    height: auto;
    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(--primary-color);
    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: 0px;
    display:flex;
    align-items:self-start;
    padding: 48px 0;
}
.hero-container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

#how-it-works .hero-container {
    flex-direction: row-reverse;
}

#how-it-works .hero-image {
    justify-content: flex-start;
}
.hero-content { flex:1; max-width:600px; color: var(--text-color); }
.hero-content h1 { 
    font-size: 4rem; 
    line-height:1.1; 
    margin-bottom:0px; 
    background: var(--primary-color);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    padding: 4px 20px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    clip-path: polygon(0 0, 5% 10%, 0 20%, 5% 30%, 0 40%, 5% 50%, 0 60%, 5% 70%, 0 80%, 5% 90%, 0 100%, 10% 95%, 20% 100%, 30% 95%, 40% 100%, 50% 95%, 60% 100%, 70% 95%, 80% 100%, 90% 95%, 100% 100%, 95% 90%, 100% 80%, 95% 70%, 100% 60%, 95% 50%, 100% 40%, 95% 30%, 100% 20%, 95% 10%, 100% 0);
}
#how-title {
    background: var(--accent);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    padding: 4px 10px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
}
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.step-content {
    flex: 1;
}
.step-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}
.highlight-text {
    background: var(--accent);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    padding: 2px 8px;
    display: inline-block;
    border-radius: 6px;
}
.step-description {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--accent);
}
.step-description p {
    margin: 0;
    color: var(--text-color);
}
.hero-content #hero-subtitle {
    padding-right: 40px;
}
.hero-content #hero-title {
    transform: rotate(-2deg);
}
.hero-content #hero-subtitle {
    transform: rotate(2deg);
}
.hero-content #hero-subtitle2 {
    transform: rotate(-2deg);
}
.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; }

.p-container {
    background-color: #d1d1d1;
    border: 1px solid var(--accent);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 18px;
    margin-top: 20px;
}
body.dark .p-container {
    background-color: #21252c;
}

.hero-image { flex:1; display:flex; justify-content:flex-end; }
.hero-image img { width:100%; max-width:450px; height:auto; border-radius:16px; object-fit:contain; }

.hero-img-light { display: block; }
.hero-img-dark { display: none; }
body.dark .hero-img-light { display: none; }
body.dark .hero-img-dark { display: block; }

/* =========================
   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;
    }

    /* En pantallas pequeñas, el título de "Cómo funciona" alineado a la izquierda */
    #how-it-works .hero-container {
        text-align: left;
        align-items: flex-start;
    }

    #how-it-works .hero-content {
        text-align: left;
    }
    
    .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-content h1 { font-size:2.5rem; }
    .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; }
}

@media (max-width: 768px) {
    /* Oculta la ilustración de la sección "Cómo funciona" en pantallas pequeñas */
    #how-it-works .hero-image {
        display: none;
    }
}

/* =========================
   SECCIONES ADICIONALES
   ========================= */

/* Sección: Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    color: #111111;
    overflow: visible;
    transition: transform 0.35s ease;
    transform-style: preserve-3d;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: #111111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translate3d(14px, 14px, -1px);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--primary-color);
    border-radius: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: inherit;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
}

.feature-card p {
    margin: 0;
    color: inherit;
    line-height: 1.5;
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0f0f0f;
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s ease;
}

.feature-cta:hover {
    transform: translateY(-6px);
}

.feature-cta i {
    font-size: 0.9rem;
}

.feature-illustration {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 120px;
    height: 120px;
    opacity: 0.2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: grayscale(1);
}

.feature-card.has-illustration {
    padding-right: 140px;
}

/* Paleta individual por tarjeta (blanco, negro y morado) */
.feature-card-rutas {
    background: #d1d1d1;
    color: #111111;
    border: 1px solid #111111;
}
.feature-card-rutas::after {
    background: #111111;
}
.feature-card-rutas .feature-tag {
    background: var(--primary-color);
    color: #ffffff;
}
.feature-card-rutas h3 {
    background: #111111;
    color: #ffffff;
}
.feature-card-rutas .feature-cta {
    background: #111111;
    color: #ffffff;
}

.feature-card-analisis {
    background: var(--primary-color);
    color: #ffffff;
    border: 1px solid #111111;
}
.feature-card-analisis::after {
    background: #111111;
}
.feature-card-analisis .feature-tag {
    background: #111111;
    color: #ffffff;
}
.feature-card-analisis h3 {
    background: #ffffff;
    color: #111111;
}
.feature-card-analisis .feature-cta {
    background: #ffffff;
    color: #111111;
}

.feature-card-gestion {
    background: #111111;
    color: #ffffff;
    border: 1px solid var(--primary-color);
}
.feature-card-gestion::after {
    background: var(--primary-color);
}
.feature-card-gestion .feature-tag {
    background: #ffffff;
    color: #111111;
}
.feature-card-gestion h3 {
    background: var(--primary-color);
    color: #ffffff;
}
.feature-card-gestion .feature-cta {
    background: var(--primary-color);
    color: #ffffff;
}

.feature-card-usuarios {
    background: #d1d1d1;
    color: #111111;
    border: 1px solid var(--primary-color);
}
.feature-card-usuarios::after {
    background: var(--primary-color);
}
.feature-card-usuarios .feature-tag {
    background: #111111;
    color: #ffffff;
}
.feature-card-usuarios h3 {
    background: var(--primary-color);
    color: #ffffff;
}
.feature-card-usuarios .feature-cta {
    background: var(--primary-color);
    color: #ffffff;
}

/* Docs cards - separate from feature-card */
.docs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #d1d1d1;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    color: #000000;
    overflow: visible;
    transition: transform 0.35s ease;
    transform-style: preserve-3d;
}

.docs-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translate3d(14px, 14px, -1px);
    z-index: -1;
}

.docs-card:hover {
    transform: translateY(-6px);
}

.docs-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.docs-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: inherit;
    align-self: flex-start;
}

.docs-card p {
    margin: 0;
    color: inherit;
    line-height: 1.5;
}

/* Dark mode for docs cards */
body.dark .docs-card {
    background: #21252c;
    color: #ffffff;
}

body.dark .docs-card::after {
    background: var(--primary-color);
}

/* Specific styles for each docs card - keeping only the icon colors different */
.docs-card-rutas i {
    color: var(--primary-color);
}

.docs-card-analisis i {
    color: var(--primary-color);
}

.docs-card-gestion i {
    color: var(--primary-color);
}

.docs-card-usuarios i {
    color: var(--primary-color);
}

/* Support cards - separate from feature-card and docs-card */
.support-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #d1d1d1;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    color: #000000;
    overflow: visible;
    transition: transform 0.35s ease;
    transform-style: preserve-3d;
}

.support-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translate3d(14px, 14px, -1px);
    z-index: -1;
}

.support-card:hover {
    transform: translateY(-6px);
}

.support-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.support-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: inherit;
    align-self: flex-start;
}

.support-card p {
    margin: 0;
    color: inherit;
    line-height: 1.5;
}

/* Dark mode for support cards */
body.dark .support-card {
    background: #21252c;
    color: #ffffff;
}

body.dark .support-card::after {
    background: var(--primary-color);
}

/* Specific styles for each support card - keeping only the icon colors different */
.support-card-rutas i {
    color: var(--primary-color);
}

.support-card-analisis i {
    color: var(--primary-color);
}

.support-card-gestion i {
    color: var(--primary-color);
}

.support-card-usuarios i {
    color: var(--primary-color);
}

/* Sección: Casos de Éxito (Testimonios) */
.cs-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cs-tag {
    background: #d1d1d1ff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.5rem;
    white-space: nowrap;
    box-shadow: 0 8px 20px var(--primary-color);
}

#features-title {
    background: #d1d1d1ff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.5rem;
    white-space: nowrap;
    box-shadow: 0 8px 20px var(--primary-color);
    display: inline-block;
}

.cs-description {
    max-width: 600px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    background: #d1d1d1;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(4px);
}

.cs-container {
    background: var(--accent);
    border-radius: 32px;
    padding: 48px;
    display: flex;
    gap: 32px;
    box-shadow: 0 20px 40px var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: -20px;
}

.cs-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 32px;
    transform: translate3d(14px, 14px, -1px);
    z-index: -1;
}

.cs-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cs-quote {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.cs-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-author strong {
    color: #ffffff;
    font-size: 1rem;
}

.cs-author span {
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
}

.cs-separator {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .cs-container {
        flex-direction: column;
        padding: 32px;
        margin-top: -15px;
    }
    .cs-separator {
        width: 100%;
        height: 1px;
    }
}

/* 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;
    background: var(--accent);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    padding: 4px 10px;
    display: inline-block;
    border-radius: 8px;
}

.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 var(--primary-color);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
    opacity: 1;
}

body.dark .footer-bottom a {
    color: #ffffff;
}

/* Responsive para nuevas secciones */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 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 */
}

/* 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(2, minmax(0, 1fr));
}

/* 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, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .features-full-width .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 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;
    }
}

/* Sección Cómo Funciona - Fondo Degradado Extendido */
#how-it-works {
    position: relative;
    color: #111111;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 20px;
}

#how-it-works::after {
    content: "";
    position: absolute;
    top: -250px;
    bottom: -250px;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent 0%, #d1d1d1 20%, #d1d1d1 80%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

#how-it-works h2 {
    color: #ffffff !important;
}

#how-it-works p {
    color: #111111 !important;
}

/* =========================
   ACCESIBILIDAD (WCAG 2.1 AA)
   ========================= */
/* 1. Focus visible claro para todos los elementos interactivos */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* 2. Ocultar el menú móvil a lectores de pantalla y teclado cuando está cerrado */
@media (max-width: 992px) {
    .nav-menu {
        visibility: hidden;
        /* Retrasar visibility al cerrar para permitir la animación de opacidad */
        transition: all 180ms ease-in-out, visibility 0s linear 180ms;
    }
    .nav-menu.open {
        visibility: visible;
        /* Aplicar visibility inmediatamente al abrir */
        transition: all 180ms ease-in-out, visibility 0s linear 0s;
    }
}


/* ===========================================================
   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: var(--primary-color);
    --btn-text: var(--primary-color);
    --btn-hover-bg: var(--primary-color);
    --btn-hover-text: #111111;

    --btn-primary-bg: #f5f5f5;
    --btn-primary-text: #121212;

    /* footer en modo oscuro */
    --footer-bg: #25212cff; 
    --footer-text-color: #d1d1d1ff;

    /* --- NUEVO COLOR DE FONDO (MODO OSCURO) --- */
    /* Mantiene los puntos del color primario, solo cambia el fondo base */
    background-color: #25212cff; 
}

/* header background tenue en modo oscuro (mejor contraste con --header-text) */
body.dark header {
    background: #ffffff0a;
}
/* Reglas corregidas para contenido hero */
body.dark .hero-content {
    color: var(--text-color);
}

body.dark .hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0px;
    background: var(--accent);
    color: #d1d1d1;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    padding: 4px 20px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    clip-path: polygon(0 0, 5% 10%, 0 20%, 5% 30%, 0 40%, 5% 50%, 0 60%, 5% 70%, 0 80%, 5% 90%, 0 100%, 10% 95%, 20% 100%, 30% 95%, 40% 100%, 50% 95%, 60% 100%, 70% 95%, 80% 100%, 90% 95%, 100% 100%, 95% 90%, 100% 80%, 95% 70%, 100% 60%, 95% 50%, 100% 40%, 95% 30%, 100% 20%, 95% 10%, 100% 0);
}
body.dark .hero-content #hero-subtitle {
    padding-right: 40px;
}
body.dark .hero-content #hero-title {
    transform: rotate(-2deg);
}
body.dark .hero-content #hero-subtitle {
    transform: rotate(2deg);
}
body.dark .hero-content #hero-subtitle2 {
    transform: rotate(-2deg);
}

body.dark .step-content h3 {
    color: white;
}
body.dark .step-description {
    background: #333333;
    border: 1px solid var(--accent);
}
body.dark .step-description p {
    color: white;
}

/* Asegurar que las reglas responsive apliquen en modo oscuro */
@media (max-width: 576px) {
    body.dark .hero-content h1 {
        font-size: 2.5rem; /* Mismo tamaño que en modo normal */
    }
}

/* Sección Cómo Funciona - Modo Oscuro */
body.dark #how-it-works {
    background: none;
    color: #ffffff;
}

body.dark #how-it-works::after {
    background: linear-gradient(to bottom, transparent 0%, #25212c 20%, #25212c 80%, transparent 100%);
}

body.dark #how-it-works h2,
body.dark #how-it-works p {
    color: #ffffff !important;
}

body.dark .cs-container {
    background: #21252c;
}

body.dark .cs-description {
    background: #21252c;
    color: white;
}

body.dark .cs-tag {
    background: #21252c;
    color: white;
    border: 1px solid #555555;
}

body.dark #features-title {
    background: #21252c;
    color: white;
    border: 1px solid #555555;
}

body.dark .cs-container::after {
    background: #333333;
    border: 1px solid #555555;
}

/* ===========================================================
   FIN del archivo
   =========================================================== */