:root {
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --accent: #22c55e;
  --warning: #f59e0b;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }

.topbar { background: var(--dark); color: var(--white); font-size: 0.9rem; }
.topbar-content { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a, .topbar span { opacity: .92; display: inline-flex; align-items: center; gap: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226,232,240,.8); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.header-content { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.logo-icon { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 24px rgba(14,165,233,.22); }
.logo-text { font-size: 1.15rem; letter-spacing: -.02em; }
.logo-text strong { color: var(--primary-dark); }
.nav-menu { display: flex; align-items: center; gap: 24px; font-weight: 700; color: var(--dark-2); }
.nav-menu a { position: relative; }
.nav-menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: var(--primary); border-radius: 999px; transform: scaleX(0); transition: transform .2s ease; }
.nav-menu a:hover::after { transform: scaleX(1); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 20px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 16px 30px rgba(14,165,233,.25); }
.btn-outline { color: var(--dark); background: transparent; border: 2px solid rgba(15,23,42,.18); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 999px; transition: .2s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 20% 15%, rgba(14,165,233,.28), transparent 34%), radial-gradient(circle at 80% 20%, rgba(34,197,94,.18), transparent 30%), linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%); padding: 82px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.16); border-radius: 999px; padding: 7px 13px; font-size: .84rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { margin-top: 18px; font-size: clamp(2.4rem, 6vw, 4.7rem); line-height: .98; letter-spacing: -.06em; }
.hero p { margin-top: 22px; color: var(--gray); font-size: 1.15rem; max-width: 620px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-features { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; color: var(--dark-2); font-weight: 700; }
.hero-features span { background: rgba(255,255,255,.74); border: 1px solid rgba(226,232,240,.9); border-radius: 999px; padding: 8px 12px; }
.hero-card { position: relative; }
.browser-mockup { min-height: 430px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,.9); overflow: hidden; padding-bottom: 26px; }
.browser-top { height: 54px; background: #f8fafc; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; padding: 0 18px; color: var(--gray); }
.browser-top span { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; }
.browser-top small { margin-left: 10px; font-weight: 800; }
.mockup-hero { margin: 24px; border-radius: 22px; min-height: 175px; background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: var(--white); padding: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.mockup-hero strong { font-size: 2rem; line-height: 1; }
.mockup-hero p { color: rgba(255,255,255,.82); margin-top: 8px; }
.mockup-hero button { border: 0; border-radius: 999px; background: var(--accent); color: var(--white); padding: 11px 17px; font-weight: 900; }
.mockup-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 0 24px; }
.mockup-grid div { min-height: 90px; border-radius: 18px; background: linear-gradient(180deg, #e0f2fe, #f8fafc); border: 1px solid var(--border); }
.mockup-line { margin: 18px 24px 0; height: 14px; border-radius: 999px; background: #e2e8f0; }
.mockup-line.short { width: 58%; }
.floating-box { position: absolute; left: -18px; bottom: -24px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.floating-box strong { font-size: 2rem; color: var(--primary-dark); line-height: 1; }
.floating-box span { color: var(--gray); font-weight: 700; }

.quick-search { margin-top: -28px; position: relative; z-index: 3; }
.search-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: center; }
.search-panel h2 { font-size: 1.45rem; }
.search-panel p { color: var(--gray); }
.search-form { display: flex; gap: 12px; }
.search-form input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 14px 18px; outline: none; }
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,.12); }

.section { padding: 82px 0; }
.section-alt { background: var(--gray-light); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-heading h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p { color: var(--gray); margin-top: 12px; font-size: 1.06rem; }
.category-grid, .services-grid, .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card, .service-card, .step-card, .proposal-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 28px rgba(15,23,42,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-card:hover, .service-card:hover, .step-card:hover, .proposal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(14,165,233,.3); }
.icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: var(--primary-dark); background: rgba(14,165,233,.1); font-size: 1.45rem; margin-bottom: 16px; }
.category-card h3, .service-card h3, .step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.category-card p, .service-card p, .step-card p { color: var(--gray); }

.catalog-status { color: var(--gray); text-align: center; margin-bottom: 18px; font-weight: 700; }
.catalog-grid .service-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.catalog-visual { min-height: 170px; background: linear-gradient(135deg, #0f172a, #0369a1); padding: 18px; color: var(--white); position: relative; overflow: hidden; }
.catalog-visual::before { content: ''; position: absolute; width: 170px; height: 170px; right: -55px; top: -55px; border-radius: 50%; background: rgba(255,255,255,.12); }
.catalog-visual strong { position: relative; z-index: 1; display: block; font-size: 1.55rem; line-height: 1.1; max-width: 220px; }
.catalog-visual span { position: relative; z-index: 1; display: inline-flex; margin-top: 14px; border-radius: 999px; background: rgba(255,255,255,.16); padding: 6px 10px; font-size: .82rem; font-weight: 900; }
.catalog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.catalog-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 900; background: #e0f2fe; color: #075985; }
.price { margin-top: auto; padding-top: 16px; font-size: 1.35rem; font-weight: 900; color: var(--primary-dark); }
.service-card .btn-service { margin-top: 14px; width: 100%; }
.center-actions { margin-top: 28px; text-align: center; }

.steps-grid { grid-template-columns: repeat(3,1fr); }
.step-card strong { display: inline-flex; font-size: 2rem; color: var(--primary); margin-bottom: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 34px; align-items: stretch; }
.contact-info, .proposal-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.contact-info h2 { margin-top: 12px; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.08; }
.contact-info p { color: var(--gray); margin-top: 12px; }
.contact-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; color: var(--dark-2); }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list i { color: var(--primary-dark); width: 20px; }
.contact-buttons { margin-top: 24px; }
.proposal-card h3 { font-size: 1.45rem; margin-bottom: 14px; }
.proposal-card ul { padding-left: 20px; color: var(--gray); display: grid; gap: 10px; }

.footer { background: var(--dark); color: var(--white); padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 28px; padding-bottom: 34px; }
.footer p, .footer a { color: rgba(255,255,255,.75); }
.footer a { display: block; margin-top: 8px; }
.footer h3, .footer h4 { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px; color: rgba(255,255,255,.7); }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--white); background: var(--primary-dark); box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; z-index: 90; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.section-animate, .category-card, .service-card, .step-card { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.section-animate.visible, .category-card.visible, .service-card.visible, .step-card.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid, .contact-grid, .search-panel { grid-template-columns: 1fr; }
  .category-grid, .services-grid { grid-template-columns: repeat(2,1fr); }
  .hero { padding-top: 54px; }
  .floating-box { left: 18px; }
}
@media (max-width: 768px) {
  .topbar-content { justify-content: center; text-align: center; padding: 8px 0; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu { position: fixed; left: 16px; right: 16px; top: 88px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px; border-radius: 12px; }
  .nav-menu a:hover { background: var(--gray-light); }
  .nav-menu a::after { display: none; }
  .search-form { flex-direction: column; }
  .category-grid, .services-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .browser-mockup { min-height: 360px; }
  .mockup-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 24px, var(--container)); }
  .hero-actions .btn, .contact-buttons .btn { width: 100%; }
  .topbar { font-size: .82rem; }
  .category-card, .step-card, .contact-info, .proposal-card { padding: 20px; }
  .floating-box { position: static; margin-top: 16px; }
}


/* Carousel Hero */
.carousel { position: relative; border-radius: 28px; background: #0f172a; overflow: hidden; min-height: 340px; }
.carousel-slides { position: relative; height: 340px; }
.carousel-slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.carousel-slide.active { display: flex; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.carousel-content { text-align: center; padding: 32px; color: #fff; }
.carousel-content strong { display: block; font-size: 1.8rem; margin-bottom: 8px; }
.carousel-content p { color: rgba(255,255,255,.8); margin-bottom: 16px; }
.carousel-price { display: inline-block; background: #e83e8c; padding: 8px 20px; border-radius: 8px; font-weight: 700; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; transition: background 0.3s; }
.carousel-dot.active { background: #e83e8c; }
.carousel-placeholder { display: flex; align-items: center; justify-content: center; height: 340px; color: rgba(255,255,255,.6); }

@media (max-width: 768px) {
  .carousel { min-height: 280px; }
  .carousel-slides { height: 280px; }
  .carousel-content strong { font-size: 1.4rem; }
}
