/* OpenBooking Commercial (OB) theme styles. SaaS marketing palette: navy + cyan accent. */

:root {
    --ob-navy: #0b2447;
    --ob-blue: #19376d;
    --ob-accent: #00b4d8;
    --ob-accent-dark: #0096b7;
    --ob-green: #16a34a;
    --ob-red: #dc2626;
    --ob-light: #f7f9fc;
    --ob-light-alt: #eef2f7;
    --ob-text: #1a2233;
    --ob-text-muted: #5b6477;
    --ob-border: #e4e9f2;
    --ob-shadow: 0 4px 12px rgba(11, 36, 71, 0.06);
    --ob-shadow-lg: 0 12px 32px rgba(11, 36, 71, 0.12);
    --ob-shadow-xl: 0 24px 60px rgba(11, 36, 71, 0.18);
}

body.frontend-page {
    color: var(--ob-text);
    background: #fff;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
}
body.frontend-page h1,
body.frontend-page h2,
body.frontend-page h3,
body.frontend-page h4 {
    color: var(--ob-navy);
    font-weight: 700;
    line-height: 1.2;
}

/* Kill marketplace artifacts that bleed into our pages */
body.frontend-page .bravo-call-to-action,
body.frontend-page .bravo-faq-lists,
body.frontend-page .bravo-testimonial { display: none; }

/* === Header === */
.ob-header {
    background: #fff;
    border-bottom: 1px solid var(--ob-border);
    padding: 16px 0;
    position: relative;
    z-index: 1000;
}
.ob-header-sticky { position: sticky; top: 0; }
.ob-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
/* Brand mark + wordmark (calendar SVG + "OpenBooking") */
.ob-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    line-height: 1;
}
.ob-logo-mark {
    width: 32px;
    height: 32px;
    color: var(--ob-accent); /* drives the SVG via currentColor */
    flex-shrink: 0;
}
.ob-logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--ob-navy);
    letter-spacing: -0.01em;
    line-height: 1;
}
.ob-logo-text strong {
    font-weight: 700;
    color: var(--ob-accent); /* "Open" in cyan */
}
.ob-logo-text small {
    font-size: 0.6em;
    font-weight: 400;
    color: var(--ob-text-muted);
    margin-left: 1px;
    letter-spacing: 0;
    vertical-align: baseline;
}
.ob-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ob-footer-logo .ob-logo-mark { color: var(--ob-accent); }
.ob-footer-logo .ob-logo-text { color: #fff; font-size: 20px; }
.ob-footer-logo .ob-logo-text strong { color: var(--ob-accent); }
.ob-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.ob-nav li { display: flex; }
.ob-nav a {
    position: relative;
    color: var(--ob-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
.ob-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--ob-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
.ob-nav a:hover { color: var(--ob-accent); background-color: rgba(0, 0, 0, 0.03); }
.ob-nav a:hover::after { transform: scaleX(1); }
.ob-nav a.active { color: var(--ob-accent); }
.ob-nav a.active::after { transform: scaleX(1); }
.ob-header-actions { display: flex; align-items: center; gap: 16px; }
.ob-link { color: var(--ob-text); text-decoration: none; font-weight: 500; font-size: 14px; }
.ob-link:hover { color: var(--ob-accent); }

/* === Buttons === */
.ob-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.2;
}
.ob-btn-primary { background: var(--ob-accent); color: #fff !important; border-color: var(--ob-accent); }
.ob-btn-primary:hover { background: var(--ob-accent-dark); border-color: var(--ob-accent-dark); transform: translateY(-1px); box-shadow: var(--ob-shadow); }
.ob-btn-ghost { background: transparent; color: var(--ob-navy) !important; border-color: var(--ob-navy); }
.ob-btn-ghost:hover { background: var(--ob-navy); color: #fff !important; }
.ob-btn-outline-light { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.5); }
.ob-btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.ob-btn-light { background: #fff; color: var(--ob-navy) !important; border-color: #fff; }
.ob-btn-light:hover { background: var(--ob-light); transform: translateY(-1px); box-shadow: var(--ob-shadow); }
.ob-btn-lg { padding: 14px 32px; font-size: 16px; }

.ob-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ob-navy); }
.ob-mobile-menu { display: none; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border-top: 1px solid var(--ob-border); }
.ob-mobile-menu.open { display: flex; }

/* === Footer === */
.ob-footer { background: var(--ob-navy); color: #cfd6e4; padding: 60px 0 24px; margin-top: 80px; }
.ob-footer h3, .ob-footer h4 { color: #fff; }
.ob-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.ob-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.ob-footer-brand p { color: #9aa6bc; max-width: 320px; }
.ob-footer ul { list-style: none; padding: 0; margin: 0; }
.ob-footer ul li { margin-bottom: 10px; }
.ob-footer ul a { color: #cfd6e4; text-decoration: none; font-size: 14px; }
.ob-footer ul a:hover { color: var(--ob-accent); }
.ob-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 13px; color: #9aa6bc; }

/* ============================================================
   HERO (style_normal)
   ============================================================ */
.ob-hero {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.45) 0%, rgba(0, 90, 130, 0.35) 100%),
        url('/themes/ob/img/hero-lodge-lake.jpg') center center / cover no-repeat;
    color: #fff;
    padding: 110px 0 130px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ob-hero h1, .ob-hero p {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.ob-hero h1 { color: #fff !important; }
.ob-hero p { color: rgba(255,255,255,0.92) !important; }

/* Per-page hero images (body class set by header.blade.php based on URL slug) */
.ob-page-home .ob-cta-closing:first-of-type,
.ob-page-software-pms .ob-hero {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.55) 0%, rgba(0, 90, 130, 0.45) 100%),
        url('/themes/ob/img/hero-pms.jpg') center center / cover no-repeat !important;
}
.ob-page-motor-reservas .ob-hero {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.55) 0%, rgba(0, 90, 130, 0.45) 100%),
        url('/themes/ob/img/hero-booking-engine.jpg') center center / cover no-repeat !important;
}
.ob-page-pagos-online .ob-hero {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.60) 0%, rgba(0, 90, 130, 0.50) 100%),
        url('/themes/ob/img/hero-payments.jpg') center center / cover no-repeat !important;
}
.ob-page-channel-manager .ob-hero {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.55) 0%, rgba(0, 90, 130, 0.45) 100%),
        url('/themes/ob/img/hero-channels.jpg') center center / cover no-repeat !important;
}
.ob-page-sitios-web .ob-hero {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.55) 0%, rgba(0, 90, 130, 0.45) 100%),
        url('/themes/ob/img/hero-websites.jpg') center center / cover no-repeat !important;
}
.ob-page-planes .ob-hero {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.55) 0%, rgba(0, 90, 130, 0.45) 100%),
        url('/themes/ob/img/hero-pricing.jpg') center center / cover no-repeat !important;
}
.ob-hero::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 80px;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
}
.ob-hero h1 {
    color: #fff;
    font-size: 56px;
    font-weight: 800;
    margin: 0 auto 24px;
    line-height: 1.08;
    max-width: 880px;
    letter-spacing: -0.02em;
    text-shadow: none;
}
.ob-hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.55;
}
.ob-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.ob-hero-trust {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    color: rgba(255,255,255,0.7); font-size: 14px;
}

/* ============================================================
   CTA BAND (style_2): branded full-width band mid-page
   ============================================================ */
.ob-cta-band {
    background: linear-gradient(135deg, var(--ob-accent) 0%, var(--ob-accent-dark) 100%);
    color: #fff;
    padding: 56px 0;
    border-radius: 16px;
    margin: 60px auto;
    max-width: 1140px;
    width: calc(100% - 32px);
}
.ob-cta-band-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.ob-cta-band h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.ob-cta-band p { color: rgba(255,255,255,0.9); margin: 0; font-size: 17px; }

/* ============================================================
   CTA CLOSING (style_3)
   ============================================================ */
.ob-cta-closing {
    background: var(--ob-light);
    padding: 90px 0;
    text-align: center;
    border-top: 1px solid var(--ob-border);
}
.ob-cta-closing h2 { font-size: 38px; margin-bottom: 14px; }
.ob-cta-closing p { font-size: 18px; color: var(--ob-text-muted); margin-bottom: 32px; }

/* Top hero: when ob-cta-closing is the first section on the page, treat it as a hero with image background. */
.page-template-content > .ob-cta-closing:first-child,
main > .ob-cta-closing:first-of-type {
    background:
        linear-gradient(135deg, rgba(15, 30, 60, 0.55) 0%, rgba(0, 90, 130, 0.40) 100%),
        url('/themes/ob/img/hero-lodge-lake.jpg') center center / cover no-repeat;
    border-top: none;
    padding: 130px 0 140px;
    color: #fff;
}
.page-template-content > .ob-cta-closing:first-child h2,
.page-template-content > .ob-cta-closing:first-child p,
main > .ob-cta-closing:first-of-type h2,
main > .ob-cta-closing:first-of-type p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.page-template-content > .ob-cta-closing:first-child h2,
main > .ob-cta-closing:first-of-type h2 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-template-content > .ob-cta-closing:first-child p,
main > .ob-cta-closing:first-of-type p {
    font-size: 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Sections
   ============================================================ */
.ob-section { padding: 90px 0; }
.ob-section-title { text-align: center; margin-bottom: 56px; }
.ob-section-title h2 { font-size: 38px; margin-bottom: 14px; letter-spacing: -0.02em; }
.ob-section-title p { font-size: 18px; color: var(--ob-text-muted); max-width: 680px; margin: 0 auto; }

/* Alternate-section background helper */
.ob-section + .ob-section,
section.ob-section:nth-of-type(even) { background: #fff; }

/* ============================================================
   STATS
   ============================================================ */
.ob-stats {
    background: var(--ob-light);
    padding: 64px 0;
    border-top: 1px solid var(--ob-border);
    border-bottom: 1px solid var(--ob-border);
}
.ob-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.ob-stat-value { font-size: 48px; font-weight: 800; color: var(--ob-accent); margin-bottom: 6px; line-height: 1; letter-spacing: -0.02em; }
.ob-stat-label { color: var(--ob-text-muted); font-size: 15px; }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.ob-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ob-feature-card {
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 14px;
    padding: 34px 30px;
    transition: all 0.2s ease;
}
.ob-feature-card:hover {
    box-shadow: var(--ob-shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(0,180,216,0.4);
}
.ob-feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,180,216,0.05));
    color: var(--ob-accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 20px;
}
.ob-feature-card h3 { font-size: 19px; margin: 0 0 10px; }
.ob-feature-card p { color: var(--ob-text-muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ============================================================
   PAIN → SOLUTION
   ============================================================ */
.ob-pain-solution { background: var(--ob-light); }
.ob-pain-solution-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
}
.ob-pain-col, .ob-solution-col {
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: var(--ob-shadow);
}
.ob-pain-col { border-top: 4px solid var(--ob-red); }
.ob-solution-col { border-top: 4px solid var(--ob-green); }
.ob-arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--ob-accent); font-size: 28px;
}
.ob-col-header {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 17px;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px solid var(--ob-border);
}
.ob-col-header-pain { color: var(--ob-red); }
.ob-col-header-solution { color: var(--ob-green); }
.ob-col-header i { font-size: 22px; }
.ob-pain-col ul, .ob-solution-col ul { list-style: none; padding: 0; margin: 0; }
.ob-pain-col li, .ob-solution-col li {
    padding: 12px 0 12px 28px;
    position: relative;
    font-size: 15px;
    color: var(--ob-text);
    border-bottom: 1px solid var(--ob-light-alt);
}
.ob-pain-col li:last-child, .ob-solution-col li:last-child { border-bottom: none; }
.ob-pain-col li::before {
    content: '✕'; color: var(--ob-red); font-weight: 700;
    position: absolute; left: 0; top: 12px;
}
.ob-solution-col li::before {
    content: '✓'; color: var(--ob-green); font-weight: 700;
    position: absolute; left: 0; top: 12px;
}

/* ============================================================
   PRICING
   ============================================================ */
.ob-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.ob-pricing-cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 740px; }
.ob-pricing-cols-4 { grid-template-columns: repeat(4, 1fr); max-width: 1280px; gap: 16px; }
.ob-pricing-cols-4 .ob-pricing-card { padding: 32px 22px; }
.ob-pricing-cols-4 .ob-pricing-price { font-size: 36px; }
.ob-pricing-card {
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.2s ease;
}
.ob-pricing-card.featured {
    border-color: var(--ob-accent);
    box-shadow: var(--ob-shadow-xl);
    transform: scale(1.04);
    position: relative;
    z-index: 1;
}
.ob-pricing-card.featured::before {
    content: 'Más popular';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--ob-accent); color: #fff;
    padding: 5px 16px; border-radius: 100px; font-size: 12px; font-weight: 600;
}
.ob-pricing-name { font-size: 13px; font-weight: 700; color: var(--ob-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; }
.ob-pricing-price { font-size: 44px; font-weight: 800; color: var(--ob-navy); margin-bottom: 4px; letter-spacing: -0.02em; }
.ob-pricing-price small { font-size: 16px; color: var(--ob-text-muted); font-weight: 400; }
.ob-pricing-desc { color: var(--ob-text-muted); margin-bottom: 28px; min-height: 48px; }
.ob-pricing-features { list-style: none; padding: 0; margin: 0 0 32px; text-align: left; }
.ob-pricing-features li { padding: 10px 0; border-bottom: 1px solid var(--ob-border); font-size: 14px; color: var(--ob-text); }
.ob-pricing-features li:last-child { border-bottom: none; }
.ob-pricing-features li::before { content: '✓'; color: var(--ob-accent); font-weight: 700; margin-right: 8px; }
.ob-pricing-cta { width: 100%; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.ob-testimonials { background: var(--ob-light); }
.ob-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ob-testimonial-card {
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 14px;
    padding: 28px;
    display: flex; flex-direction: column;
    box-shadow: var(--ob-shadow);
}
.ob-testimonial-stars { color: #fbbf24; margin-bottom: 12px; font-size: 14px; }
.ob-testimonial-stars i { margin-right: 1px; }
.ob-testimonial-quote {
    color: var(--ob-text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px;
    flex-grow: 1;
    border: none; padding: 0;
    position: relative;
    quotes: '"' '"';
}
.ob-testimonial-quote::before { content: open-quote; color: var(--ob-accent); font-size: 22px; font-weight: 700; }
.ob-testimonial-quote::after  { content: close-quote; color: var(--ob-accent); font-size: 22px; font-weight: 700; }
.ob-testimonial-author { display: flex; align-items: center; gap: 12px; }
.ob-testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: var(--ob-light-alt);
    display: flex; align-items: center; justify-content: center;
    color: var(--ob-navy); font-weight: 700; font-size: 16px;
    flex-shrink: 0;
}
.ob-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ob-testimonial-name { font-weight: 600; color: var(--ob-navy); font-size: 15px; }
.ob-testimonial-role { font-size: 13px; color: var(--ob-text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.ob-faq-list { display: flex; flex-direction: column; gap: 12px; }
.ob-faq-item {
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    padding: 0;
    transition: all 0.2s ease;
}
.ob-faq-item[open] { border-color: var(--ob-accent); box-shadow: var(--ob-shadow); }
.ob-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 16px;
    color: var(--ob-navy);
}
.ob-faq-item summary::-webkit-details-marker { display: none; }
.ob-faq-icon { color: var(--ob-accent); font-size: 14px; transition: transform 0.2s ease; }
.ob-faq-item[open] .ob-faq-icon { transform: rotate(45deg); }
.ob-faq-answer { padding: 0 24px 22px; color: var(--ob-text-muted); font-size: 15px; line-height: 1.6; }

/* ============================================================
   Demo form
   ============================================================ */
.ob-demo-form .form-group { margin-bottom: 18px; }
.ob-demo-form label { font-weight: 600; color: var(--ob-navy); margin-bottom: 6px; display: block; font-size: 14px; }
.ob-demo-form .form-control {
    border: 1px solid var(--ob-border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ob-demo-form .form-control:focus {
    border-color: var(--ob-accent);
    box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
    outline: none;
}

/* ============================================================
   Page wrapper hides marketplace artifacts
   ============================================================ */
body.frontend-page.ob-page .page-detail { background: #fff; }
body.frontend-page.ob-page .page-detail .header-content,
body.frontend-page.ob-page .page-detail .breadcrumb { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .ob-nav, .ob-header-actions { display: none; }
    .ob-burger { display: block; }
    .ob-hero { padding: 70px 0 90px; }
    .ob-hero h1 { font-size: 36px; }
    .ob-hero p { font-size: 17px; }
    .ob-features, .ob-pricing, .ob-testimonials-grid { grid-template-columns: 1fr; }
    .ob-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ob-footer-grid { grid-template-columns: 1fr 1fr; }
    .ob-pain-solution-grid { grid-template-columns: 1fr; gap: 16px; }
    .ob-arrow { transform: rotate(90deg); padding: 8px 0; }
    .ob-pricing-card.featured { transform: none; }
    .ob-cta-band-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .ob-stats-grid, .ob-footer-grid { grid-template-columns: 1fr; }
    .ob-section { padding: 56px 0; }
    .ob-section-title h2 { font-size: 28px; }
    .ob-hero h1 { font-size: 30px; }
    .ob-cta-closing h2 { font-size: 26px; }
}
