/* =============================================
   OPERACIÓN CADETE — main.css  (Mobile-First)
   ============================================= */

:root {
    --primary:     #0f172a;
    --accent:      #3b6ef5;
    --accent-soft: #eff3ff;
    --green-soft:  #f0fdf4;
    --bg:          #ffffff;
    --surface:     #f8fafc;
    --text:        #0f172a;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --fh:          'Outfit', sans-serif;
    --fb:          'Inter', sans-serif;
    --ease:        cubic-bezier(0.16,1,0.3,1);
    --r:           20px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--fb);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,h2,h3,h4 {
    font-family: var(--fh);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

img { max-width:100%; display:block; }

/* ──────────────────────────────────────────────
   UTILITIES
────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* Eye-brow label */
.eyebrow {
    display: block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid #c7d6fd;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-family: var(--fb);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,110,245,.35);
}
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ──────────────────────────────────────────────
   NAVBAR  (floating pill)
────────────────────────────────────────────── */
/* Hero Announcement - Subtle & Natural */
.hero-announcement {
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}
.hero-announcement p { margin: 0; }
.hero-announcement strong { color: var(--accent); }

@media (max-width: 768px) {
    .hero-announcement { text-align: center; }
}

#navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1100px;
    height: 58px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 3000;
    transition: all 0.3s var(--ease);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}
.logo img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
}

/* Desktop links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Hamburger — hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    color: var(--text);
    flex-shrink: 0;
}

/* ── Mobile nav ─────────────────────────────── */
@media (max-width: 768px) {
    .menu-toggle { display: flex; align-items: center; }

    .nav-links {
        /* Hidden by default */
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        position: fixed;
        top: 76px;
        left: 1rem;
        right: 1rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.12);
        z-index: 2999;
        overflow: hidden;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
        color: var(--text);
    }
    .nav-links a:last-child { border-bottom: none; }

    /* CTA button inside mobile menu gets full width */
    .nav-links .btn-primary {
        margin: 1rem 1.5rem 1.25rem;
        border-radius: 12px;
        justify-content: center;
        font-size: 1rem;
        color: #fff !important; /* Ensure readable text */
    }
}

/* ── Specific for Content Pages (Privacy/Terms) ── */
.content-page {
    padding: 8rem 0 4rem;
}
@media (max-width: 768px) {
    .content-page { padding: 6rem 0 3rem; }
    .content-page h1 { font-size: 2rem; }
}

/* ──────────────────────────────────────────────
   HERO
────────────────────────────────────────────── */
.hero {
    padding: 7.5rem 0 4rem;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-text { text-align: center; }

.hero-text h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 1.75rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--border);
}
.stat { display:flex; flex-direction:column; align-items:center; }
.stat-num {
    font-family: var(--fh);
    font-size: 1.4rem;
    font-weight: 800;
}
.stat-lbl {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-sep { width:1px; background: var(--border); align-self:stretch; }

/* Hero phone */
.hero-phone {
    display: flex;
    justify-content: center;
}
.phone-frame {
    width: min(240px, 70vw);
    border-radius: 32px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 20px 60px rgba(0,0,0,0.18);
    background: var(--surface);
}
.phone-frame img { width:100%; }

/* Desktop hero: side by side */
@media (min-width: 768px) {
    .hero-grid {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
    .hero-text { text-align: left; flex: 1.2; }
    .hero-text p { margin: 0 0 1.75rem; }
    .hero-cta { flex-direction: row; align-items: flex-start; }
    .hero-phone { flex: 0.8; }
    .hero-stats { justify-content: flex-start; }
    .phone-frame { width: 260px; }
}

/* ──────────────────────────────────────────────
   BENTO GRID
────────────────────────────────────────────── */
.bento-section { padding: 4.5rem 0; }
.bento-section h2 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    margin-bottom: 2rem;
}

/* Every card is stacked by default (mobile) */
.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Two-column grid on tablet+ */
@media (min-width: 600px) {
    .bento-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    /* First card spans full width */
    .bento-grid .bento-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 968px) {
    .bento-grid {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: auto auto;
    }
    /* First card: 2 rows tall */
    .bento-grid .bento-card:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    /* Second card: top right */
    .bento-grid .bento-card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    /* Third card: bottom right */
    .bento-grid .bento-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Second bento row — always 1 col mobile, 3 col desktop */
.bento-row2 {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (min-width: 600px) {
    .bento-row2 { flex-direction: row; }
    .bento-row2 .bento-card { flex: 1; }
}

/* ── Card base ─────────────────────────── */
.bento-card {
    border-radius: var(--r);
    border: 1px solid var(--border);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    /* NO min-height — let content decide */
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* Card colour variants */
.c-blue  { background: var(--accent-soft); border-color: #c7d6fd; }
.c-white { background: var(--surface); }
.c-green { background: var(--green-soft); border-color: #bbf7d0; }
.c-dark  { background: var(--primary); border-color: transparent; }
.c-dark h3 { color: #fff; }
.c-dark p  { color: rgba(255,255,255,0.65); }

/* Tag inside card */
.bento-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(59,110,245,0.12);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.c-dark .bento-tag { background: rgba(255,255,255,0.15); color:#fff; }

.bento-card h3 { font-size: 1.2rem; margin-top: 0.25rem; }
.bento-card p  { font-size: 0.875rem; color: var(--muted); }

/* Screenshot inside card — FIXED: visible, centered, proper size */
.bento-img-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Explicit height so the image is actually visible */
    height: 220px;
    overflow: hidden;
}

.bento-img-wrap img {
    /* Show image at a readable size — NOT tiny */
    width: auto;
    max-width: 160px;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
    border: 3px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: transform 0.4s var(--ease);
}
.bento-card:hover .bento-img-wrap img {
    transform: scale(1.05) translateY(-6px);
}

/* First card (big): image is bigger */
.bento-card:first-child .bento-img-wrap {
    height: 280px;
}
.bento-card:first-child .bento-img-wrap img {
    max-width: 200px;
}

/* ──────────────────────────────────────────────
   SHOWCASE (feature detail)
────────────────────────────────────────────── */
.showcase {
    padding: 5rem 0;
    background: var(--surface);
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .showcase-grid {
        flex-direction: row;
        gap: 4rem;
    }
    .showcase-text { flex: 1; }
    .showcase-phones { flex: 1; }
}

.check-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
}
.check-list li::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b6ef5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Two phones overlapping */
.phones-duo {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: -1rem;
    position: relative;
}
.phones-duo .phone-frame {
    width: min(180px, 42vw);
}
.phones-duo .phone-frame:first-child {
    transform: rotate(-4deg) translateX(16px);
    z-index: 2;
}
.phones-duo .phone-frame:last-child {
    transform: rotate(4deg) translateX(-16px);
    z-index: 1;
    opacity: 0.8;
}

@media (max-width: 400px) {
    .phones-duo .phone-frame:last-child { display: none; }
    .phones-duo .phone-frame:first-child { transform: none; width: min(220px, 72vw); }
}

/* ──────────────────────────────────────────────
   CTA SECTION
────────────────────────────────────────────── */
.cta-section {
    padding: 5.5rem 0;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    margin-bottom: 1rem;
}
.cta-section p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.cta-note {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.site-footer {
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
@media (min-width: 600px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
}
