/* --- Variables CSS para los Temas --- */
:root {
    /* Colores base para ambos temas */
    --primary-color: #007bff; /* Azul para botones y acentos */
    --secondary-color: #6c757d; /* Gris para botones secundarios */

    /* Tema Claro */
    --background-color-light: #f4f4f9;
    --text-color-light: #333333;
    --header-footer-bg-light: #1a018c;
    --card-bg-light: #e0e0e8;
    --border-color-light: #cccccc;
    --input-bg-light: #ffffff;
    --input-border-light: #ced4da;

    /* Tema Oscuro */
    --background-color-dark: #1a1a2e; /* Azul oscuro profundo */
    --text-color-dark: #e0e0e0;
    --header-footer-bg-dark: #1a018c; /* Azul oscuro más oscuro */
    --card-bg-dark: #0f3460; /* Azul oscuro para tarjetas */
    --bg-dark-alt: #0a1128; /* Alternativa para secciones */
    --border-color-dark: #3a3a4c;
    --input-bg-dark: #2c3a50;
    --input-border-dark: #5a6d80;
}

/* --- Estilos Generales --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #0056b3; /* Un azul más oscuro */
    color: white;
    text-decoration: none;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover {
    background-color: #545b62; /* Un gris más oscuro */
    color: white;
    text-decoration: none;
}

/* --- Header --- */
header {
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    border-radius: 50%;
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: inherit; /* Hereda el color del texto del header */
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

nav a {
    color: inherit; /* Hereda el color del texto del header */
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

.theme-toggle-button {
    background-color: transparent;
    border: 1px solid currentColor; /* Usa el color de texto actual */
    color: inherit;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.theme-toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Secciones Comunes --- */
section {
    padding: 60px 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 70vh; /* Altura mínima para la sección */
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- About Section --- */
.about-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-item ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.about-item ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-item ul li::before {
    content: '✈️'; /* Icono de avión o similar */
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* --- Offer Section (Qué Ofrecemos) --- */
.offer-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.offer-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.offer-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.offer-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.offer-card p {
    padding: 0 15px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* --- Fleet & Routes Sections --- */
.fleet-section h2, .routes-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fleet-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.fleet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.fleet-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.fleet-item h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.routes-map {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.routes-section p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* --- Contact Section --- */
.contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3, .contact-form h3 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info a {
    display: inline-block;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--input-border-light); /* Default light */
    background-color: var(--input-bg-light); /* Default light */
    color: var(--text-color-light); /* Default light */
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.2);
}

textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* --- Footer --- */
footer {
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.social-links a {
    margin: 0 10px;
    color: inherit; /* Hereda color del footer */
    font-weight: 500;
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Tema Claro (.light-theme) --- */
body.light-theme {
    background-color: var(--background-color-light);
    color: var(--text-color-light);
}

body.light-theme header,
body.light-theme footer {
    background-color: var(--header-footer-bg-light);
    color: var(--text-color-light);
}

body.light-theme .about-item,
body.light-theme .offer-card,
body.light-theme .fleet-item,
body.light-theme .contact-info,
body.light-theme .contact-form {
    background-color: var(--card-bg-light);
}

body.light-theme .bg-dark-alt { /* Esta clase no debería tener efecto en light-theme */
    background-color: var(--background-color-light);
}

body.light-theme .theme-toggle-button {
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

body.light-theme .theme-toggle-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* --- Tema Oscuro (.dark-theme) --- */
body.dark-theme {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
}

body.dark-theme header,
body.dark-theme footer {
    background-color: var(--header-footer-bg-dark);
    color: var(--text-color-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

body.dark-theme .bg-dark-alt {
    background-color: var(--bg-dark-alt);
}

body.dark-theme .about-item,
body.dark-theme .offer-card,
body.dark-theme .fleet-item,
body.dark-theme .contact-info,
body.dark-theme .contact-form {
    background-color: var(--card-bg-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-theme .hero-image img,
body.dark-theme .routes-map {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background-color: var(--input-bg-dark);
    color: var(--text-color-dark);
    border-color: var(--input-border-dark);
}

body.dark-theme .theme-toggle-button {
    color: var(--text-color-dark);
    border-color: var(--text-color-dark);
}

body.dark-theme .theme-toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2em;
    }
    .hero-text p {
        font-size: 1em;
    }
    .about-grid, .offer-grid, .fleet-grid, .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-info, .contact-form {
        min-width: unset; /* Reinicia el min-width para que no interfiera */
    }
}
/* ... [Variables CSS y Estilos Generales sin cambios] ... */

/* --- Estilos para la nueva sección Rutas Online --- */
.online-routes-section {
    padding: 80px 0;
    text-align: center;
}

.routes-integration-card {
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.integration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-dark); /* Color de borde para tema oscuro/claro */
}

.sponsored-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
}

.map-placeholder {
    background-color: var(--input-bg-dark); /* Color de fondo oscuro para el mapa */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.routes-map-placeholder {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
    border-radius: 6px;
    opacity: 0.8;
}

/* Estadísticas de Vuelo */
.flight-stats h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat-item {
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    background-color: var(--card-bg-dark); /* Usar color de tarjeta para los items */
}

.stat-item h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.stat-item p span {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Contacto y GMail (Ajuste de estilos) --- */
.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-detail i {
    font-size: 1.5em;
    color: var(--primary-color);
}

/* Ajustes de Tema Claro para las nuevas secciones */
body.light-theme .routes-integration-card {
    background-color: var(--card-bg-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .integration-header {
    border-bottom: 1px solid var(--border-color-light);
}

body.light-theme .map-placeholder {
    background-color: var(--input-bg-light);
    color: var(--text-color-light);
}

body.light-theme .stat-item {
    background-color: var(--card-bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- Responsive para rutas --- */
@media (max-width: 600px) {
    .stats-grid {
        flex-direction: column;
    }
    .integration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
