/* =========================================
   OFIT - Página institucional
   (los márgenes negativos y transforms que compensaban
   el layout de drubbit se quitaron)
   ========================================= */

html { scroll-behavior: smooth; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f172a;
    color: #ffffff;
    overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }

/* ENCABEZADO */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(17,21,36,0.88);   /* #111524 del manual de marca */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header-inner {
    max-width: 1180px; margin: 0 auto;
    padding: 0 24px; min-height: 72px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.site-logo img { height: 32px; width: auto; display: block; }   /* logo a color, manual de marca (mínimo 30 px) */
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: #cbd5e1; transition: color 0.2s; }
.site-nav a:hover { color: #00B6ED; }
.site-nav a.nav-cta { background: #00B6ED; color: #fff; padding: 10px 20px; border-radius: 50px; box-shadow: 0 8px 24px rgba(0,182,237,.3); }
.site-nav a.nav-cta:hover { background: #fff; color: #122E5F; }
@media (max-width: 760px) {
    .site-header-inner { padding: 0 16px; min-height: 64px; }
    .site-logo img { height: 30px; }
    .site-nav { gap: 14px; }
    .site-nav a { font-size: 13px; }
    .site-nav a.nav-cta { display: none; }
}
@media (max-width: 560px) {
    .site-logo span { display: none; }
}

/* PIE */
.site-footer { background: #0a1421; border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 28px 16px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    font-size: 13px; color: #64748b;
}
.site-footer-links { display: flex; gap: 18px; align-items: center; }
.site-footer-links a { color: #cbd5e1; text-decoration: none; }
.site-footer-links a:hover { color: #0ea5e9; }
.site-footer-links .fa-linkedin { font-size: 20px; }

/* GENERALES */
.section-divider {
    border: none; height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(14,165,233,0.4), rgba(255,255,255,0));
    margin: 40px auto; max-width: 80%;
}
.btn-section {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 30px; padding: 13px 22px;
    background-color: #0ea5e9; color: #ffffff !important;
    text-decoration: none; border-radius: 50px;
    font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(14,165,233,0.3);
    border: none; cursor: pointer; white-space: nowrap;
}
.btn-section:hover {
    transform: scale(1.05); background-color: #ffffff; color: #0ea5e9 !important;
    box-shadow: 0 15px 30px rgba(14,165,233,0.5);
}
.section-title { font-size: clamp(24px, 5vw, 32px); font-weight: 700; color: #ffffff; }
.section-subtitle { font-size: clamp(15px, 3vw, 17px); color: #cbd5e1; line-height: 1.6; }
.text-center { text-align: center; }

.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 50px;
    background: rgba(14,165,233,0.2); border: 1px solid rgba(14,165,233,0.4); margin-bottom: 16px;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #0ea5e9; display: inline-block; }
.pill-text { font-size: 11px; font-weight: 700; color: #0ea5e9; letter-spacing: 1px; text-transform: uppercase; }

.title-lines { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; gap: 14px; }
.title-line { height: 1px; background: rgba(255,255,255,0.2); flex-grow: 1; max-width: 120px; }
.title-lines h2 {
    font-size: clamp(16px,4vw,22px); font-weight: 700; color: #ffffff; margin: 0;
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
@media (max-width: 420px) { .title-lines h2 { white-space: normal; } }

/* HERO */
.hero {
    position: relative; width: 100%; min-height: 80vh;
    background-color: #0f172a;
    display: flex; align-items: center; overflow: hidden;
}
.hero video {
    position: absolute; top: 50%; left: 50%;
    min-width: 110%; min-height: 100%; width: auto; height: auto;
    z-index: 0; transform: translate(-50%, -50%);
    object-fit: cover; opacity: 0.8;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.5) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; width: 100%;
    max-width: 1100px; margin: 0 auto; padding: 80px 20px 60px; color: white;
}
.hero-badge {
    display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 50px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff; font-size: 12px; font-weight: 600; margin-bottom: 24px; letter-spacing: 1px;
}
.hero h1 {
    font-size: clamp(36px, 10vw, 72px); font-weight: 800; margin-bottom: 20px;
    letter-spacing: -2px; line-height: 1; text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero p {
    font-size: clamp(16px, 4vw, 22px); line-height: 1.6; max-width: 750px;
    margin-bottom: 36px; color: #cbd5e1; font-weight: 400;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btns a {
    background-color: #0ea5e9; color: white; padding: 16px 28px; text-decoration: none;
    border-radius: 50px; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 15px 30px rgba(14,165,233,0.4);
    transition: all 0.3s ease; border: 1px solid #0ea5e9;
}
.hero-btns a:hover { background: white; color: #0ea5e9; }
@media (max-width: 768px) {
    .hero { min-height: 70vh; }
    .hero-content { padding-top: 60px; padding-bottom: 40px; }
}

/* CUERPO */
.page-body { background-color: #0f172a; color: white; }
.container { max-width: 1100px; margin: 0 auto; padding: 50px 16px; }

/* BANNER CLIENTES */
.clientes-banner { background: #0a1421; padding: 50px 20px; }
.clientes-banner-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .clientes-banner-inner { grid-template-columns: repeat(3, 1fr); } }

.cb2-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 28px 24px;
    display: flex; flex-direction: column; gap: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.cb2-card:hover { transform: translateY(-4px); }
.cb2-card.mayorista { border-top: 3px solid #0ea5e9; }
.cb2-card.mayorista:hover { border-color: #0ea5e9; }
.cb2-card.tienda { border-top: 3px solid #38bdf8; }
.cb2-card.tienda:hover { border-color: #38bdf8; }
.cb2-card.minorista { border-top: 3px solid #ffe600; }
.cb2-card.minorista:hover { border-color: #ffe600; }

.cb2-header { display: flex; align-items: center; justify-content: space-between; }
.cb2-num { font-size: 48px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; opacity: 0.9; }
.cb2-card.mayorista .cb2-num { color: #0ea5e9; }
.cb2-card.tienda .cb2-num { color: #38bdf8; }
.cb2-card.minorista .cb2-num { color: #ffe600; }

.cb2-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.cb2-card.mayorista .cb2-icon { background: rgba(14,165,233,0.12); color: #0ea5e9; }
.cb2-card.tienda .cb2-icon { background: rgba(56,189,248,0.12); color: #38bdf8; }
.cb2-card.minorista .cb2-icon { background: rgba(255,230,0,0.12); }

.cb2-card h3 { font-size: 20px; font-weight: 700; color: #ffffff; margin: 0; }
.cb2-card p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; flex: 1; }
.cb2-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 50px;
    font-size: 16px; font-weight: 700; text-decoration: none;
    width: 100%; max-width: 280px; margin: 10px auto 0;
    transition: all 0.25s ease; white-space: nowrap;
}
.cb2-card.mayorista .cb2-btn { background: #0ea5e9; color: #fff; }
.cb2-card.mayorista .cb2-btn:hover { background: #fff; color: #0284c7; }
.cb2-card.tienda .cb2-btn { background: #38bdf8; color: #0a1628; }
.cb2-card.tienda .cb2-btn:hover { background: #fff; color: #0284c7; }
.cb2-card.minorista .cb2-btn { background: #ffe600; color: #1a237e; }
.cb2-card.minorista .cb2-btn:hover { background: #fff; color: #0f172a; }

/* HISTORIA */
.historia-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .historia-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .historia-grid { grid-template-columns: 1fr 1fr 1fr; } }
.mvv-card {
    background: rgba(255,255,255,0.05); padding: 26px 22px;
    border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); border-left: 5px solid #0ea5e9;
}
.mvv-card h3 { font-size: 17px; font-weight: 700; color: #ffffff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.mvv-card p { font-size: 14px; line-height: 1.6; color: #cbd5e1; }

/* FUNDADORES */
.founders-wrapper { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 60px; }
.founders-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center top;
    filter: brightness(0.25) saturate(1.2); z-index: 0;
}
.founders-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,165,233,0.06) 0%, rgba(15,23,42,0.92) 100%);
    z-index: 1;
}
.founders-inner { position: relative; z-index: 2; padding: 40px 20px; }
@media (min-width: 760px) { .founders-inner { padding: 70px 40px; } }
.founders-layout { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
@media (min-width: 900px) { .founders-layout { grid-template-columns: 340px 1fr; gap: 50px; } }
.founders-side-img { display: none; }
@media (min-width: 900px) {
    .founders-side-img {
        display: block; border-radius: 20px; overflow: hidden; height: 560px;
        box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(14,165,233,0.2);
        position: sticky; top: 80px;
    }
    .founders-side-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
}
.founders-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 520px) { .founders-grid { grid-template-columns: 1fr 1fr; } }
.founder-card {
    background: rgba(15,23,42,0.75); backdrop-filter: blur(12px);
    border: 1px solid rgba(14,165,233,0.2); border-radius: 20px;
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.founder-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(14,165,233,0.15); }
.founder-photo-wrap { width: 100%; padding: 28px 0 18px; display: flex; justify-content: center; align-items: center; }
.founder-photo-wrap img {
    width: 130px; height: 130px; object-fit: cover; object-position: top;
    border-radius: 50%; border: 3px solid rgba(14,165,233,0.5); display: block;
}
.founder-info { padding: 18px 22px 24px; border-top: 1px solid rgba(14,165,233,0.2); }
.founder-info .tag {
    display: inline-block; padding: 4px 12px; border-radius: 50px;
    background: rgba(14,165,233,0.15); color: #0ea5e9;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.founder-info h3 { font-size: 20px; font-weight: 800; color: white; margin-bottom: 3px; }
.founder-info .role { font-size: 13px; color: #0ea5e9; font-weight: 700; margin-bottom: 14px; }
.founder-info p { font-size: 13px; color: #cbd5e1; line-height: 1.6; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 60px; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } }
.stat-card { padding: 22px 14px; background: rgba(255,255,255,0.1); border-radius: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.stat-card p:first-child { font-size: 28px; font-weight: 800; color: #0ea5e9; margin-bottom: 5px; }
.stat-card p:last-child { font-size: 10px; font-weight: 700; color: #ffffff; text-transform: uppercase; }

/* MARCAS */
.marcas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 560px) { .marcas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .marcas-grid { grid-template-columns: repeat(5, 1fr); } }
.marca-card {
    background: white; padding: 20px 14px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 130px; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.marca-card img { max-width: 120px; height: auto; margin-bottom: 12px; }
.marca-card a {
    background: #ff8a00; color: white; padding: 6px 12px; border-radius: 4px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; text-decoration: none;
}

/* VENTAJA */
.ventaja-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
@media (min-width: 640px) { .ventaja-grid { grid-template-columns: repeat(3, 1fr); } }
.ventaja-item { text-align: center; }
.ventaja-img-wrap { border-radius: 12px; overflow: hidden; height: 190px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.ventaja-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ventaja-item h3 { font-size: clamp(20px,4vw,24px); font-weight: 800; color: #ffffff; margin: 0; }
.ventaja-item p { color: #0ea5e9; font-size: 14px; margin-top: 4px; }

/* QUOTE */
.quote-section { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; margin-bottom: 50px; }
.quote-section h2 { font-size: clamp(22px, 5vw, 32px); font-weight: 700; color: #ffffff; margin-bottom: 20px; }

/* RESEÑAS */
.reviews-scroll {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    scrollbar-color: #0ea5e9 rgba(255,255,255,0.05); padding-bottom: 14px;
}
.review-card {
    scroll-snap-align: start; flex: 0 0 85vw; max-width: 340px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 760px) { .review-card { flex: 0 0 calc(33.333% - 12px); } }
.review-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.review-card-name { font-size: 15px; font-weight: 700; color: #ffffff; margin: 0 0 2px 0; }
.review-card-meta { font-size: 11px; color: #64748b; margin: 0; }
.review-stars { display: flex; gap: 2px; flex-shrink: 0; }
.review-stars span { color: #fbbf24; font-size: 14px; }
.review-stars.big { gap: 3px; margin-bottom: 4px; }
.review-stars.big span { font-size: 18px; }
.review-text { font-size: 14px; color: #cbd5e1; line-height: 1.7; margin: 0; flex-grow: 1; }
.review-footer { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; }
.review-tag { font-size: 11px; color: #0ea5e9; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.review-sep { color: #334155; font-size: 10px; }
.review-date { font-size: 11px; color: #475569; }

/* LINKEDIN */
.linkedin-feed-wrapper { max-width: 1400px; margin: auto; padding: 20px; }
.linkedin-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.linkedin-card {
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.08); transition: .3s ease;
    display: flex; flex-direction: column; height: 100%;
}
.linkedin-card:hover { transform: translateY(-5px); }
.linkedin-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.linkedin-profile { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.linkedin-info h4 { margin: 0; font-size: 15px; font-weight: 600; color: #111; }
.linkedin-image { width: 100%; aspect-ratio: 1.1/1; object-fit: cover; display: block; }
.linkedin-content {
    padding: 16px 18px 18px; flex-grow: 1;
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
.linkedin-content p {
    margin: 0; color: #444; font-size: 14px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    width: 100%; text-align: left;
}
.linkedin-btn { margin-top: 12px; color: #0A66C2; text-decoration: none; font-size: 14px; font-weight: 600; width: fit-content; }
.linkedin-btn:hover { text-decoration: underline; }
.linkedin-follow-container { text-align: center; margin-top: 30px; }
.linkedin-follow-btn {
    display: inline-flex; align-items: center; gap: 10px;
    color: #ffffff; text-decoration: none; font-size: 16px; font-weight: 600;
}
.linkedin-follow-btn svg { width: 18px; height: 18px; fill: #ffffff; }
.linkedin-follow-btn:hover { opacity: .75; }

@media (max-width: 900px) {
    .linkedin-feed-wrapper { padding: 20px 0; }
    .linkedin-feed {
        display: flex; overflow-x: auto; gap: 14px; padding: 0 16px 10px;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    }
    .linkedin-feed::-webkit-scrollbar { display: none; }
    .linkedin-card { min-width: 280px; max-width: 280px; scroll-snap-align: center; flex-shrink: 0; }
    .linkedin-image { aspect-ratio: 1/1; }
}
