/* VARIABLES */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --white: #ffffff;
    --green: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADER */
.main-header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    margin-right: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--primary); }

/* BOTONES */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-secondary { background: #e2e8f0; color: var(--dark); }
.btn-white { background: var(--white); color: var(--primary); }

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* HERO */
.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at top right, #eff6ff, transparent);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ROLES GRID */
.roles { padding: 100px 0; background: var(--light); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--dark); }

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.role-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.icon-role {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.link-arrow {
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

/* BENEFICIOS */
.benefits { padding: 100px 0; }

.benefits-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.badge {
    background: #dbeafe;
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.green { background: #d1fae5; color: var(--green); }

.feat-list { list-style: none; margin-top: 20px; }
.feat-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.feat-list i { color: var(--green); }

/* CTA FINAL */
.cta-box {
    background: var(--primary);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-box p { margin-bottom: 2rem; opacity: 0.9; }

footer { padding: 40px 0; text-align: center; border-top: 1px solid #e2e8f0; color: var(--secondary); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .benefits-split { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
}
/* --- WIDGET DE ACCESIBILIDAD --- */
.accessibility-widget {
    position: fixed;
    top: 100px;
    right: 0; /* Cambiado de left a right */
    z-index: 9999;
}

.acc-toggle {
    background: #2d2d2d;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px; /* Invertido el redondeado para el lado derecho */
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}

.acc-menu {
    position: absolute;
    top: 0;
    right: 60px; /* Cambiado de left a right para que se despliegue hacia la izquierda */
    background: white;
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
    border: 1px solid #ddd;
}

.acc-menu.active { display: block; }

.acc-menu h3 {
    background: #f8f9fa;
    padding: 15px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

.acc-menu ul { list-style: none; padding: 0; }

.acc-menu li {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

.acc-menu li:hover { background: #f0f7ff; color: var(--primary); }
.acc-menu li i { width: 20px; text-align: center; }
.acc-menu li.reset { border-top: 1px solid #eee; font-weight: bold; }

/* --- CLASES DE ACCESIBILIDAD (Aplicadas al BODY) --- */

/* Escala de grises */
.acc-grayscale { filter: grayscale(100%); }

/* Alto contraste */
.acc-high-contrast { background: #000 !important; color: #ffff00 !important; }
.acc-high-contrast * { background-color: #000 !important; color: #ffff00 !important; border-color: #ffff00 !important; }

/* Contraste negativo */
.acc-negative { filter: invert(100%); }
.acc-negative img, .acc-negative .hero { filter: invert(100%); } /* Evita invertir imágenes para que se vean bien */

/* Fondo claro (Forzar blanco) */
.acc-light-bg { background: #fff !important; }
.acc-light-bg * { background-color: #fff !important; color: #000 !important; }

/* Subrayar enlaces */
.acc-links a { text-decoration: underline !important; font-weight: bold !important; }

/* Fuente legible */
.acc-readable { font-family: Arial, sans-serif !important; }
.acc-readable * { font-family: Arial, sans-serif !important; }