/* --- ESTILOS ADICIONALES PARA LÍNEAS DE AUTOBÚS --- */
.bus-group {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.bus-group h2 {
    margin-top: 0;
}

.bus-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.line-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.5rem 0;
}

.line-number {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.percentage-box {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

.percentage-box p {
    margin: 0;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.final-fact {
    text-align: center;
    background: linear-gradient(to right, #0056b3, #004494);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.final-fact h2 {
    color: var(--white);
    margin-top: 0;
    font-size: 1.5rem;
}

.final-fact p {
    font-size: 1.2rem;
}
/* --- ESTILOS ADICIONALES PARA MAPAS --- */
.map-direction {
    margin-bottom: 3rem;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 8px;
}

.map-placeholder {
    background-color: var(--light-gray);
    border: 1px dashed #ccc;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 2rem;
    border-radius: 5px;
    color: #777;
    font-style: italic;
}

.access-points {
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 5px;
}

.access-points h3 {
    color: var(--dark-gray);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-top: 1.5rem;
}

.access-points ol, .access-points p {
    margin-left: 20px;
    font-size: 1.1rem;
}
/* --- ESTILOS ADICIONALES PARA FAQ --- */
.intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #555;
}

.faq-section {
    margin-bottom: 2.5rem;
}

.faq-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.faq-item p, .faq-item ul {
    margin-bottom: 0;
}

.faq-item ul {
    padding-left: 20px;
}
/* --- ESTILOS GENERALES --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #ffc107;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white: #ffffff;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Roboto Condensed', sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark-gray);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- HEADER Y NAV --- */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--white);
}

header .tagline {
    margin: 5px 0 0;
    opacity: 0.8;
}

nav {
    background: var(--dark-gray);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav a:hover {
    background: var(--primary-color);
    text-decoration: none;
}

/* --- MAIN CONTENT --- */
main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.fecha-actualizacion {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex-basis: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
}

/* --- ANUNCIOS --- */
.ad-banner {
    background-color: var(--light-gray);
    border: 1px dashed #ccc;
    text-align: center;
    padding: 20px;
    margin: 2rem 0;
    color: #999;
    font-size: 0.9rem;
    height: 250px; /* Tamaño estándar de banner */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* --- TARJETAS DE ENLACE RÁPIDO --- */
.quick-links {
    margin: 3rem 0;
}

.quick-links h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

.card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.card p {
    color: #555;
    margin-bottom: 0;
}

/* --- ARTÍCULO PRINCIPAL --- */
.main-article {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.main-article h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.main-article h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.main-article p {
    margin-bottom: 1rem;
}

/* --- FOOTER --- */
footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .stats {
        flex-direction: column;
        align-items: center;
    }
    .stat-item {
        margin-bottom: 1rem;
    }
}

/* --- ESTILOS ADICIONALES PARA PÁGINAS ÚNICAS --- */
.single-page {
    padding: 2rem 0;
}

.single-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.single-page h2 {
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

/* --- ESTILOS MEJORADOS PARA LA PÁGINA DE CONTACTO --- */
.contact-info, .contact-form {
    margin-top: 2rem;
    padding: 2.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-form p {
    margin-bottom: 1.5rem;
    color: #555;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark-gray);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Efecto de foco en los campos */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.contact-form button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

.contact-form button:active {
    transform: translateY(0);
}

/* --- ESTILOS PARA LA TABLA COMPARATIVA --- */
.quick-comparison {
    margin-top: 3rem;
    padding: 2rem;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

.quick-comparison h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

thead th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

tbody tr:hover {
    background-color: var(--light-gray);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Asegurarse de que la tabla se vea bien en móviles */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    td:nth-of-type(1):before { content: "Característica"; }
    td:nth-of-type(2):before { content: "Bus-VAO A-2"; }
    td:nth-of-type(3):before { content: "Carril VAO A-6"; }
}

.card small {
    display: block;
    margin-top: 0.5rem;
    color: #28a745; /* Verde para destacar */
    font-weight: bold;
}

nav a.active {
    background-color: var(--primary-color); /* O el color que prefieras para resaltar */
    color: white;
    text-decoration: none;
}

/* --- COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f1f1f;
    color: #fff;
    z-index: 2000;
    padding: 14px 16px;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-actions button {
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-actions button#cookie-accept {
    background: var(--secondary-color);
    color: #1f1f1f;
}

.cookie-actions button.secondary {
    background: #e6e6e6;
    color: #222;
}

.cookie-actions a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* --- AJUSTE DE MENU EN MOVIL --- */
@media (max-width: 768px) {
    nav {
        position: static;
        top: auto;
        box-shadow: none;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}
/* --- HOME MEJORADA: SIMULADOR + SEO CLUSTER --- */
.hero-strong {
    background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 100%);
    border: 1px solid #d9e8ff;
    border-radius: 10px;
    padding: 2rem;
}

.simulator {
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fcfcfc;
}

.sim-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 1rem;
}

.sim-form label {
    font-weight: 700;
    margin-top: 0.2rem;
}

.sim-form input,
.sim-form select,
.sim-form button {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid #cfcfcf;
    font-family: var(--font-main);
    font-size: 1rem;
}

.sim-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 700;
    cursor: pointer;
    align-self: end;
}

.sim-form button:hover {
    background: #004494;
}

.sim-inline {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border: 1px dashed #d0d0d0;
    border-radius: 8px;
    background: #fff;
}

.sim-inline small {
    display: block;
    margin-top: 6px;
    color: #666;
}

.hidden {
    display: none;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 700;
}

.checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.sim-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
}

.sim-result h3 {
    margin: 0 0 0.4rem;
}

.sim-ok {
    border-left: 6px solid #1f9d43;
}

.sim-warning {
    border-left: 6px solid #d99900;
}

.sim-danger {
    border-left: 6px solid #d0302f;
}

.sim-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.8rem;
}

.cluster-links,
.real-cases,
.checklist,
.cta-utility {
    margin-top: 2.5rem;
}

.real-cases .faq-item {
    background: #fff;
}

.checklist ul {
    margin: 0;
    padding-left: 22px;
}

.checklist li {
    margin-bottom: 0.7rem;
}

.cta-utility {
    background: #fff6df;
    border: 1px solid #f3d591;
    border-radius: 10px;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .hero-strong {
        padding: 1.4rem;
    }

    .simulator {
        padding: 1.3rem;
    }
}
