/*
Archivo: site.css
Proyecto: RiskWeb
Marca: ALUTech.Ti


Responsabilidad:
Estilos globales del sitio.


*/

:root {


--alutech-purple: #6d28d9;
--alutech-purple-light: #8b5cf6;
--alutech-blue: #2563eb;

--bg-color: #f8fafc;
--card-bg: #ffffff;

--text-color: #1f2937;
--border-color: #e5e7eb;

--shadow:
    0 10px 30px rgba(0, 0, 0, .08);


}

/* ===================================================== */
/* DARK MODE */
/* ===================================================== */

[data-theme="dark"] {

    --bg-color: #111827;

    --card-bg: #1e293b;

    --text-color: #f8fafc;

    --border-color: #334155;

}

/* ===================================================== */
/* BASE */
/* ===================================================== */

body {


background: var(--bg-color);
color: var(--text-color);

min-height: 100vh;

font-family:
    "Segoe UI",
    sans-serif;


transition:
    background-color .35s ease,
    color .35s ease;

}

/* ===================================================== */
/* NAVBAR */
/* ===================================================== */

.navbar-brand {


color: var(--alutech-purple) !important;

font-size: 1.25rem;
font-weight: 700;


}

.nav-link {


color: var(--text-color);

font-weight: 500;

text-decoration: none;


}

.nav-link:hover {


color: var(--alutech-purple);


}

.nav-link.active {


color: var(--alutech-purple);

font-weight: 600;


}

.theme-toggle {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    border:
        1px solid
        rgba(139,92,246,.25);

    background:
        rgba(139,92,246,.08);

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    color:
        var(--alutech-purple-light);

    transition:
        all .25s ease;

}

.theme-toggle:hover {

    transform:
        translateY(-2px);

    background:
        rgba(139,92,246,.18);

    box-shadow:
        0 0 12px
        rgba(139,92,246,.35);

}

.theme-toggle i {

    font-size: 1rem;

}

/* ===================================================== */
/* HERO */
/* ===================================================== */

.hero-section {


padding-top: 3rem;
padding-bottom: 2rem;


}

.brand-label {


color: var(--alutech-purple);

font-size: .9rem;

text-transform: uppercase;

letter-spacing: 1.5px;

font-weight: 700;


}

.hero-title {


color: var(--alutech-purple);

font-size: clamp(3rem, 8vw, 5rem);

font-weight: 800;

margin-bottom: .5rem;


}

.hero-subtitle {


font-size: 1.5rem;

font-weight: 600;

margin-bottom: 1rem;


}

.hero-description {


max-width: 720px;

margin: auto;

color: #64748b;


}

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

.section-title {


text-align: center;

margin-bottom: 2rem;

font-weight: 700;


}

/* ===================================================== */
/* CARDS */
/* ===================================================== */

.tool-card {


display: block;

text-decoration: none;

color: inherit;

background: var(--card-bg);

border: 1px solid var(--border-color);

border-radius: 18px;

padding: 2rem;

height: 100%;

box-shadow: var(--shadow);

transition:
    transform .25s,
    box-shadow .25s,
    background-color .35s ease,
    border-color .35s ease;


}

.tool-card:hover {


transform: translateY(-5px);

box-shadow:
    0 15px 35px rgba(0, 0, 0, .12);

color: inherit;


}

.tool-icon {


display: block;

font-size: 3rem;

color: var(--alutech-purple);

margin-bottom: 1rem;


}

/* ===================================================== */
/* PRIVACIDAD */
/* ===================================================== */

.privacy-card {


background: #ecfeff;

border-left: 5px solid var(--alutech-blue);

border-radius: 16px;

padding: 2rem;

box-shadow: var(--shadow);


}

.privacy-grid {


display: grid;

grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));

gap: 1rem;

margin-top: 1rem;


}

/* ===================================================== */
/* BOTONES */
/* ===================================================== */

.btn-riskweb {


background: var(--alutech-purple);

border: none;

color: white;

padding: .75rem 1.5rem;

border-radius: 12px;

font-weight: 600;


}

.btn-riskweb:hover {


background: var(--alutech-purple-light);

color: white;


}

/* ===================================================== */
/* AVISO */
/* ===================================================== */

.warning-card {


background: #fef3c7;

border-left: 5px solid #f59e0b;

border-radius: 16px;

padding: 1.5rem;

box-shadow: var(--shadow);


}

/* ===================================================== */
/* PASSWORD CHECK */
/* ===================================================== */

.analysis-status {


text-align: center;

padding: 2rem;

border-radius: 16px;

background: #f8fafc;

border: 1px solid var(--border-color);


}

.analysis-icon {


font-size: 3rem;

color: var(--alutech-purple);

margin-bottom: 1rem;


}

.strength-container {


margin-top: 1.5rem;


}

.strength-bar {


width: 100%;

height: 14px;

background: #e5e7eb;

border-radius: 999px;

overflow: hidden;


}

.strength-fill {


width: 0%;

height: 100%;

background: #22c55e;

border-radius: 999px;

transition: width .35s ease;


}

.strength-label {


margin-top: .5rem;

font-weight: 600;

text-align: center;


}

.metric-card {


background: var(--card-bg);

border: 1px solid var(--border-color);

border-radius: 12px;

padding: 1rem;

text-align: center;

height: 100%;

box-shadow: var(--shadow);


}

.metric-title {


font-size: .9rem;

color: #64748b;

margin-bottom: .5rem;


}

.metric-value {


font-size: 1.25rem;

font-weight: 700;

color: var(--alutech-purple);


}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */

footer {


margin-top: 4rem;

padding: 2rem 0;

border-top: 1px solid var(--border-color);


}

footer h5 {


color: var(--alutech-purple);

font-weight: 700;


}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media (max-width: 576px) {


.navbar .container {

    flex-direction: column;

    gap: .75rem;
}

.hero-title {

    font-size: 3rem;
}

.hero-subtitle {

    font-size: 1.1rem;
}

}

/* ===================================================== */
/* PASSWORD GENERATOR */
/* ===================================================== */

.generated-password {

    font-size: clamp(
        1.25rem,
        4vw,
        2rem
    );

    font-weight: 700;

    overflow-wrap: break-word;

    word-break: break-word;

    text-align: center;

    min-height: 3rem;
}




/* ===================================================== */
/* DARK MODE - NAVBAR */
/* ===================================================== */

[data-theme="dark"] .navbar {

    background: #1e293b !important;

    border-bottom:
        1px solid #334155;

}

[data-theme="dark"] .nav-link {

    color: #f8fafc;

}

[data-theme="dark"] .nav-link:hover {

    color: var(--alutech-purple-light);

}


/* ===================================================== */
/* DARK MODE - INPUTS */
/* ===================================================== */

[data-theme="dark"] .form-control {

    background: #0f172a;

    color: #f8fafc;

    border-color: #475569;

}

[data-theme="dark"] .form-control:focus {

    background: #0f172a;

    color: #f8fafc;

    border-color:
        var(--alutech-purple-light);

    box-shadow:
        0 0 0 .2rem
        rgba(139, 92, 246, .25);

}


/* ===================================================== */
/* DARK MODE - TOOL CARD */
/* ===================================================== */

[data-theme="dark"] .tool-card {

    background:
        var(--card-bg);

    border-color:
        var(--border-color);

}


/* ===================================================== */
/* DARK MODE - PRIVACY CARD */
/* ===================================================== */

[data-theme="dark"] .privacy-card {

    background: #172554;

    color: #f8fafc;

    border-left:
        5px solid #60a5fa;

}

[data-theme="dark"] .privacy-card h5 {

    color: #f8fafc;

}

[data-theme="dark"] .privacy-card p {

    color: #e2e8f0;

}


/* ===================================================== */
/* DARK MODE - WARNING CARD */
/* ===================================================== */

[data-theme="dark"] .warning-card {

    background: #451a03;

    color: #fef3c7;

    border-left:
        5px solid #f59e0b;

}


/* ===================================================== */
/* DARK MODE - ANALYSIS */
/* ===================================================== */

[data-theme="dark"] .analysis-status {

    background: #0f172a;

    border-color: #334155;

}


/* ===================================================== */
/* DARK MODE - METRICS */
/* ===================================================== */

[data-theme="dark"] .metric-card {

    background: #0f172a;

    border-color: #334155;

}

[data-theme="dark"] .metric-title {

    color: #cbd5e1;

}


/* ===================================================== */
/* DARK MODE - TEXT */
/* ===================================================== */

[data-theme="dark"] .hero-description {

    color: #cbd5e1;

}

[data-theme="dark"] .text-muted {

    color: #cbd5e1 !important;

}

/* ===================================================== */
/* DARK MODE - THEME TOGGLE */
/* ===================================================== */

[data-theme="dark"] .theme-toggle {

    background:
        linear-gradient(
            135deg,
            rgba(109,40,217,.25),
            rgba(139,92,246,.45)
        );

    color: #ffffff;

    border:
        1px solid
        rgba(255,255,255,.15);

    box-shadow:
        0 0 16px
        rgba(139,92,246,.35);

}

[data-theme="dark"] .theme-toggle:hover {

    background:
        linear-gradient(
            135deg,
            rgba(109,40,217,.35),
            rgba(139,92,246,.60)
        );

    box-shadow:
        0 0 22px
        rgba(139,92,246,.55);

}

.navbar,
.privacy-card,
.warning-card,
.analysis-status,
.metric-card,
.form-control,
.theme-toggle {

    transition:
        background-color .35s ease,
        border-color .35s ease,
        color .35s ease,
        box-shadow .35s ease;

}