/* ==========================================================================
   JBM Media — Shared stylesheet
   Used by index.html, paquetes.html and contacto.html.
   Loading this once and letting the browser cache it means visitors don't
   re-download the navbar/button/footer CSS on every page they visit.
   ========================================================================== */

:root {
    --font-heading: 'MuseoModerno', 'Plus Jakarta Sans', sans-serif;
    --primary-blue: #3871B8;
    --dark-blue: #1A467B;
    --accent-orange: #F59249;
    --orange-hover: #E07A2E;
    --light-blue: #779FBF;
    --soft-cream: #FFFDD9;
    --sand-bg: #F0E8DD;
    --bg-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 30px -10px rgba(56, 113, 184, 0.15);
    --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--sand-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Brand typeface (per brandbook) on every heading site-wide.
   Body copy, nav, and buttons stay on Plus Jakarta Sans for readability. */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SCROLL REVEAL (used on sections that opt in with .reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   NAVIGATION BAR (identical structure on every page)
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin: -20px 0;
    transition: height 0.3s ease, margin 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-mobile-prices {
    display: none;
    background-color: rgba(56, 113, 184, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(56, 113, 184, 0.3);
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(26, 70, 123, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-container {
    height: 60px;
}

.navbar.scrolled .brand-logo img {
    height: 70px;
    margin: -5px 0;
}

.navbar.scrolled .nav-links a {
    color: #FFFFFF;
    font-size: 14px;
}

.navbar.scrolled .nav-links a::after {
    background-color: var(--accent-orange);
}

.navbar.scrolled .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
}

.navbar.scrolled .btn-mobile-prices {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(245, 146, 73, 0.35);
}

.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(245, 146, 73, 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 30px 0;
    font-size: 13px;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE — one consistent breakpoint for the nav on every page
   ========================================================================== */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-container { height: 65px; }
    .brand-logo img { height: 70px; margin: 0; }
    .nav-links { display: none; }
    .btn-mobile-prices {
        display: inline-flex;
        font-size: 11px;
        padding: 7px 12px;
    }
    .nav-actions .btn-primary {
        font-size: 11px;
        padding: 7px 12px;
    }
}
