/* ==========================================================================
   DE LA ROSA WEB — HOJA DE ESTILOS GLOBAL
   Compartida por todas las páginas del sitio (index.html, portafolio.html...)
   ========================================================================== */

/* -------------------- VARIABLES DE MARCA -------------------- */
:root {
    --primary: #76ff03;                 /* Verde neón oficial */
    --primary-glow: rgba(118, 255, 3, 0.25);
    --primary-accessible: #66dd00;      /* Tono ajustado: contraste AA en hover/texto sobre fondo claro */
    --bg-dark: #050505;                 /* Negro premium */
    --bg-card: #111111;
    --border-color: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', 'Segoe UI', -apple-system, sans-serif;
}

/* -------------------- RESET Y BASE -------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.wrapper { width: 100%; max-width: 100%; overflow-x: hidden; position: relative; }

button, a, .btn-primary, .btn-secondary { touch-action: manipulation; }

/* -------------------- CAPAS AURORA (fondo decorativo) -------------------- */
.aurora {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.aurora-top { background-color: var(--primary); width: 280px; height: 280px; top: -50px; left: -50px; }
.aurora-bottom { background-color: #a855f7; width: 250px; height: 250px; bottom: 10%; right: -50px; }
.aurora-portfolio { background-color: var(--primary); width: 400px; height: 400px; top: 10%; right: -100px; opacity: 0.75; }

@media (min-width: 768px) {
    .aurora-top { width: 500px; height: 500px; }
    .aurora-bottom { width: 400px; height: 400px; }
}

/* -------------------- BOTONES -------------------- */
.btn-primary {
    background-color: var(--primary);
    color: #000000 !important;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .3s ease, box-shadow .3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 25px var(--primary-glow); }

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s ease, color .3s ease;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* -------------------- CABECERA / HEADER -------------------- */
.main-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-agency { display: flex; align-items: center; text-decoration: none; }

.logo-img { display: block; height: 110px; width: auto; object-fit: contain; }

/* Controladores nativos del menú (sin JS) */
.menu-hack { display: none; }
.menu-btn { display: none; }
.nav-container { display: block; }

.nav-menu { display: flex; align-items: center; list-style: none; gap: 3rem; }
.nav-menu a { color: var(--text-white); text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--primary); }

.nav-btn-whatsapp {
    background-color: var(--primary) !important;
    color: #000000 !important;
    padding: 12px 28px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-block;
}

.nav-btn-whatsapp:hover { transform: scale(1.04); box-shadow: 0 0 20px var(--primary-glow); }

/* -------------------- CARD BASE (uso genérico) -------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    transition: transform .4s ease, border-color .4s ease;
}

@media (min-width: 768px) {
    .card:hover { border-color: var(--primary); transform: translateY(-6px); }
}

/* -------------------- SECCIÓN HERO (portada / home) -------------------- */
.hero { min-height: calc(100vh - 100px); display: flex; align-items: center; padding: 48px 16px; width: 100%; }
.hero-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; width: 100%; }
@media (min-width: 1024px) { .hero-container { grid-template-columns: 1fr 1fr; gap: 64px; } }

.hero-text { display: flex; flex-direction: column; gap: 24px; }

.badge {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(118, 255, 3, 0.3);
    background-color: rgba(118, 255, 3, 0.05);
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero-text h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
@media (min-width: 768px) { .hero-text h1 { font-size: 4.2rem; } }

.text-lime { color: var(--primary); }

.hero-text p { color: var(--text-gray); font-size: 1.125rem; line-height: 1.6; max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 640px) {
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; text-align: center; }
}

.hero-mockup { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 1024px) { .hero-mockup { max-width: none; } }

.mockup-glow { position: absolute; inset: 0; background-color: rgba(118, 255, 3, 0.1); filter: blur(32px); border-radius: 999px; pointer-events: none; }
.mockup-card { padding: 24px; box-shadow: 0 0 30px rgba(118, 255, 3, 0.1); background: var(--bg-card); border: 1px solid var(--border-color); }
.mockup-header { display: flex; gap: 8px; margin-bottom: 24px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }
.mockup-body { display: flex; flex-direction: column; gap: 16px; }
.line { height: 16px; border-radius: 999px; }
.line-full { background-color: rgba(255, 255, 255, .1); width: 100%; }
.line-lime { background-color: var(--primary); width: 90%; }
.line-short { background-color: rgba(255, 255, 255, .1); width: 70%; }
.mockup-footer { margin-top: 48px; text-align: center; }
.percentage { font-size: 3.75rem; font-weight: 800; color: var(--primary); }
.mockup-footer p { color: var(--text-gray); margin-top: 16px; font-size: 14px; }

/* -------------------- STATS (home) -------------------- */
.stats { padding: 64px 16px; width: 100%; }
.stats-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .stats-container { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.card-stat { padding: 24px; text-align: center; }
@media (min-width: 768px) { .card-stat { text-align: left; padding: 32px; } }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
@media (min-width: 768px) { .stat-number { font-size: 3rem; } }
.stat-label { color: var(--text-gray); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; line-height: 1.5; }
@media (min-width: 768px) { .stat-label { font-size: 12px; } }
.stat-icon svg { width: 40px; height: 40px; color: var(--primary); margin: 0 auto 12px; }
@media (min-width: 768px) { .stat-icon svg { margin: 0 0 12px; width: 48px; height: 48px; } }

/* -------------------- ENCABEZADOS DE SECCIÓN GENÉRICOS -------------------- */
.section-container { max-width: 1280px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }
.section-subtitle { color: var(--primary); letter-spacing: 4px; font-size: 12px; font-weight: 500; margin-bottom: 16px; }
.section-title { font-size: 2.25rem; font-weight: 700; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

/* -------------------- SERVICIOS (home) -------------------- */
.services { padding: 96px 16px; width: 100%; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.service-card { padding: 24px; }
@media (min-width: 768px) { .service-card { padding: 32px; } }
.service-icon svg { width: 48px; height: 48px; color: var(--primary); margin-bottom: 24px; transition: transform .3s ease; }
@media (min-width: 768px) { .service-card:hover .service-icon svg { transform: scale(1.08); } }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
@media (min-width: 768px) { .service-card h3 { font-size: 1.5rem; } }
.service-card p { color: var(--text-gray); font-size: 14px; line-height: 1.6; }
@media (min-width: 768px) { .service-card p { font-size: 16px; } }

/* -------------------- INTRO DE PORTAFOLIO (página portafolio) -------------------- */
.portfolio-hero { padding: 80px 16px 40px 16px; text-align: center; }
.portfolio-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
@media (min-width: 768px) { .portfolio-title { font-size: 3.8rem; } }
.portfolio-subtitle { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem auto; }

/* -------------------- GRID DE PROYECTOS (usado en home y portafolio) -------------------- */
.projects { width: 100%; padding: 0 16px 64px 16px; }
body.page-home .projects { padding: 96px 16px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.project-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 12px 30px rgba(118, 255, 3, 0.15); }

.project-image-wrapper {
    width: 100%;
    height: 230px;
    background: #141414;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    aspect-ratio: 600 / 400; /* Reserva el espacio exacto y evita saltos de layout (CLS) */
}

.project-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image-wrapper img { transform: scale(1.05); }

.geo-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--primary);
    color: var(--primary);
    letter-spacing: 0.5px;
    z-index: 2;
}

.project-info { padding: 2.2rem; flex-grow: 1; display: flex; flex-direction: column; }

/* h3 en home (bajo un h2 de sección) y h2 en portafolio (bajo el h1 de la página) */
.project-info h2, .project-info h3 { font-size: 1.5rem; margin-bottom: 0.8rem; font-weight: 700; color: var(--text-white); }
.project-info p { color: var(--text-gray); font-size: 0.98rem; margin-bottom: 1.5rem; flex-grow: 1; }

.card-actions { display: flex; flex-direction: column; gap: 0.8rem; }

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--primary);
    color: #000000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--primary);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hover con --primary-accessible: cumple contraste AA sobre fondo transparente/oscuro */
.btn-action:hover { background: transparent; color: var(--primary-accessible); border-color: var(--primary-accessible); }

.btn-card-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: #dddddd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #222222;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-card-secondary:hover { color: var(--primary-accessible); border-color: var(--primary-accessible); background: rgba(118, 255, 3, 0.02); }

/* -------------------- CTA "VER MÁS PORTAFOLIO" (solo home) -------------------- */
.catalog-cta {
    padding: 72px 16px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(118, 255, 3, 0.06), transparent 60%), rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.catalog-cta h2 { margin-bottom: 12px; font-size: 1.8rem; font-weight: 700; color: var(--text-white); }
.catalog-cta-subtitle { color: var(--text-gray); font-size: 1rem; max-width: 480px; margin: 0 auto 32px auto; }
.catalog-cta .btn-primary { font-size: 1.05rem; padding: 18px 40px; }

/* -------------------- SECCIÓN DE CONFIANZA (solo portafolio) -------------------- */
.trust-section { padding: 80px 16px; background-color: #0b0b0b; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); width: 100%; }
.trust-container { max-width: 1200px; margin: 0 auto; }
.trust-header { text-align: center; margin-bottom: 50px; }
.trust-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -0.02em; }
@media (min-width: 768px) { .trust-header h2 { font-size: 2.8rem; } }
.trust-header p { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }

.trust-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 40px 30px; border-radius: 20px; transition: transform 0.3s ease, border-color 0.3s ease; }
.trust-card:hover { border-color: rgba(118, 255, 3, 0.4); transform: translateY(-4px); }

.trust-icon-box { width: 60px; height: 60px; background: rgba(118, 255, 3, 0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--primary); }
.trust-icon-box svg { width: 30px; height: 30px; fill: currentColor; }

.trust-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; color: var(--text-white); }
.trust-card p { color: var(--text-gray); font-size: 0.98rem; line-height: 1.6; }

/* -------------------- CTA FINAL -------------------- */
.cta { width: 100%; padding: 96px 16px; }
body.page-portfolio .cta { padding: 80px 16px 96px 16px; }

.cta-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 32px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}
@media (min-width: 768px) { .cta-container { padding: 80px; } }

.cta-container h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 24px; }
@media (min-width: 768px) { .cta-container h2 { font-size: 3rem; } }
@media (max-width: 640px) { .cta-container .btn-primary { width: 100%; } }

/* -------------------- INVITACIONES DIGITALES -------------------- */
.invitation-image { display: block; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 24px; box-shadow: 0 0 30px rgba(118, 255, 3, 0.1); }

/* -------------------- SEO LOCAL -------------------- */
.local-seo { padding: 64px 16px 96px 16px; width: 100%; }
.local-seo-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.local-seo-inner h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.local-seo-inner p { color: var(--text-gray); font-size: 1rem; line-height: 1.7; }
.local-seo-inner strong { color: var(--text-white); }

.speed-banner { padding: 0 16px; width: 100%; }
.speed-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(118, 255, 3, 0.06);
    border: 1px solid rgba(118, 255, 3, 0.25);
    border-radius: 16px;
    padding: 20px 28px;
}
.speed-banner-inner svg { width: 28px; height: 28px; flex-shrink: 0; fill: var(--primary); }
.speed-banner-inner p { color: var(--text-white); font-size: 0.98rem; line-height: 1.5; }
.speed-banner-inner p strong { color: var(--primary); }

/* -------------------- BANNER DE PROMOCIÓN CRUZADA (home) -------------------- */
.promo-banner { padding: 32px 16px 96px 16px; width: 100%; }
.promo-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 48px;
    position: relative;
    overflow: hidden;
}
.promo-banner-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: var(--primary);
    filter: blur(90px);
    opacity: 0.12;
    pointer-events: none;
}
.promo-banner-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(118, 255, 3, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.promo-banner-icon svg { width: 30px; height: 30px; }
.promo-banner-text h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; color: var(--text-white); }
.promo-banner-text p { color: var(--text-gray); font-size: 1rem; line-height: 1.6; max-width: 520px; }
.promo-banner .btn-primary { white-space: nowrap; }

@media (max-width: 860px) {
    .promo-banner-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
    .promo-banner-icon { margin: 0 auto; }
    .promo-banner-text p { max-width: none; }
    .promo-banner .btn-primary { width: 100%; text-align: center; }
}

/* -------------------- TESTIMONIOS -------------------- */
.testimonials { padding: 96px 16px; width: 100%; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.testimonial-card { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-stars { color: var(--primary); font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text-white); font-size: 0.98rem; line-height: 1.6; flex-grow: 1; }
.testimonial-author { color: var(--text-gray); font-size: 0.9rem; font-weight: 600; }
.testimonial-author::before { content: '— '; }
.testimonials-google-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}
.testimonials-google-link:hover { opacity: 0.75; }

/* -------------------- BLOG: LISTADO -------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.blog-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 12px 30px rgba(118, 255, 3, 0.15); }

.blog-card-image-wrapper {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 600 / 400;
    background: #141414;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.blog-card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-image-wrapper img { transform: scale(1.05); }

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--primary);
    color: var(--primary);
    letter-spacing: 0.5px;
}

.blog-card-info { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-date { color: var(--text-gray); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.blog-card-info h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card-info h2 a { color: var(--text-white); text-decoration: none; transition: color 0.3s ease; }
.blog-card-info h2 a:hover { color: var(--primary); }
.blog-card-info p:not(.blog-card-date) { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }

/* -------------------- BLOG: NOTA INDIVIDUAL -------------------- */
.article-hero { padding: 64px 16px 32px 16px; max-width: 760px; margin: 0 auto; text-align: center; }
.article-category { display: inline-block; color: var(--primary); letter-spacing: 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.article-hero h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
@media (min-width: 768px) { .article-hero h1 { font-size: 2.75rem; } }
.article-meta { color: var(--text-gray); font-size: 0.9rem; }

.article-image-wrapper { max-width: 900px; margin: 0 auto 48px auto; padding: 0 16px; }
.article-image-wrapper img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border-color); }

.article-body { max-width: 720px; margin: 0 auto; padding: 0 16px 64px 16px; color: #d8d8d8; font-size: 1.08rem; line-height: 1.85; }
.article-body h2 { color: var(--text-white); font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px 0; }
.article-body h3 { color: var(--text-white); font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px 0; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body strong { color: var(--text-white); }
.article-body blockquote { border-left: 3px solid var(--primary); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--text-gray); font-style: italic; }

.article-share { max-width: 720px; margin: 0 auto; padding: 0 16px 64px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-share-label { color: var(--text-gray); font-size: 0.9rem; font-weight: 600; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    transition: all 0.3s ease;
}
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn-facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-btn-whatsapp:hover { background: #25D366; border-color: #25D366; color: #000; }

/* -------------------- FOOTER -------------------- */
.footer { border-top: 1px solid var(--border-color); padding: 48px 16px; width: 100%; background: #000000; }
.footer-copy { color: #a0a0a0; font-size: 14px; text-align: center; width: 100%; letter-spacing: 0.3px; }

/* -------------------- ANIMACIÓN "REVEAL" AL HACER SCROLL -------------------- */
/* Solo se oculta el contenido si JS está activo (evita que el contenido quede
   invisible para buscadores o usuarios sin JavaScript) */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
    .js-enabled .reveal.active { opacity: 1; transform: translateY(0); }
}

/* -------------------- BOTÓN FLOTANTE DE WHATSAPP -------------------- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulseWave 2s infinite;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

@keyframes pulseWave {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVIDAD (menú móvil y ajustes generales)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 1.1rem 1.5rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .logo-agency { display: flex !important; align-items: center !important; flex: initial !important; }
    .logo-img { height: 85px !important; }

    .menu-btn {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        margin-left: auto !important;
        padding: 8px !important;
    }

    .menu-btn span {
        width: 28px;
        height: 3px;
        background-color: var(--text-white);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 2px;
    }

    .nav-container {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background-color: #0b0b0b !important;
        border-left: 1px solid var(--border-color) !important;
        z-index: 1001 !important;
        padding: 7rem 2rem 2rem 2rem !important;
        display: block !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .nav-menu { flex-direction: column !important; align-items: flex-start !important; gap: 2.8rem !important; }
    .nav-menu a { font-size: 1.35rem !important; font-weight: 600 !important; width: 100%; display: block; }
    .nav-btn-whatsapp { width: 100% !important; text-align: center !important; margin-top: 1rem !important; }

    .menu-hack:checked ~ .nav-container { transform: translateX(0) !important; }
    .menu-hack:checked ~ .menu-btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--primary); }
    .menu-hack:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
    .menu-hack:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--primary); }

    /* Evita que la página siga haciendo scroll detrás del menú móvil abierto */
    body:has(.menu-hack:checked) { overflow: hidden !important; position: fixed; width: 100%; }

    .hero-text h1 { font-size: 2.3rem; }
    .hero-text p { font-size: 1.05rem; }
    .projects-grid { gap: 1.5rem; }
    .trust-grid { gap: 1.5rem; }
}
