/* 
   SkipperWing - Centralized Premium Stylesheet
   Designed for aviation enthusiasts: rich aesthetics, modern typography, 
   smooth micro-animations, and full responsiveness.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    /* Color Palette */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #0b132b, #1c2541);
    --bg-footer: #0b132b;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --accent: #38bdf8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --border-color: #e2e8f0;
    --border-hover: #bae6fd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 25px -5px rgba(2, 132, 199, 0.1), 0 10px 10px -5px rgba(2, 132, 199, 0.04);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Header & Brand */
.header {
    background: var(--bg-header);
    color: var(--text-light);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1), transparent 70%);
    pointer-events: none;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-smooth);
}

.logo-link:hover .logo {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.3));
}

.tagline {
    font-size: 1rem;
    color: var(--accent);
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation menu */
.nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.nav a:hover {
    color: var(--primary);
    background: rgba(2, 132, 199, 0.05);
}

/* Page Containers */
.container {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

/* Hero Section on main page */
.hero {
    background: var(--bg-card);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Article lists & cards */
.articulo-destacado {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.articulo-destacado::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.articulo-destacado:hover {
    transform: translateY(-4px) scale(1.005);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.articulo-destacado:hover::before {
    width: 6px;
}

.articulo-destacado h2, .articulo-item h2 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: var(--transition-smooth);
}

.articulo-destacado:hover h2 {
    color: var(--primary);
}

.fecha {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.resumen {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* General Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
    border: none;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3);
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.category-card h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.category-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Article list page items */
.articulo-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.articulo-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.articulo-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.articulo-item:hover::before {
    width: 5px;
}

.articulo-item h2 {
    font-size: 1.4rem;
}

.articulo-item:hover h2 {
    color: var(--primary);
}

.articulo-item .fecha {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.articulo-item .extracto {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.avion-badge {
    display: inline-block;
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(2, 132, 199, 0.1);
}

.avion-badge:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Article template styling */
.articulo-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.articulo-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.articulo-header .meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.etiqueta-avion {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.15);
}

.etiqueta-avion:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(2, 132, 199, 0.25);
}

/* Hero Banner in articles */
.hero-banner {
    background: #020617;
    height: 450px;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 1;
    transition: transform 10s ease;
}

.hero-banner:hover img {
    transform: scale(1.05);
}

.hero-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    max-width: 750px;
    line-height: 1.3;
}

/* Article Body Content */
.contenido-articulo {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contenido-articulo h2 {
    color: var(--text-main);
    font-family: var(--font-heading);
    margin: 3rem 0 1.25rem 0;
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.contenido-articulo h3 {
    color: var(--text-main);
    font-family: var(--font-heading);
    margin: 2rem 0 0.75rem 0;
    font-size: 1.45rem;
    font-weight: 600;
}

.contenido-articulo p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #334155;
    text-align: justify;
}

.contenido-articulo ul, .contenido-articulo ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
    color: #334155;
    font-size: 1.05rem;
}

.contenido-articulo li {
    margin-bottom: 0.65rem;
}

/* Custom elements in articles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.data-table th, .data-table td {
    padding: 1.1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #0f172a;
    color: var(--text-light);
    font-weight: 600;
    font-family: var(--font-heading);
}

.data-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.highlight-box {
    background: rgba(2, 132, 199, 0.03);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2.5rem 0;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* FAQ section */
.faq-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-top: 3rem;
    box-shadow: var(--shadow-md);
}

.faq-section h2 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1.75rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: #475569;
    font-size: 0.95rem;
}

/* Back button */
.btn-volver {
    display: inline-block;
    background: #0f172a;
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin: 2.5rem 0 1rem 0;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-volver:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* About Us Section Styles */
.section {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.section h2 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-weight: 700;
}

h1.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

p.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    transition: var(--transition-smooth);
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.team-member h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.sources-list {
    list-style: none;
    margin-top: 1.5rem;
}

.sources-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.sources-list li:last-child {
    border-bottom: none;
}

.sources-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
    margin-right: 1.25rem;
    font-size: 1.1rem;
}

.contact-box {
    text-align: center;
    background: var(--bg-header);
    color: var(--text-light);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-box h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-box p {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-box a {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

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

/* Modals (in aviones.html) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.articulos-lista {
    margin: 1rem 0;
}

.articulos-lista .articulo-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.articulo-titulo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
}

.articulo-titulo:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.articulo-fecha {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.articulo-extracto {
    font-size: 0.9rem;
    color: #475569;
}

.vacio {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.aviones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.avion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.avion-card:hover {
    background: rgba(2, 132, 199, 0.02);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.avion-nombre {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.avion-card:hover .avion-nombre {
    color: var(--primary);
}

.avion-card .avion-badge {
    background: var(--primary);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    border: none;
}

.fabricante-titulo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    font-weight: 700;
}

/* Footer styling */
.footer {
    background: var(--bg-footer);
    color: #94a3b8;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
    position: relative;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 2rem 1rem;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .container {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    
    .articulo-header h1 {
        font-size: 2rem;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .hero-banner h2 {
        font-size: 1.75rem;
    }
    
    .contenido-articulo {
        padding: 2rem 1.25rem;
    }
    
    .contenido-articulo h2 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 2rem 1.25rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .aviones-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
