/*
Theme Name: Aeropuerto Directorio
Theme URI: https://aeropuerto.com
Author: Tu Nombre
Author URI: https://aeropuerto.com
Description: Tema profesional multiidioma para directorio de tiendas de aeropuerto con 2 terminales. Incluye mapas interactivos, filtrado en tiempo real, y soporte completo para español, inglés y portugués.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeropuerto-directorio
Domain Path: /languages
Tags: airport, directory, multilingual, e-commerce, accessibility-ready, custom-menu, featured-images, translation-ready, responsive-layout

Aeropuerto Directorio WordPress Theme, Copyright 2025
Aeropuerto Directorio is distributed under the terms of the GNU GPL.
*/

/* ===================================
   CSS Variables
   =================================== */

:root {
    /* Colors - Primary Palette */
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #f8fafc;
    --accent-color: #ff6600;

    /* Text Colors */
    --text-dark: #1f2937;
    --text-color: #333333;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* Background Colors */
    --white: #ffffff;
    --background-color: #F8F9FA;
    --background-light: #f5f5f5;

    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-color: #dddddd;

    /* Status Colors */
    --success: #10b981;
    --success-color: #00cc66;
    --warning: #f59e0b;
    --warning-color: #ffcc00;
    --danger: #ef4444;
    --error-color: #cc0000;

    /* Terminal Colors */
    --terminal-1-color: #0066cc;
    --terminal-2-color: #cc6600;

    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-base: 16px;
    --font-size-large: 1.125rem;
    --font-size-small: 0.875rem;
    --line-height: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #3399ff;
    --secondary-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --background-color: #121212;
    --background-light: #1e1e1e;
    --border-color: #333333;
}

/* ===================================
   Base Styles
   =================================== */

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--accent-color);
}

/* ===================================
   Topbar Styles
   =================================== */

.topbar {
    font-size: 0.875rem;
    position: relative;
    z-index: 1000;
}

.topbar a {
    transition: opacity 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.topbar a:hover {
    opacity: 0.85;
}

.topbar .topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.topbar .topbar-social a:hover {
    transform: scale(1.15);
    background-color: rgba(255, 255, 255, 0.1);
}

.topbar .topbar-clock {
    font-size: 0.875rem;
}

.topbar .clock-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-language select,
.topbar-language .lang-switcher {
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Topbar position: below navbar */
.header-main .topbar:last-child {
    margin-top: -1px;
}

/* ===================================
   Header & Navigation Styles
   =================================== */

.header-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(63, 38, 95, 0.80) !important;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
    min-height: 102px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFF !important;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #FFF !important;
}

/* Custom Logo */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.navbar-brand:has(.custom-logo-link) {
    padding: 0;
}

@media (max-width: 768px) {
    .custom-logo {
        max-height: 45px;
    }
}

.nav-link {
    color: #FFF !important;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 18px;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #FFF !important;
    opacity: 0.8;
}

.nav-link:hover i {
    transform: translateX(3px);
}

/* Current menu item */
.current-menu-item > a,
.current-menu-ancestor > a {
    color: var(--primary-color) !important;
}

/* Dropdown menu */
.navbar-nav .dropdown-menu {
    position: absolute;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: #212529;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: var(--primary-light);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-light);
    color: #fff;
}

/* ===================================
   Bootstrap Container Override
   =================================== */

.container {
    width: 100% !important;
    max-width: var(--container-max-width);
    padding-right: var(--bs-gutter-x, 0.75rem) !important;
    padding-left: var(--bs-gutter-x, 0.75rem) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (min-width: 576px) {
    .container { max-width: 540px !important; }
}

@media (min-width: 768px) {
    .container { max-width: 720px !important; }
}

@media (min-width: 992px) {
    .container { max-width: 960px !important; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px !important; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px !important; }
}

/* ===================================
   Layout Utilities
   =================================== */

.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.flex {
    display: flex;
    gap: var(--spacing-sm);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ===================================
   Badges
   =================================== */

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-small);
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
}

.badge-terminal-1 {
    background-color: var(--terminal-1-color);
    color: #ffffff;
}

.badge-terminal-2 {
    background-color: var(--terminal-2-color);
    color: #ffffff;
}

.badge-open {
    background-color: var(--success-color);
    color: #ffffff;
}

.badge-closed {
    background-color: var(--error-color);
    color: #ffffff;
}

/* ===================================
   Cards
   =================================== */

.card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.card-meta {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   Loading & Skeleton
   =================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   Accessibility
   =================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Responsive Topbar */
    .topbar {
        font-size: 0.75rem;
    }

    .topbar .topbar-left,
    .topbar .topbar-right {
        justify-content: center;
        text-align: center;
    }

    .topbar .col-md-6 {
        width: 100%;
    }

    .topbar .row {
        row-gap: 0.5rem;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .no-print {
        display: none !important;
    }
}

/* ===========================================
   FOOTER STYLES
   =========================================== */

/* ===========================================
   FOOTER PRINCIPAL
   =========================================== */

.footer-main {
    background: #3F265F;
    color: #fff;
    padding: 0;
    margin-top: 60px;
}

.footer-main .container {
    max-width: 1200px;
}

/* ===========================================
   FOOTER BRAND - Logo y Descripción
   =========================================== */

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand .custom-logo-link {
    display: inline-block;
}

.footer-brand .custom-logo {
    max-width: 180px;
    height: auto;
}

.footer-logo-text {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.footer-description {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ===========================================
   INFORMACIÓN DEL AEROPUERTO
   =========================================== */

.footer-info-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info-list li i {
    font-size: 16px;
    color: #0A8CCC;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-info-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info-list li a:hover {
    color: #fff;
}

/* ===========================================
   REDES SOCIALES
   =========================================== */

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: #fff;
    color: #3F265F;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ===========================================
   FOOTER TITLES
   =========================================== */

.footer-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #0A8CCC;
    border-radius: 2px;
}

/* ===========================================
   FOOTER LINKS
   =========================================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

/* ===========================================
   NEWSLETTER
   =========================================== */

.footer-newsletter-text {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-newsletter-form {
    margin-top: 1rem;
}

.footer-newsletter-form .input-group {
    display: flex;
    gap: 8px;
}

.footer-newsletter-input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 1);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-newsletter-input::placeholder {
    color: #000;
}

.footer-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0A8CCC;
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 140, 204, 0.2);
}

.footer-newsletter-btn {

    border: none;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #F59630;
}

.footer-newsletter-btn:hover {
    background: #F59630;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 140, 204, 0.3);
}

/* ===========================================
   FOOTER BOTTOM
   =========================================== */

.footer-bottom-content{
    background: #0A8CCC;
}

.footer-bottom {

    padding: 1.5rem 0;
    margin-top: 0;
}

.footer-copyright {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.footer-copyright a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-copyright a:hover {
    opacity: 0.8;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal-links li {
    display: inline-block;
}

.footer-legal-links a {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 0.8;
}

/* ===========================================
   BOTÓN VOLVER ARRIBA
   =========================================== */

.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3F265F;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.btn-back-to-top:hover {
    background: #0A8CCC;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(10, 140, 204, 0.4);
}

.btn-back-to-top i {
    line-height: 1;
}

/* ===========================================
   FOOTER RESPONSIVE
   =========================================== */

@media (max-width: 992px) {
    .footer-main {
        margin-top: 40px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .footer-links li {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        margin-top: 30px;
    }

    .footer-main .row.g-4 {
        row-gap: 2rem !important;
    }

    .footer-brand .custom-logo {
        max-width: 150px;
    }

    .footer-logo-text {
        font-size: 20px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-newsletter-form .input-group {
        flex-direction: column;
    }

    .footer-newsletter-btn {
        width: 100%;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .btn-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .footer-social {
        gap: 8px;
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .footer-title {
        font-size: 15px;
    }

    .footer-links a,
    .footer-newsletter-text,
    .footer-copyright,
    .footer-legal-links a {
        font-size: 13px;
    }
}
