/* 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;
    padding-top: var(--header-height); /* Espacio para header fijo */
}

.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;
}
.header .welcome-message { font-size: 0.9rem; color: var(--text-muted); margin-left: auto; margin-right: 20px; align-self: center; /* Centrar verticalmente si el logo es alto */ }
.logout-form { display: inline-block; align-self: center; }
.btn-logout { background: none; border: none; color: var(--danger-color); font-size: 1.5rem; cursor: pointer; padding: 5px; line-height: 1; transition: color 0.2s ease; }
.btn-logout:hover { color: darkred; }

/* --- 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 */
    body { padding-top: var(--header-height); } /* Ajustar padding */
    .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 */
    body { padding-top: var(--header-height); }
    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"; }
}

