/* =============================================
   Lecra — Hoja de estilos principal
   Minimalista, profesional, blanco/gris
   ============================================= */

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

:root {
    --white:      #ffffff;
    --bg-light:   #f8fafc;
    --bg-section: #f1f5f9;
    --navy:       #0f172a;
    --navy-2:     #1e293b;
    --navy-3:     #334155;
    --muted:      #64748b;
    --muted-2:    #94a3b8;
    --border:     #e2e8f0;
    --blue:       #ea580c;
    --blue-dark:  #c2410c;
    --blue-light: #fff7ed;
    --radius:     14px;
    --radius-sm:  8px;
    --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.1);
    --transition: .22s ease;
    --max-w:      1200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Botones ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--blue); color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--navy-2);
}
.btn-outline:hover {
    border-color: var(--navy-2);
    background: var(--bg-light);
    transform: translateY(-1px);
}
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── Tags / Badges ── */
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 100px;
    letter-spacing: .04em; text-transform: uppercase;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 68px;
    transition: var(--transition);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto; padding: 0 24px;
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800;
    color: var(--navy); letter-spacing: -.5px;
}
.nav-logo .dot { color: var(--blue); }
.nav-links {
    display: flex; align-items: center; gap: 4px;
    list-style: none;
}
.nav-links a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    color: var(--muted);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--navy);
    background: var(--bg-light);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 24px;
    flex-direction: column; gap: 8px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 14px 16px; border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 500; color: var(--navy);
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { background: var(--bg-light); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    padding: 152px 0 96px;
    background: var(--white);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(234,88,12,.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.hero-tag { margin-bottom: 20px; }
.hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--navy);
    margin-bottom: 20px;
}
.hero-title .accent { color: var(--blue); }
.hero-desc {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 32px; margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat-val {
    font-size: 28px; font-weight: 800;
    color: var(--navy); letter-spacing: -1px;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Hero visual */
.hero-visual {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hero-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-card:first-child { grid-column: 1 / -1; }
.hero-card-icon {
    width: 44px; height: 44px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 12px;
}
.hero-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.hero-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════════
   SECCIÓN GENÉRICA
══════════════════════════════════════ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-light); }
.section-tag { margin-bottom: 12px; }
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
}
.section-header { margin-bottom: 56px; }
.section-header-center {
    text-align: center;
}
.section-header-center .section-desc {
    margin: 0 auto;
}

/* ══════════════════════════════════════
   SERVICIOS
══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0); transform-origin: left;
    transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px; height: 52px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
    color: var(--blue);
}
.service-card h3 {
    font-size: 18px; font-weight: 700;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 14px; color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}
.service-list {
    list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.service-list li {
    font-size: 13px; color: var(--muted);
    display: flex; align-items: center; gap: 8px;
}
.service-list li::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue); flex-shrink: 0;
}

/* ══════════════════════════════════════
   PROCESO
══════════════════════════════════════ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    position: relative;
}
.process-step { text-align: center; }
.process-num {
    width: 56px; height: 56px;
    background: var(--blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 20px; font-weight: 800; color: #fff;
}
.process-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════
   VALORES / PILARES
══════════════════════════════════════ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.pillar {
    display: flex; gap: 16px;
}
.pillar-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 18px;
}
.pillar h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pillar p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.cta-section {
    background: var(--navy);
    padding: 96px 0;
    text-align: center;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-desc { color: var(--muted-2); margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white {
    background: #fff; color: var(--navy);
}
.btn-white:hover { background: var(--bg-light); }
.btn-outline-white {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.25);
    color: #fff;
}
.btn-outline-white:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.05);
}

/* ══════════════════════════════════════
   SOBRE NOSOTROS
══════════════════════════════════════ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.about-img-wrap {
    position: relative;
}
.about-img {
    border-radius: var(--radius);
    width: 100%; aspect-ratio: 4/3;
    background: var(--bg-section);
    display: flex; align-items: center; justify-content: center;
    font-size: 80px;
    color: var(--blue);
    border: 1px solid var(--border);
}
.about-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.about-badge .num { font-size: 32px; font-weight: 800; line-height: 1; }
.about-badge .lbl { font-size: 12px; opacity: .8; margin-top: 4px; }
.values-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 16px;
    margin-top: 32px;
}
.values-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 14px; color: var(--navy-3);
}
.values-list li i {
    color: var(--blue); margin-top: 2px; flex-shrink: 0;
}

/* ══════════════════════════════════════
   FORMULARIO DE CONTACTO
══════════════════════════════════════ */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 64px; align-items: start;
}
.contact-info h2 {
    font-size: 28px; font-weight: 800;
    margin-bottom: 16px;
}
.contact-info p {
    font-size: 15px; color: var(--muted);
    line-height: 1.7; margin-bottom: 36px;
}
.contact-details {
    display: flex; flex-direction: column; gap: 20px;
}
.contact-item {
    display: flex; align-items: flex-start; gap: 14px;
}
.contact-item-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 16px;
}
.contact-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.contact-item p, .contact-item a {
    font-size: 14px; color: var(--muted);
}
.contact-item a:hover { color: var(--blue); }

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.form-card h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 8px;
}
.form-card .subtitle {
    font-size: 14px; color: var(--muted);
    margin-bottom: 28px;
}
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex; flex-direction: column; gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-size: 13px; font-weight: 600;
    color: var(--navy-2);
}
.form-group label span { color: var(--blue); }
.form-control {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    color: var(--navy); background: var(--white);
    transition: var(--transition);
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(234,88,12,.1);
}
.form-control::placeholder { color: var(--muted-2); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }

.form-check {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--muted);
}
.form-check input { margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.form-check a { color: var(--blue); }

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }

.alert {
    padding: 14px 16px; border-radius: var(--radius-sm);
    font-size: 14px; margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-success {
    background: #f0fdf4; color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2; color: #991b1b;
    border: 1px solid #fecaca;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 32px;
}
.footer-brand .logo-text {
    font-size: 22px; font-weight: 800;
    color: #fff; letter-spacing: -.5px;
    margin-bottom: 12px;
}
.footer-brand .logo-text .dot { color: var(--blue); }
.footer-brand p {
    font-size: 14px; line-height: 1.7;
    color: rgba(255,255,255,.5);
    max-width: 280px;
}
.footer-col h4 {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: #fff; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    transition: var(--transition);
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,.35);
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom a {
    color: rgba(255,255,255,.35);
    transition: var(--transition);
}
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { order: -1; }
    .hero-stats { gap: 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img-wrap { display: none; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 110px 0 64px; }
    .hero-title { font-size: 34px; }
    .section { padding: 64px 0; }
    .hero-visual { grid-template-columns: 1fr; }
    .hero-card:first-child { grid-column: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Page activa */
body.page-inicio .nav-inicio,
body.page-nosotros .nav-nosotros,
body.page-contacto .nav-contacto { color: var(--navy) !important; background: var(--bg-light); }

/* ══════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════ */
.wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 900;
    display: flex; align-items: center; gap: 0;
    filter: drop-shadow(0 4px 16px rgba(37,211,102,.35));
    transition: var(--transition);
}
.wa-float:hover { filter: drop-shadow(0 6px 24px rgba(37,211,102,.5)); transform: translateY(-2px); }
.wa-bubble {
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    transition: var(--transition);
}
.wa-label {
    background: #fff;
    color: var(--navy);
    font-size: 13px; font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    white-space: nowrap;
    max-width: 0; overflow: hidden;
    transition: max-width .35s ease, padding .35s ease, opacity .35s ease;
    opacity: 0;
    margin-right: -8px;
    order: -1;
}
.wa-float:hover .wa-label {
    max-width: 200px;
    opacity: 1;
    padding: 8px 16px;
}

/* Nosotros extras */
.about-stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.about-stat {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
}
.stat-big {
    font-size: 40px; font-weight: 800;
    color: var(--blue); letter-spacing: -2px; line-height: 1;
}
.stat-label-big {
    font-size: 13px; color: var(--muted); margin-top: 6px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.value-icon {
    width: 48px; height: 48px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 20px;
    margin-bottom: 16px;
}
.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.tech-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    transition: var(--transition);
}
.tech-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tech-item span { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.page-hero {
    padding: 140px 0 64px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
