:root {
  --primary: #0f65d8; /* PRIMARY_COLOR */
  --accent: #0bb8ff; /* ACCENT_COLOR */
  --dark: #0a2a4d;   /* DARK_COLOR */
  --light: #f5f9ff;  /* LIGHT_COLOR */
  --text: #0e2233;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: white; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2) blur(6px); background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.85)); border-bottom: 1px solid rgba(10,42,77,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { height: 40px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(10,42,77,0.12)); object-fit: contain; }
.logo-circle { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 18px rgba(15,101,216,0.35); }
.logo-circle.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.brand-text { line-height: 1; }
.brand-text .sub { display: block; font-size: 12px; color: #577189; margin-top: 4px; }
.nav { display: none; gap: 18px; align-items: center; }
.nav a { color: #27475f; font-weight: 500; }
.nav .btn { margin-left: 8px; }
.menu-toggle { background: transparent; border: none; font-size: 22px; display: inline-flex; }

@media (min-width: 900px) {
  .nav { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 600; letter-spacing: 0.2px; transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 8px 22px rgba(15,101,216,0.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-ghost { background: rgba(15,101,216,0.06); color: var(--primary); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 10% -10%, var(--light), transparent), radial-gradient(1200px 600px at 110% 10%, rgba(11,184,255,0.08), transparent); padding: 64px 0 24px; }
.hero-inner { display: grid; gap: 24px; align-items: center; }
.hero-copy h1 { font-size: 38px; line-height: 1.1; margin: 0 0 12px; color: var(--dark); }
.hero-copy p { font-size: 18px; color: #27475f; margin: 0 0 12px; }
.hero-bullets { margin: 10px 0 18px; padding-left: 18px; }
.hero-bullets li { margin: 6px 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.meta { margin-top: 8px; color: #577189; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.hero-art { height: 280px; border-radius: 18px; background: linear-gradient(145deg, rgba(15,101,216,0.12), rgba(11,184,255,0.18)); box-shadow: inset 0 0 0 1px rgba(15,101,216,0.12), 0 16px 40px rgba(10,42,77,0.12); }
.hero-art .hero-bg { width: 100%; height: 100%; border-radius: 18px; background-size: cover; background-position: center; filter: saturate(1.05) contrast(1.02); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero-copy h1 { font-size: 48px; }
  .hero-art { height: 380px; }
}

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: 28px; margin: 0 0 18px; color: var(--dark); }
.section .note { color: #577189; }
.section-cta { margin-top: 16px; }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(1, 1fr); }
.card { padding: 20px; border-radius: 16px; background: #ffffff; box-shadow: 0 10px 24px rgba(10,42,77,0.08), inset 0 0 0 1px rgba(10,42,77,0.06); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: #3a5870; }

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* Process */
.grid-2 { display: grid; gap: 20px; }
.steps { margin: 0 0 16px; padding-left: 18px; color: #3a5870; }
.process-art { height: 260px; border-radius: 16px; background: linear-gradient(145deg, rgba(15,101,216,0.12), rgba(11,184,255,0.18)); box-shadow: inset 0 0 0 1px rgba(15,101,216,0.12), 0 16px 40px rgba(10,42,77,0.12); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .process-art { height: 320px; }
}

/* Clients chips */
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(15,101,216,0.08); color: var(--dark); font-weight: 600; font-size: 14px; }

/* USP */
.grid-3 { display: grid; gap: 16px; }
.usp-item { padding: 18px; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f7fbff); box-shadow: 0 8px 22px rgba(10,42,77,0.06), inset 0 0 0 1px rgba(10,42,77,0.06); }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Testimonials */
.testimonial-grid { display: grid; gap: 14px; }
.testimonial-grid blockquote { margin: 0; padding: 16px 18px; border-left: 4px solid var(--primary); background: #ffffff; border-radius: 12px; box-shadow: 0 6px 18px rgba(10,42,77,0.06); color: #2a4860; }

/* CTA section */
.cta { background: linear-gradient(180deg, rgba(15,101,216,0.06), rgba(11,184,255,0.06)); }

/* Footer */
.site-footer { background: #061a2e; color: #cfe6ff; }
.footer-inner { display: grid; gap: 16px; align-items: center; padding: 24px 0; grid-template-columns: 1fr; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-meta { color: #a5c7eb; }
.legal { padding: 14px 0 24px; color: #8db7e6; border-top: 1px solid rgba(255,255,255,0.08); }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr auto; }
}

/* Floating Action Buttons */
.fab { position: fixed; right: 16px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; font-weight: 700; color: white; box-shadow: 0 16px 40px rgba(10,42,77,0.28); transition: transform 0.08s ease; }
.fab:hover { transform: translateY(-2px); }
.fab.whatsapp { bottom: 86px; background: linear-gradient(180deg, #25d366, #128c7e); }
.fab.phone { bottom: 20px; background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* Utilities */
.small { font-size: 13px; }

/* Form */
.form { margin-top: 10px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; color: var(--dark); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="file"],
.field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(10,42,77,0.18);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,101,216,0.12); }
.field.full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-status { margin-top: 10px; color: #2a4860; }

@media (min-width: 800px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Gallery */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 24px rgba(10,42,77,0.08); }
.g-item img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s ease; }
.g-item:hover img { transform: scale(1.04); }

/* Optimización sin GD: imágenes responsivas */
.gallery-grid img,
.ba-wrap img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid img {
    height: 180px;
    border-radius: 14px;
}

.ba-wrap img {
    height: 240px;
    border-radius: 16px;
}
@media (min-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .g-item img { height: 200px; }
}

/* Lightbox (simple) */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox-backdrop.open { display: flex; }
.lightbox-backdrop img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

/* Before/After */
.ba-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.ba-item { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(10,42,77,0.08); background: #fff; }
.ba-wrap { position: relative; display: block; width: 100%; height: 240px; }
.ba-after, .ba-before { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-overlay { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid rgba(255,255,255,0.9); }
.ba-range { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 70%; appearance: none; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.7); outline: none; }
.ba-range::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.ba-range::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
@media (min-width: 800px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-wrap { height: 300px; }
}


