/* =========================================================
   OnlyTechnology — Estilos globales
   Identidad: dark navy + amber + teal
   ========================================================= */

/* ---------- Variables ---------- */
:root {
    --background: 222 47% 7%;
    --foreground: 210 40% 98%;
    --card: 222 47% 10%;
    --primary: 38 92% 50%;          /* Amber */
    --primary-fg: 222 47% 7%;
    --secondary: 185 96% 41%;       /* Teal */
    --secondary-fg: 222 47% 7%;
    --muted: 217 32% 17%;
    --muted-fg: 215 20% 65%;
    --border: 217 32% 22%;
    --input: 217 32% 17%;
    --radius: 0.5rem;

    --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    --container-max: 1280px;
    --header-h: 64px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: hsl(var(--border) / 0.6); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
::selection { background: hsl(var(--primary) / 0.35); color: hsl(var(--foreground)); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--muted)); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--border)); }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 4rem; } }

.overline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--secondary));
}
.gradient-text {
    background: linear-gradient(120deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.glass {
    background: hsl(222 47% 10% / 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-strong {
    background: hsl(222 47% 8% / 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: hsl(var(--muted-fg)); }
.link-primary { color: hsl(var(--primary)); font-weight: 600; font-size: 0.85rem; }
.link-primary:hover { text-decoration: underline; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform .18s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    text-align: center;
}
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); }
.btn-primary:hover { background: hsl(var(--primary) / 0.9); box-shadow: 0 0 40px -10px hsl(var(--primary) / 0.5); }
.btn-outline { border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-outline:hover { border-color: hsl(var(--secondary) / 0.6); color: hsl(var(--secondary)); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.4rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: hsl(222 47% 8% / 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); border: 1px solid hsl(var(--primary) / 0.3); }
.logo-text { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.1rem; }
.logo-primary { color: hsl(var(--foreground)); }
.logo-secondary { color: hsl(var(--primary)); }

.nav-desktop { display: none; align-items: center; gap: 0.15rem; }
.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-fg));
    border-radius: 0.375rem;
    transition: color .2s ease;
}
.nav-link:hover { color: hsl(var(--secondary)); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-toggle { display: inline-flex; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; overflow: hidden; }
.lang-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-fg)); }
.lang-btn.active { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); }
.lang-btn:not(.active):hover { color: hsl(var(--foreground)); }

.nav-cta { display: none; }
.nav-toggle {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 0.375rem;
    gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: hsl(var(--foreground)); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: hsl(var(--background));
    padding: 1rem 1.25rem;
}
.nav-mobile nav { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-mobile-link {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    color: hsl(var(--muted-fg));
    border-radius: 0.375rem;
}
.nav-mobile-link:hover { color: hsl(var(--secondary)); background: hsl(var(--muted) / 0.3); }
.nav-mobile-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px solid hsl(var(--border) / 0.4); }

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .nav-cta { display: inline-flex; }
    .nav-toggle { display: none; }
    .nav-mobile { display: none !important; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 5rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-alt { border-top: 1px solid hsl(var(--border) / 0.4); border-bottom: 1px solid hsl(var(--border) / 0.4); background: hsl(var(--card) / 0.3); }
.section-page { padding-top: 4rem; }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head .overline { display: block; margin-bottom: 0.75rem; }
.section-title { font-size: 2rem; line-height: 1.15; font-weight: 800; }
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.section-sub { margin-top: 1rem; color: hsl(var(--muted-fg)); max-width: 620px; }
.section-head-center .section-sub { margin-inline: auto; }
.section-cta { text-align: center; margin-top: 3rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: hsl(var(--muted-fg)); }

/* Grids reusables */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0; }
@media (min-width: 768px) { .hero { padding: 8rem 0; } }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.blob-primary { top: -8rem; right: -8rem; width: 600px; height: 600px; background: hsl(var(--primary) / 0.1); }
.blob-secondary { bottom: -10rem; left: -5rem; width: 500px; height: 500px; background: hsl(var(--secondary) / 0.1); }

.hero-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
}
.hero-title {
    font-size: 2.5rem; line-height: 1.05; font-weight: 800;
    margin-top: 1rem; letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.25rem; } }
.hero-sub { margin-top: 1.25rem; font-size: 1rem; color: hsl(var(--muted-fg)); max-width: 560px; line-height: 1.65; }
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; max-width: 420px; }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: hsl(var(--foreground)); display: block; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--muted-fg)); margin-top: 0.2rem; display: block; }

.hero-media { position: relative; }
.hero-image-wrap {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.6);
    box-shadow: 0 40px 80px -20px hsl(0 0% 0% / 0.6);
}
.hero-image-wrap img { width: 100%; height: 380px; object-fit: cover; }
@media (min-width: 768px) { .hero-image-wrap img { height: 460px; } }
.hero-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top right, hsl(var(--background) / 0.8), transparent 60%);
}
.hero-live-badge {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem;
}
.pulse-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #34d399;
    animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-tag {
    position: absolute; top: -12px; left: -12px;
    padding: 0.6rem 0.7rem;
    border-radius: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    color: hsl(var(--primary));
}
@media (min-width: 1024px) { .hero-tag { display: inline-flex; } }

/* Trust bar */
.trust-bar { border-top: 1px solid hsl(var(--border) / 0.4); border-bottom: 1px solid hsl(var(--border) / 0.4); background: hsl(var(--card) / 0.3); padding: 1.25rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; text-align: center; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.8rem; color: hsl(var(--muted-fg)); }
.trust-icon { color: hsl(var(--secondary)); }

/* ---------- Servicios ---------- */
.service-card {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
    height: 100%;
}
.service-card::before {
    content: ""; position: absolute; top: -32px; right: -32px;
    width: 112px; height: 112px;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.05);
    transition: background-color .3s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: hsl(var(--secondary) / 0.5); box-shadow: 0 20px 40px -20px hsl(0 0% 0% / 0.5); }
.service-card:hover::before { background: hsl(var(--primary) / 0.12); }
.service-card:hover .service-title { color: hsl(var(--secondary)); }
.service-icon {
    position: relative;
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 0.5rem;
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.3);
    margin-bottom: 1.25rem;
    color: hsl(var(--primary));
}
.service-title { position: relative; font-size: 1.125rem; margin-bottom: 0.5rem; transition: color .3s ease; }
.service-desc { position: relative; font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-media img { border-radius: 1rem; width: 100%; height: 380px; object-fit: cover; border: 1px solid hsl(var(--border) / 0.6); }
@media (min-width: 768px) { .about-media img { height: 460px; } }
.about-body { color: hsl(var(--muted-fg)); line-height: 1.7; margin-top: 1rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
.counter { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; display: inline-block; }
@media (min-width: 768px) { .counter { font-size: 3rem; } }
.about-stats p { font-size: 0.85rem; color: hsl(var(--muted-fg)); margin-top: 0.35rem; }

/* ---------- Portfolio ---------- */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: hsl(var(--muted-fg));
    border: 1px solid hsl(var(--border) / 0.6);
    transition: all .2s ease;
    white-space: nowrap;
}
.filter-btn:hover { color: hsl(var(--secondary)); border-color: hsl(var(--secondary) / 0.6); }
.filter-btn.active { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); border-color: hsl(var(--primary)); }

.portfolio-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, border-color .3s ease;
}
.portfolio-card.hidden { display: none; }
.portfolio-card:hover { border-color: hsl(var(--secondary) / 0.5); }
.portfolio-image { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }
.portfolio-body { padding: 1.25rem; }
.portfolio-meta { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--secondary)); }
.portfolio-title { font-size: 1.05rem; margin-top: 0.25rem; }
.portfolio-desc { font-size: 0.8rem; color: hsl(var(--muted-fg)); margin-top: 0.35rem; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.chip { font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 0.25rem; background: hsl(var(--muted) / 0.6); color: hsl(var(--muted-fg)); border: 1px solid hsl(var(--border) / 0.4); }

/* ---------- Team ---------- */
.team-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
}
.team-photo { aspect-ratio: 1/1; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s ease, transform .5s ease; }
.team-card:hover .team-photo img { filter: grayscale(0); transform: scale(1.05); }
.team-body { padding: 1rem; }
.team-name { font-size: 1rem; }
.team-role { display: block; font-size: 0.7rem; margin-top: 0.25rem; }
.team-bio { font-size: 0.75rem; color: hsl(var(--muted-fg)); margin-top: 0.5rem; line-height: 1.5; }
.team-social { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.team-social a {
    width: 28px; height: 28px; display: grid; place-items: center;
    font-size: 0.85rem;
    color: hsl(var(--muted-fg));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.35rem;
    transition: all .2s;
}
.team-social a:hover { color: hsl(var(--secondary)); border-color: hsl(var(--secondary) / 0.6); }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
    position: relative;
    display: flex; flex-direction: column;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all .3s ease;
}
.price-card:hover { border-color: hsl(var(--secondary) / 0.5); }
.price-card-featured {
    border-color: hsl(var(--primary));
    background: linear-gradient(to bottom, hsl(var(--primary) / 0.1), hsl(var(--card)));
    box-shadow: 0 0 40px -10px hsl(var(--primary) / 0.45);
    transform: scale(1.02);
}
.badge-popular {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: hsl(var(--primary)); color: hsl(var(--primary-fg));
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    padding: 0.25rem 0.75rem; border-radius: 999px;
    white-space: nowrap;
}
.price-name { font-size: 1.25rem; }
.price-tagline { font-size: 0.85rem; color: hsl(var(--muted-fg)); margin-top: 0.25rem; min-height: 40px; }
.price-value { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 1.25rem; }
.price-value .amount { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; }
.price-value .period { font-size: 0.85rem; color: hsl(var(--muted-fg)); }
.price-features { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.price-features li { display: flex; gap: 0.5rem; font-size: 0.85rem; color: hsl(var(--muted-fg)); }
.check { color: hsl(var(--secondary)); flex-shrink: 0; }
.price-card .btn { margin-top: 1.5rem; }

/* ---------- Testimonials ---------- */
.testimonials-wrap { position: relative; padding: 0 2rem; }
.testimonials-track { position: relative; min-height: 260px; }
.testimonial-slide {
    display: none;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    animation: fadeInSlide .35s ease;
}
@media (min-width: 768px) { .testimonial-slide { padding: 3rem; } }
.testimonial-slide.active { display: block; }
@keyframes fadeInSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.quote-icon { color: hsl(var(--secondary)); opacity: 0.4; margin: 0 auto 1.25rem; }
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; max-width: 640px; margin: 0 auto; font-style: normal; }
@media (min-width: 768px) { .testimonial-quote { font-size: 1.4rem; } }
.testimonial-stars { color: hsl(var(--primary)); letter-spacing: 0.15em; margin-top: 1.25rem; }
.testimonial-author { margin-top: 1rem; }
.testimonial-author strong { display: block; }
.testimonial-author span { font-size: 0.8rem; color: hsl(var(--muted-fg)); }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: hsl(222 47% 10% / 0.65);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.4rem; line-height: 1;
    display: grid; place-items: center;
    color: hsl(var(--foreground));
    transition: color .2s;
}
.carousel-btn:hover { color: hsl(var(--secondary)); }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }
@media (min-width: 768px) { .carousel-prev { left: -20px; } .carousel-next { right: -20px; } }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: hsl(var(--border)); transition: all .3s; }
.dot.active { width: 32px; background: hsl(var(--primary)); }

/* ---------- Blog cards (home & listing) ---------- */
.blog-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .3s, border-color .3s;
}
.blog-card:hover { border-color: hsl(var(--secondary) / 0.5); }
.blog-card:hover .blog-title { color: hsl(var(--secondary)); }
.blog-cover { aspect-ratio: 16/10; overflow: hidden; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-cover img { transform: scale(1.05); }
.blog-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: hsl(var(--muted-fg)); }
.blog-meta .tag { color: hsl(var(--secondary)); letter-spacing: 0.15em; }
.blog-title { font-size: 1.1rem; margin-top: 0.5rem; transition: color .2s; line-height: 1.3; }
.blog-excerpt { font-size: 0.85rem; color: hsl(var(--muted-fg)); margin-top: 0.5rem; flex: 1; line-height: 1.55; }
.blog-body .link-primary { margin-top: 1rem; display: inline-block; }

/* Blog detail */
.link-back { display: inline-block; margin-bottom: 2rem; color: hsl(var(--muted-fg)); font-size: 0.85rem; }
.link-back:hover { color: hsl(var(--secondary)); }
.blog-detail-head { margin-bottom: 2rem; }
.blog-detail-title { font-size: 2rem; margin-top: 0.5rem; line-height: 1.15; }
@media (min-width: 768px) { .blog-detail-title { font-size: 2.75rem; } }
.blog-detail-meta { display: flex; gap: 0.5rem; font-size: 0.85rem; color: hsl(var(--muted-fg)); margin-top: 1rem; }
.blog-detail-cover { border-radius: 1rem; overflow: hidden; margin-bottom: 2.5rem; border: 1px solid hsl(var(--border) / 0.6); }
.blog-detail-cover img { width: 100%; height: auto; display: block; }
.blog-detail-body { line-height: 1.75; color: hsl(var(--foreground) / 0.92); }
.blog-detail-body .lead { font-size: 1.15rem; color: hsl(var(--muted-fg)); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose img { border-radius: 0.5rem; margin: 1.5rem 0; }
.prose a { color: hsl(var(--secondary)); text-decoration: underline; }
.blog-detail-footer { display: flex; gap: 0.75rem; justify-content: space-between; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border) / 0.4); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 2.5rem; } }
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border) / 0.6);
    background: hsl(var(--card));
    transition: border-color .2s;
}
.contact-item:hover { border-color: hsl(var(--secondary) / 0.5); }
.contact-icon {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: hsl(var(--secondary) / 0.1);
    border: 1px solid hsl(var(--secondary) / 0.3);
    border-radius: 0.5rem;
    color: hsl(var(--secondary));
    font-size: 1.05rem;
    flex-shrink: 0;
}
.contact-item .overline { display: block; margin-bottom: 0.25rem; }
.contact-value { font-size: 0.9rem; word-break: break-word; }

.contact-form {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) { .contact-form { padding: 2rem; } }
.field { display: block; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-label { display: block; font-size: 0.72rem; font-weight: 600; color: hsl(var(--muted-fg)); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.field-label em { font-style: normal; color: hsl(var(--primary)); }
.field input,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: hsl(var(--muted) / 0.4);
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color .2s, box-shadow .2s;
    resize: none;
    color: hsl(var(--foreground));
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.25);
}
.field.error input,
.field.error textarea { border-color: hsl(0 70% 60%); }
.field-error { color: hsl(0 80% 68%); font-size: 0.72rem; margin-top: 0.25rem; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-message { padding: 0.65rem 0.85rem; border-radius: 0.5rem; font-size: 0.85rem; }
.form-message.success { background: hsl(150 80% 40% / 0.12); border: 1px solid hsl(150 80% 40% / 0.4); color: hsl(150 80% 75%); }
.form-message.error   { background: hsl(0 70% 60% / 0.1);    border: 1px solid hsl(0 70% 60% / 0.4);    color: hsl(0 80% 75%); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.05); background: hsl(var(--card) / 0.4); margin-top: 4rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.25rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; padding: 4rem 2.5rem; }
}
@media (min-width: 1024px) { .footer-grid { padding: 4rem 4rem; } }
.footer-tagline { margin-top: 1rem; font-size: 0.9rem; color: hsl(var(--muted-fg)); max-width: 400px; line-height: 1.6; }
.social-links { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social-btn {
    padding: 0.5rem;
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.35rem;
    color: hsl(var(--muted-fg));
    transition: color .2s, border-color .2s;
    display: inline-flex;
}
.social-btn:hover { color: hsl(var(--secondary)); border-color: hsl(var(--secondary) / 0.6); }
.footer-col h4 { margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.88rem; }
.footer-links a { color: hsl(var(--muted-fg)); transition: color .2s; }
.footer-links a:hover { color: hsl(var(--secondary)); }
.footer-contact li { display: flex; gap: 0.5rem; align-items: flex-start; color: hsl(var(--muted-fg)); }
.footer-contact svg { color: hsl(var(--secondary)); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: hsl(var(--muted-fg)); }
.footer-contact a:hover { color: hsl(var(--foreground)); }
.footer-hours { font-size: 0.75rem; opacity: 0.8; padding-top: 0.25rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom .container { padding-top: 1.25rem; padding-bottom: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: hsl(var(--muted-fg)); }
.footer-tag { font-family: ui-monospace, monospace; opacity: 0.6; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    z-index: 50;
    transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 640px) { .whatsapp-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; } }

/* ---------- Animaciones on-scroll ---------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(0.22, 1, 0.36, 1), transform .7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}
.animate-fade-up.in-view { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease-out both; }
.fade-up-delay { animation: fadeUp .6s ease-out .2s both; }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .animate-fade-up { opacity: 1; transform: none; }
}
