/* style.css - JornadaExacta (App + Landing) */

/* --- Variables CSS Globales --- */
:root {
    --primary-color: #007bff; /* Azul primario */
    --primary-color-dark: #0056b3;
    --secondary-color: #6c757d; /* Gris secundario */
    --success-color: #28a745; /* Verde éxito */
    --danger-color: #dc3545; /* Rojo peligro/error */
    --warning-color: #ffc107; /* Amarillo advertencia */
    --info-color: #17a2b8; /* Azul info */
    --light-color: #f8f9fa; /* Gris claro */
    --dark-color: #343a40; /* Gris oscuro */
    --background-color: #f4f7f6; /* Fondo general */
    --background-light-section: #ffffff; /* Fondo secciones claras */
    --card-background: #ffffff; /* Blanco para las tarjetas */
    --text-color: #495057; /* Texto principal */
    --text-light: #ffffff;
    --text-dark: #343a40;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --input-border-color: #ced4da;
    --input-focus-border-color: #80bdff;
    --input-focus-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    --border-radius: 0.3rem;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-headings: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* O una fuente diferente si quieres */
    --header-height: 90px; /* Aumentar altura si el logo es más grande */
}

/* --- Reset Básico y Estilos Globales --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container, .container-landing {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
    width: 100%;
}
main .container {
     flex-grow: 1;
}

.container-landing {
     max-width: 1140px;
     margin-left: auto;
     margin-right: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.responsive-img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 15px; color: var(--text-dark); }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-padding { padding: 60px 0; }
.background-light { background-color: var(--background-light-section); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.small-text { font-size: 0.85rem; }
.highlight { color: var(--primary-color); }

/* --- Header (APP - index.php) --- */
.header {
    background-color: var(--card-background);
    padding: 10px 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: auto; /* Altura automática para acomodar logo más grande */
    min-height: var(--header-height); /* Mantener una altura mínima */
}
/* TAMAÑO LOGO AUMENTADO (APP) */
.header .logo {
    height: 135px; /* 45px * 3 */
    width: auto;
}
body > .user-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 10px 20px;
}
body > .user-bar .welcome-message { margin-right: auto; }

.puntajes-card h2 { margin-bottom: 15px; }
.puntajes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.puntaje-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.puntaje-box:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-decoration: none; }
.puntaje-box.ok { background-color: #dff0d8; color: #3c763d; border-color: #d6e9c6; }
.puntaje-box.bad { background-color: #f2dede; color: #a94442; border-color: #ebccd1; }
.puntaje-box .puntaje-icon { font-size: 1.4rem; margin-bottom: 6px; }
.puntaje-box .puntaje-value { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.puntaje-box .puntaje-label { font-size: 0.95rem; font-weight: 600; margin-top: 4px; }
button.puntaje-box { font-family: inherit; cursor: pointer; }
@media (max-width: 600px) {
    .puntajes-grid { grid-template-columns: 1fr; }
}

.puntaje-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 15px;
    overflow-y: auto;
}
.puntaje-modal.open { display: flex; }
.puntaje-modal-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    position: relative;
    padding: 20px 25px 25px;
}
.puntaje-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.puntaje-modal-close:hover { color: #000; }
.puntaje-modal-body .detalle-title { margin: 0 0 15px; }
.detalle-table { width: 100%; border-collapse: collapse; }
.detalle-table th, .detalle-table td { padding: 8px 10px; border-bottom: 1px solid #e5e5e5; text-align: left; font-size: 0.9rem; }
.detalle-table thead th { background: #f5f5f5; font-weight: 600; }
.detalle-table .row-ok { background: #f4faf4; }
.detalle-table .row-bad { background: #fbf2f2; }
.detalle-table .motivo-cell { word-break: break-word; white-space: pre-wrap; max-width: 320px; }

/* --- Botón "De que se trata?" --- */
.info-puntos-wrapper { text-align: center; margin: 0 0 15px; }
.info-puntos-top { margin: 0 0 12px; }
.btn-info-puntos {
    background: none; border: none; color: var(--primary-color); font-size: 1rem;
    font-weight: 600; cursor: pointer; padding: 8px 16px; border-radius: 6px;
    transition: background 0.15s;
}
.btn-info-puntos:hover { background: rgba(0,123,255,0.08); }
.btn-info-puntos i { margin-right: 6px; }
.info-puntos-body h2 { margin: 0 0 12px; color: #1e293b; }
.info-puntos-body h3 { margin: 18px 0 10px; color: #334155; font-size: 1.05rem; }
.info-puntos-body ul { list-style: none; padding: 0; margin: 0; }
.info-puntos-body li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; line-height: 1.5; }
.info-puntos-body li:last-child { border-bottom: none; }
.info-puntos-body li strong { color: #1e293b; }
.info-premio {
    margin: 20px 0 15px; padding: 16px; border-radius: 8px;
    background: linear-gradient(135deg, #fef9c3, #fde68a); color: #92400e;
    font-size: 1rem; line-height: 1.5;
}
.info-cierre { margin-top: 15px; font-weight: 600; color: #1e293b; text-align: center; }

/* --- Sección Puntuación --- */
.puntuacion-section h2 { margin-bottom: 18px; }
.form-puntaje, .form-filtro { margin-bottom: 15px; }
.form-puntaje .form-row, .form-filtro .form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-puntaje .form-group, .form-filtro .form-group { flex: 1; min-width: 160px; }
.form-puntaje label, .form-filtro label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; color: #444; }
.form-puntaje select, .form-puntaje textarea,
.form-filtro select, .form-filtro input[type="date"] {
    width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.95rem;
    font-family: inherit; background: #fff; transition: border-color 0.2s;
}
.form-puntaje select:focus, .form-puntaje textarea:focus,
.form-filtro select:focus, .form-filtro input:focus { border-color: var(--primary-color); outline: none; }
.form-puntaje textarea { resize: vertical; }
.char-counter { display: block; text-align: right; font-size: 0.8rem; color: #888; margin-top: 2px; }
.form-group-btn { display: flex; align-items: flex-end; min-width: auto; flex: 0; }
.btn-secondary { background: #6c757d; color: #fff; border: none; border-radius: 6px; padding: 8px 18px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.btn-secondary:hover { background: #565e64; }
.btn-danger { background: var(--danger-color, #dc3545); color: #fff; border: none; border-radius: 6px; padding: 10px 22px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: #b52a2a; }
.puntaje-msg { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-weight: 500; }
.msg-ok { background: #d4edda; color: #155724; }
.msg-err { background: #f8d7da; color: #721c24; }
.puntajes-totales { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 0; font-size: 0.95rem; }
.puntajes-totales .tot-pos { color: #2e7d32; }
.puntajes-totales .tot-neg { color: #c62828; }
.puntajes-tabla { width: 100%; border-collapse: collapse; }
.puntajes-tabla th, .puntajes-tabla td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; font-size: 0.9rem; }
.puntajes-tabla thead th { background: #f5f5f5; font-weight: 600; position: sticky; top: 0; }
.puntajes-tabla .row-pos { background: #f9fef4; }
.puntajes-tabla .row-neg { background: #fef5f0; }
.puntajes-tabla .motivo-cell { word-break: break-word; white-space: pre-wrap; max-width: 280px; }
.btn-del-puntaje { background: none; border: none; color: #c62828; font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background 0.15s; }
.btn-del-puntaje:hover { background: rgba(198,40,40,0.1); }
.text-center { text-align: center; }

@media (max-width: 600px) {
    .form-puntaje .form-row, .form-filtro .form-row { flex-direction: column; }
    .form-group-btn { width: 100%; }
    .form-group-btn .btn-secondary { width: 100%; }
    .puntajes-tabla thead { display: none; }
    .puntajes-tabla tr { display: block; margin-bottom: 12px; border: 1px solid #e5e5e5; border-radius: 8px; padding: 8px; }
    .puntajes-tabla td { display: flex; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid #f0f0f0; }
    .puntajes-tabla td::before { content: attr(data-label); font-weight: 600; color: #666; margin-right: 10px; }
    .puntajes-tabla td:last-child { border-bottom: none; justify-content: flex-end; }
    .puntajes-tabla td:last-child::before { display: none; }
    .puntajes-totales { flex-direction: column; gap: 4px; }
}
.user-bar .welcome-message {
    font-size: 1rem;
    color: var(--text-color, #222);
    font-weight: 500;
}
.logout-form { display: inline-block; margin: 0; }
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--danger-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-logout:hover { background-color: #b52a2a; }
.btn-logout:active { transform: translateY(1px); }
@media (max-width: 600px) {
    body > .user-bar {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 12px;
    }
    body > .user-bar .welcome-message {
        font-size: 0.85rem;
        margin-right: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .btn-logout {
        padding: 5px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .btn-logout i { font-size: 1rem; margin: 0; }
    .btn-logout .btn-logout-text { display: none; }
    .btn-logout { padding: 6px 10px !important; }
    body > .user-bar { margin: 0 !important; padding: 4px 12px !important; }
    main.container { margin: 0 auto !important; padding: 0 10px !important; }
    .puntajes-card { padding: 4px 15px 15px !important; margin-top: 0 !important; }
    .puntajes-card h2 { margin-top: 0 !important; padding-top: 0 !important; }
    .card { padding: 15px; margin-bottom: 12px; }
    .info-puntos-wrapper.info-puntos-top { margin: 0 !important; padding: 0 !important; }
    .btn-info-puntos { padding: 2px 8px; }
}

/* --- Header (LANDING - index.html) --- */
.header-landing {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: auto; /* Altura automática */
    min-height: var(--header-height); /* Mantener altura mínima */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-landing.scrolled {
    background-color: var(--card-background);
    box-shadow: var(--box-shadow);
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 0; }

.header-landing .logo-link { display: flex; align-items: center; padding: 5px 0; /* Añadir padding vertical si es necesario */ }
/* TAMAÑO LOGO AUMENTADO (LANDING HEADER) */
.header-landing .logo {
    height: 100px; /* Aprox 3x de 40px, ajustar si es necesario */
    width: auto;
}

.header-landing .main-nav { display: flex; align-self: center; } /* Centrar verticalmente */
.header-landing .nav-links { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.header-landing .nav-links a { color: var(--text-dark); font-weight: 500; padding: 5px 0; position: relative; }
.header-landing .nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.header-landing .nav-links a:hover,
.header-landing .nav-links a.active { color: var(--primary-color); text-decoration: none; }
.header-landing .nav-links a:hover::after { width: 100%; }

.header-landing .auth-links-landing { display: flex; align-items: center; gap: 10px; align-self: center; }
.header-landing .burger { display: none; background: none; border: none; font-size: 1.8rem; /* Hacerlo un poco más grande */ cursor: pointer; color: var(--dark-color); }

/* --- Footer (APP - index.php) --- */
.footer { text-align: center; padding: 15px; margin-top: 30px; background-color: var(--dark-color); color: var(--light-color); font-size: 0.85rem; }

/* --- Footer (LANDING - index.html) --- */
.footer-landing { background-color: var(--light-color); color: var(--text-muted); padding: 40px 0 20px; border-top: 1px solid var(--border-color); font-size: 0.9rem; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.footer-col { flex: 1; min-width: 180px; }
.footer-col h4 { color: var(--text-dark); margin-bottom: 15px; font-size: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary-color); text-decoration: underline; }
/* TAMAÑO LOGO AUMENTADO (LANDING FOOTER) */
.footer-logo {
    height: 90px; /* Aprox 3x de 35px */
    margin-bottom: 15px;
}
.social-links a { color: var(--secondary-color); margin-right: 10px; font-size: 1.2rem; }
.social-links a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--secondary-color); }

/* --- Tarjetas (APP) --- */
.card { background-color: var(--card-background); border-radius: var(--border-radius); box-shadow: var(--box-shadow); padding: 25px; margin-bottom: 20px; }
.card h2 { margin-bottom: 10px; color: var(--dark-color); font-weight: 600; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.card .description { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

/* --- Formularios (Común APP y LANDING Contacto) --- */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--input-border-color); border-radius: var(--border-radius); font-size: 1rem; line-height: 1.5; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--input-focus-border-color); outline: 0; box-shadow: var(--input-focus-box-shadow); }
.form-group input.input-error, /* Estilo para validación JS landing */
.form-group textarea.input-error {
    border-color: var(--danger-color);
}
.input-group { position: relative; display: flex; align-items: center; }
.input-group input { padding-right: 40px; }
.input-group .password-toggle { position: absolute; right: 0; top: 0; height: 100%; background: none; border: none; padding: 0 12px; cursor: pointer; color: var(--secondary-color); display: flex; align-items: center; justify-content: center; }
.input-group .password-toggle i { font-size: 1rem; }
.form-group-checkbox { display: flex; align-items: center; margin-top: 10px; margin-bottom: 20px; }
.form-group-checkbox input[type="checkbox"] { margin-right: 8px; width: auto; cursor: pointer; }
.form-group-checkbox label { margin-bottom: 0; font-weight: normal; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.forgot-password-link { display: block; text-align: right; font-size: 0.85rem; margin-bottom: 15px; margin-top: -5px; }
.form-row { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.form-row .form-group { flex: 1; min-width: calc(50% - 10px); margin-bottom: 0; }
.form-row .form-group .input-group { width: 100%; }
#register-card p:last-of-type { margin-top: 20px; }
.contact-form .form-row { gap: 20px; }

/* --- Botones (Común) --- */
.btn { display: inline-block; font-weight: 600; text-align: center; vertical-align: middle; cursor: pointer; user-select: none; background-color: transparent; border: 1px solid transparent; padding: 10px 20px; font-size: 1rem; line-height: 1.5; border-radius: var(--border-radius); transition: all 0.2s ease-in-out; }
.btn-sm { padding: 8px 15px; font-size: 0.9rem; }
.btn-lg { padding: 12px 25px; font-size: 1.1rem; }
.btn-primary { color: var(--text-light); background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { color: var(--text-light); background-color: var(--primary-color-dark); border-color: var(--primary-color-dark); text-decoration: none; }
.btn-primary:focus { box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); }
.btn-secondary { color: var(--text-light); background-color: var(--secondary-color); border-color: var(--secondary-color); }
.btn-secondary:hover { color: var(--text-light); background-color: #5a6268; border-color: #545b62; text-decoration: none; }
.btn-primary-outline { color: var(--primary-color); background-color: transparent; border-color: var(--primary-color); }
.btn-primary-outline:hover { color: var(--text-light); background-color: var(--primary-color); border-color: var(--primary-color); text-decoration: none; }

/* --- Alertas y Mensajes (APP y LANDING Feedback) --- */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: var(--border-radius); text-align: center; font-size: 0.95rem; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert-success a { color: #0c5424; font-weight: bold;}
.alert-error, .alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }
.invalid-feedback { display: none; width: 100%; margin-top: 0.25rem; font-size: 0.8rem; color: var(--danger-color); }
.is-invalid { border-color: var(--danger-color) !important; }
.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important; }
.is-invalid + .invalid-feedback,
.input-group + .invalid-feedback,
.is-invalid ~ .invalid-feedback { display: block; }
.php-error { display: block; }

/* --- Pestañas (Tabs) Login/Register (APP) --- */
.tab-container { display: flex; margin-bottom: -1px; }
.tab { padding: 10px 20px; border: 1px solid var(--border-color); border-bottom: none; background-color: var(--background-color); cursor: pointer; border-radius: var(--border-radius) var(--border-radius) 0 0; margin-right: 5px; color: var(--secondary-color); font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.tab:hover { background-color: #e9ecef; }
.tab.active { background-color: var(--card-background); border-color: var(--border-color); border-bottom: 1px solid var(--card-background); color: var(--primary-color); position: relative; z-index: 2; }
#login-card, #register-card, #request-reset-card, #reset-password-card { border-top-left-radius: 0; position: relative; z-index: 1; }

/* --- Landing Page Sections --- */
.hero { background: linear-gradient(to bottom, #eef7ff, var(--background-color)); padding: 80px 0; overflow: hidden; }
.hero-content { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero-text .subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 500px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-item { background-color: var(--card-background); padding: 30px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--box-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-item:hover { transform: translateY(-5px); box-shadow: var(--box-shadow-lg); }
.feature-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.feature-item h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-dark); }
.feature-item p { font-size: 0.95rem; color: var(--text-muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.pricing-plan { background-color: var(--card-background); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 30px; text-align: center; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.popular-badge { position: absolute; top: 15px; right: -30px; background-color: var(--warning-color); color: var(--text-dark); padding: 3px 30px; font-size: 0.8rem; font-weight: bold; transform: rotate(45deg); transform-origin: top right; }
.pricing-plan.popular { border-color: var(--primary-color); border-width: 2px; box-shadow: var(--box-shadow-lg); }
.plan-header { margin-bottom: 20px; }
.plan-header h3 { font-size: 1.3rem; color: var(--text-dark); }
.plan-price { font-size: 2.5rem; font-weight: bold; color: var(--primary-color); margin: 5px 0; }
.price-period { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.plan-features { list-style: none; padding: 0; margin: 30px 0; flex-grow: 1; }
.plan-features li { margin-bottom: 12px; color: var(--text-muted); }
.plan-features li i { color: var(--success-color); margin-right: 8px; }
.plan-features li .fa-times { color: var(--danger-color); }
.plan-button { margin-top: auto; width: 100%; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 40px; }
.step-item { text-align: center; }
.step-number { display: inline-block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background-color: var(--primary-color); color: white; font-weight: bold; margin-bottom: 15px; }
.step-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }
.step-item h3 { font-size: 1.2rem; margin-bottom: 10px; }

.testimonial-slider-container { max-width: 700px; margin: 40px auto 0; position: relative; }
.testimonial-item { background-color: var(--card-background); padding: 30px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--box-shadow); }
.testimonial-item blockquote { font-size: 1.1rem; font-style: italic; color: var(--text-muted); margin-bottom: 15px; border-left: 3px solid var(--primary-color); padding-left: 15px; text-align: left; }
.testimonial-item cite { display: block; font-weight: 600; color: var(--text-dark); }

.faq-list { max-width: 700px; margin: 40px auto 0; }
.faq-item { background-color: var(--card-background); border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; cursor: pointer; font-weight: 600; color: var(--text-dark); list-style: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary-color); transition: transform 0.2s ease; }
.faq-item[open] summary::after { content: '−'; /* transform: rotate(180deg); -> Usaremos '-' en lugar de rotar '+' */ }
.faq-item[open] { padding-bottom: 15px; } /* Espacio extra al abrir */
.faq-item p { padding: 0 20px 0px; /* Quitar padding inferior inicial */ color: var(--text-muted); font-size: 0.95rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Animación suave */ }
.faq-item[open] p { padding-bottom: 15px; max-height: 200px; /* Altura máxima estimada para el contenido */ }

/* --- Control de Jornada (APP) --- */
.status-bar { background-color: var(--secondary-color); color: white; padding: 10px 15px; border-radius: var(--border-radius); margin-bottom: 20px; text-align: center; font-weight: 600; transition: background-color 0.3s ease; }
.status-bar.active { background-color: var(--success-color); }
.status-bar.finished { background-color: var(--secondary-color); }
.jornada-controls { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; position: relative; min-height: 50px; }
.slider-container { width: 120px; height: 50px; background-color: var(--danger-color); border-radius: 25px; position: relative; cursor: pointer; transition: background-color 0.4s ease; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.slider-container.active { background-color: var(--success-color); }
.slider-button { width: 44px; height: 44px; background-color: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform 0.4s ease; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; font-weight: bold; color: var(--danger-color); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.slider-container.active .slider-button { transform: translateX(70px); color: var(--success-color); }
.jornada-status { text-align: center; margin-top: 10px; min-height: 40px; }
#status-text { display: block; color: var(--text-muted); font-size: 0.9rem; }
#timer-display { display: block; font-size: 1.5rem; font-weight: bold; color: var(--dark-color); margin-top: 5px; }
.location-text { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 15px; }
.loader { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-color); border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 0 auto; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* --- Historial (APP) --- */
.history-card { margin-top: 30px; }
.history-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.history-controls h2 { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.filter-controls button { background-color: var(--light-color); border: 1px solid var(--border-color); color: var(--secondary-color); padding: 5px 12px; border-radius: var(--border-radius); cursor: pointer; transition: background-color 0.2s, color 0.2s; font-size: 0.85rem; margin-left: 5px; }
.filter-controls button:hover { background-color: #e2e6ea; }
.filter-controls button.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.summary-stats { display: flex; justify-content: space-around; background-color: var(--light-color); padding: 10px; border-radius: var(--border-radius); margin-bottom: 20px; font-size: 0.9rem; }
.stat-item { text-align: center; color: var(--text-muted); }
.stat-item strong { display: block; color: var(--dark-color); font-size: 1.1rem; }
.table-wrapper { overflow-x: auto; }
#history-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
#history-table th, #history-table td { border: 1px solid var(--border-color); padding: 10px 12px; text-align: left; font-size: 0.9rem; }
#history-table thead th { background-color: var(--light-color); font-weight: 600; color: var(--secondary-color); }
#history-table tbody tr:nth-child(even) { background-color: #fdfdfd; }
#history-table tbody tr:hover { background-color: #f1f1f1; }
.badge { display: inline-block; padding: 0.3em 0.6em; font-size: 0.8rem; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; }
.badge-active { color: #fff; background-color: var(--success-color); }
.badge-finished { color: #fff; background-color: var(--secondary-color); }
.no-records td { text-align: center; color: var(--text-muted); font-style: italic; padding: 20px; }
.chart-container { border: 1px solid var(--border-color); padding: 20px; margin-bottom: 20px; text-align: center; color: var(--text-muted); background-color: var(--light-color); border-radius: var(--border-radius); }
.export-buttons { text-align: right; }
.export-buttons button { background-color: var(--secondary-color); color: white; margin-left: 10px; font-size: 0.9rem; }
.export-buttons button:hover { background-color: var(--dark-color); }

/* --- Toast Notifications (Común) --- */
#toast-container { position: fixed; top: calc(var(--header-height) + 15px); /* Debajo del header + margen */ right: 20px; z-index: 1050; display: flex; flex-direction: column; align-items: flex-end; }
.toast { background-color: rgba(50, 50, 50, 0.85); color: white; padding: 12px 20px; border-radius: var(--border-radius); margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); opacity: 1; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateX(0); min-width: 250px; max-width: 350px; font-size: 0.95rem; }
.toast.hide { opacity: 0; transform: translateX(100%); }
.toast-success { background-color: rgba(40, 167, 69, 0.9); }
.toast-error { background-color: rgba(220, 53, 69, 0.9); }
.toast-info { background-color: rgba(23, 162, 184, 0.9); }
.toast-warning { background-color: rgba(255, 193, 7, 0.9); color: #333; }


/* --- Media Queries para Responsividad --- */
@media (max-width: 992px) {
    :root { --header-height: 70px; } /* Reducir menos si el logo es grande */
    .header-landing .main-nav { /* Estilo para el menú móvil */
        position: absolute;
        top: var(--header-height); /* Justo debajo del header */
        left: 0;
        width: 100%;
        background-color: var(--card-background);
        box-shadow: var(--box-shadow);
        max-height: 0; /* Oculto por defecto */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .header-landing .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 10px 0; /* Padding vertical */
        gap: 0;
    }
     .header-landing .nav-links.active { /* Mostrar menú */
        max-height: 300px; /* Altura suficiente para los enlaces */
    }
    .header-landing .nav-links li { width: 100%; text-align: left; }
    .header-landing .nav-links a { padding: 12px 20px; display: block; width: 100%; border-bottom: 1px solid var(--border-color); }
    .header-landing .nav-links li:last-child a { border-bottom: none; }
    .header-landing .nav-links a:hover,
    .header-landing .nav-links a.active { background-color: var(--light-color); }
    .header-landing .nav-links a::after { display: none; }
    .header-landing .burger { display: block; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-image { margin-top: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hide-mobile { display: none !important; }
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px;}
    .section-padding { padding: 40px 0; }
    .hero { padding: 60px 0; }
    .hero-text h1 { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-col { min-width: 100%; }
    .social-links { margin-top: 10px; }
    .header .welcome-message { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-plan { max-width: 400px; margin-left: auto; margin-right: auto;}
    .steps-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group { min-width: 100%; margin-bottom: 15px; }
    /* Ajustar tamaño logo en header si se superpone mucho */
    .header-landing .logo { height: 80px; }
}

@media (max-width: 576px) {
    :root { --header-height: 65px; } /* Aún más pequeño si es necesario */
    h1 { font-size: 2rem; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text .subtitle { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .btn-lg { padding: 10px 20px; font-size: 1rem;}
    .contact-form .form-row { flex-direction: column; gap: 0; }
    .contact-form .form-group { margin-bottom: 15px; }
    .header-landing .logo { height: 60px; } /* Reducir más */
    .container, .container-landing { padding: 0 10px; }
    .header-landing .auth-links-landing .btn { padding: 6px 10px; font-size: 0.85rem; } /* Botones registro/login más pequeños */

    /* Tabla Historial Responsiva (APP) */
     #history-table thead { display: none; }
     #history-table tbody tr { display: block; margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: var(--border-radius); }
     #history-table tbody td { display: block; text-align: right; border: none; border-bottom: 1px dotted var(--border-color); padding-left: 50%; position: relative; }
     #history-table tbody td:last-child { border-bottom: none; }
     #history-table tbody td::before { content: attr(data-label); position: absolute; left: 10px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; color: var(--secondary-color); }
    /* Añadir data-label (EJEMPLO) */
    #history-table td:nth-of-type(1)::before { content: "Fecha"; }
    #history-table td:nth-of-type(2)::before { content: "Inicio"; }
    #history-table td:nth-of-type(3)::before { content: "Fin"; }
    #history-table td:nth-of-type(4)::before { content: "Duración"; }
    #history-table td:nth-of-type(5)::before { content: "Tipo"; }
    #history-table td:nth-of-type(6)::before { content: "Estado"; }
}

