/* ============================================
   PescaWiki — Estilos globales
   ============================================ */

:root {
    --c-profundo: #0a3d62;
    --c-agua: #1e88e5;
    --c-claro: #64b5f6;
    --c-verde: #2e7d32;
    --c-acento: #00bcd4;
    --c-bg: #f8fbfe;
    --c-text: #1a2a3a;
    --c-muted: #5a6c7d;
    --shadow-sm: 0 2px 8px rgba(10, 61, 98, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 61, 98, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 61, 98, 0.2);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content { flex: 1; }
a { color: var(--c-agua); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-profundo); }
img { max-width: 100%; display: block; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10, 61, 98, 0.08);
    z-index: 100;
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
    max-width: 1400px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 20px;
    color: var(--c-profundo);
}
.brand-icon { font-size: 28px; filter: drop-shadow(0 2px 6px rgba(10, 61, 98, 0.3)); }

.nav-menu { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-menu a {
    padding: 8px 16px; border-radius: 10px;
    font-weight: 500; color: var(--c-text);
    transition: all 0.2s;
}
.nav-menu a:hover { background: rgba(30, 136, 229, 0.08); color: var(--c-agua); }

.nav-highlight {
    background: linear-gradient(135deg, var(--c-profundo), var(--c-agua));
    color: white !important;
}
.nav-highlight:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--c-agua), var(--c-acento)) !important;
    color: white !important;
}

.btn-nav { border: 2px solid var(--c-agua); color: var(--c-agua) !important; }
.btn-nav:hover { background: var(--c-agua); color: white !important; }
.btn-nav-primary {
    background: linear-gradient(135deg, var(--c-profundo), var(--c-agua));
    color: white !important; border: none;
}

.nav-user {
    position: relative; cursor: pointer;
    padding: 8px 14px; border-radius: 10px;
    background: rgba(30, 136, 229, 0.08);
    display: flex; align-items: center; gap: 8px;
}
.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 180px; background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 6px;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px); transition: all 0.2s;
}
.nav-user:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; }

.nav-toggle {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--c-profundo); border-radius: 2px; transition: all 0.3s; }

/* ==================== HERO ==================== */
.hero {
    position: relative; min-height: 550px;
    background: linear-gradient(135deg, #0a3d62 0%, #1e88e5 70%, #00bcd4 100%);
    color: white;
    display: flex; align-items: center; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' opacity='0.08'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 1200px auto;
    animation: waveMove 20s linear infinite;
    opacity: 0.5;
}
@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

.hero-content { max-width: 1400px; margin: 0 auto; padding: 80px 24px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; line-height: 1.1; }
.hero p { font-size: 18px; opacity: 0.95; max-width: 600px; margin-bottom: 28px; }

.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .n {
    font-size: 36px; font-weight: 800; display: block;
    background: linear-gradient(135deg, #fff, #b3e5fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat .l { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px;
    font-weight: 600; font-size: 15px;
    border: none; cursor: pointer;
    transition: all 0.25s; font-family: inherit;
    text-decoration: none;
}
.btn-primary {
    background: white; color: var(--c-profundo);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28); }

.btn-outline { border: 2px solid rgba(255, 255, 255, 0.6); color: white; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: white; }

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

/* ==================== SECCIONES ==================== */
.section { max-width: 1400px; margin: 0 auto; padding: 80px 24px; }
.section-alt { background: white; max-width: 100%; }
.section-alt > * { max-width: 1400px; margin-left: auto; margin-right: auto; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(26px, 3.5vw, 38px); color: var(--c-profundo); margin-bottom: 10px; font-weight: 700; }
.section-header p { color: var(--c-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ==================== FOOTER ==================== */
.site-footer {
    background: linear-gradient(135deg, var(--c-profundo), #042c4e);
    color: white;
    padding: 60px 24px 20px;
    margin-top: 60px;
}
.footer-container {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h3 { font-size: 22px; margin-bottom: 10px; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.footer-col p { opacity: 0.8; font-size: 14px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.75); padding: 4px 0; font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1400px; margin: 20px auto 0; text-align: center; opacity: 0.7; font-size: 13px; }

/* ==================== ERROR PAGE ==================== */
.error-section { text-align: center; padding: 100px 20px; }
.error-icon { font-size: 100px; margin-bottom: 20px; opacity: 0.6; }
.error-content h1 { font-size: 96px; color: var(--c-agua); margin-bottom: 8px; }
.error-content h2 { font-size: 28px; color: var(--c-profundo); margin-bottom: 12px; }
.error-content p { color: var(--c-muted); margin-bottom: 30px; }
.error-content .btn-primary {
    background: linear-gradient(135deg, var(--c-profundo), var(--c-agua));
    color: white;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 70px; left: 0; right: 0;
        background: white; flex-direction: column;
        padding: 20px; gap: 6px; box-shadow: var(--shadow-md);
        transform: translateY(-10px); opacity: 0; visibility: hidden;
        transition: all 0.25s;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-menu a { display: block; padding: 12px 16px; }
    .footer-container { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 50px 20px; }
    .hero-content { padding: 60px 20px; }
}
