/* ═══════════════════════════════════════════════════════
   NATIVA CONSULTING — public-sections.css  (mobile-first)
   Hero · Contadores · Servicios · Tech · Portfolio · Equipo
   Clientes · Testimonios · Blog reciente · Contacto
   MAX 300 líneas — SIN GPU triggers mobile
═══════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    background: var(--primary);
    display: flex;
    align-items: stretch;
}
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 100svh;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.hero-slide.active  { opacity: 1; pointer-events: auto; }
.hero-default {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #001f5c 60%, #0056a0 100%);
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,20,60,.75) 0%, rgba(0,59,142,.45) 100%); }
.hero-content {
    position: relative;
    z-index: 1;
    padding: 6rem 1.25rem 3rem;
    max-width: 760px;
    width: 100%;
    text-align: center;
}
.hero-title    { color: #fff; margin-bottom: 1rem; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.12; }
.hero-subtitle { color: rgba(255,255,255,.85); font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: .75rem; }
.hero-desc     { color: rgba(255,255,255,.65); font-size: .95rem; margin-bottom: 2rem; }
.hero-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .5rem;
    z-index: 2;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: 2px solid rgba(255,255,255,.6);
    transition: background var(--transition);
    min-width: 10px;
}
.hero-dot.active { background: #fff; }
@media (min-width: 768px) {
    .hero-content { padding: 8rem 2rem 4rem; }
}

/* ── CONTADORES ─────────────────────────────────────── */
.section-contadores { background: #f0f7ff; padding: 2.5rem 0; }
.contadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
    text-align: center;
}
.contador-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.25rem;
}
.contador-icon  { display: flex; justify-content: center; }
.contador-icon i,
.contador-icon svg { width: 28px; height: 28px; color: var(--accent); }
.contador-num   { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--primary); }
[data-theme="dark"] .contador-num { color: #b2bcc9; }
.contador-sufijo { font-size: 1.25rem; font-weight: 700; color: var(--accent); display: inline; }
.contador-label  { font-size: .8125rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* ── SERVICIOS ──────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.service-card {
    cursor: pointer;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.service-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.service-card-inner { position: relative; }
.service-card-front {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}
/* Back — mobile: accordion, aparece debajo del front */
.service-card-back {
    display: none;
    flex-direction: column;
    gap: .5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff;
    margin-top: .5rem;
    padding: 18px 20px;
}
.service-card.expanded .service-card-back { display: flex; }
.service-card-back .service-name { color: #fff; margin-bottom: 0; }
.service-back-desc { font-size: .88rem; line-height: 1.7; opacity: .92; }
.service-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .875rem;
    color: var(--primary);
}
.service-icon i,
.service-icon svg { width: 28px; height: 28px; color: var(--accent); }
.service-name { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.service-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.service-close {
    align-self: flex-end;
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}
.service-close:hover { background: rgba(255,255,255,.38); }

/* Dark section override — mobile: fondo sólido, sin GPU */
#servicios { background: #062048; }
#servicios .section-title { color: #fff; }
#servicios .section-subtitle { color: rgba(255,255,255,.65); }
#servicios .service-card-front {
    background: #193155;
    border-color: rgba(255,255,255,.15);
}
#servicios .service-icon { background: rgba(255,255,255,.08); }
#servicios .service-icon i,
#servicios .service-icon svg { color: #7ec8ff; }
#servicios .service-name { color: #fff; }
#servicios .service-card-front .service-desc { color: rgba(255,255,255,.65); }

/* ── TECNOLOGIAS ────────────────────────────────────── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px)  { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(6, 1fr); } }
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--card-color, var(--border));
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.tech-item:hover  { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tech-item img    { height: 40px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(.3); transition: filter var(--transition); }
.tech-item:hover img { filter: grayscale(0); }
.tech-name        { font-size: .875rem; font-weight: 600; color: var(--accent); }
.tech-label       { font-size: .75rem; color: var(--text-muted); display: block; }

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.portfolio-card       { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.portfolio-card-inner { display: flex; flex-direction: column; height: 100%; }
.portfolio-img img    { width: 100%; height: 200px; object-fit: cover; }
.portfolio-body       { padding: 1.25rem; flex: 1; }
.portfolio-cat        { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.portfolio-title      { margin: .5rem 0; }
.portfolio-cliente    { font-size: .875rem; color: var(--text-muted); margin-bottom: .5rem; }
.portfolio-desc       { font-size: .9375rem; color: var(--text-muted); }

/* ── EQUIPO ─────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.team-photo { margin-bottom: .875rem; }
.team-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid var(--border);
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.team-name { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.team-rol  { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }
.team-skill { display: flex; align-items: center; gap: .625rem; margin-bottom: .625rem; }
.team-skill span { font-size: .75rem; color: var(--text-muted); flex-shrink: 0; }
.skill-bar  { flex: 1; height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #00a8e8); border-radius: 99px; transition: width 1.2s ease; }
.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: .6;
    transition: opacity var(--transition);
}
.team-linkedin:hover { opacity: 1; }

/* Dark section override — mobile: fondo sólido, sin GPU */
#especialistas { background: #051840; }
#especialistas .section-title { color: #fff; }
#especialistas .section-subtitle { color: rgba(255,255,255,.65); }
#especialistas .team-card {
    background: #193155;
    border-color: rgba(255,255,255,.15);
}
#especialistas .team-name { color: #fff; }
#especialistas .team-rol { color: rgba(255,255,255,.65); }
#especialistas .skill-bar { background: rgba(255,255,255,.15); }
#especialistas .team-skill span { color: rgba(255,255,255,.55); }
#especialistas .team-photo img { border-color: rgba(255,255,255,.24); }
#especialistas .team-linkedin { color: #7ec8ff; opacity: .8; }

/* ── CLIENTES ───────────────────────────────────────── */
.section-clientes { padding: 2rem 0; }
.clientes-label {
    text-align: center;
    font-size: .8125rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.clientes-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }
.cliente-item img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(1) opacity(.55);
    transition: filter var(--transition);
}
.cliente-item img:hover { filter: none; }
.cliente-nombre { font-size: .875rem; color: var(--text-muted); }

/* ── TESTIMONIOS ────────────────────────────────────── */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonio-card  { background: var(--white); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.testimonio-text  { font-style: italic; color: var(--text-muted); margin-bottom: 1.25rem; }
.testimonio-autor { display: flex; align-items: center; gap: .75rem; }
.testimonio-foto  { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonio-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.testimonio-nombre { font-weight: 600; font-size: .9375rem; }
.testimonio-cargo  { font-size: .8125rem; color: var(--text-muted); }

/* ── BLOG RECIENTE ──────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.blog-card     { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.blog-img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-img-wrap:hover img { transform: scale(1.03); }
.blog-body     { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-title    { font-weight: 600; color: var(--text); display: block; margin-bottom: .5rem; transition: color var(--transition); line-height: 1.4; }
.blog-title:hover { color: var(--primary); }
.blog-excerpt  { font-size: .9375rem; color: var(--text-muted); flex: 1; margin-bottom: .75rem; }
.blog-link     { font-size: .875rem; font-weight: 600; color: var(--accent); align-self: flex-start; }
.blog-link:hover { color: var(--primary); }

/* ── CONTACTO ───────────────────────────────────────── */
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.7);
    padding: 3.5rem 0 1.5rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 480px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: .75rem;
}
.footer-logo-text em { color: var(--accent); }
.footer-tagline {
    font-size: .9375rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,.25); color: #fff; }
.footer-col h4 {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
}
.footer-col ul li + li { margin-top: .5rem; }
.footer-col a {
    font-size: .9375rem;
    color: rgba(255,255,255,.75);
    transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 1rem;
    font-size: .875rem;
    color: rgba(255,255,255,.5);
}
.footer-extra { margin-top: .25rem; }
