/* Imaginink Taller Creativo — estilos (HTML/CSS/JS puro) */

:root {
  --background: #ffffff;
  --foreground: #111111;
  --card: #ffffff;
  --primary: #f9a134;
  --primary-foreground: #111111;
  --secondary: #f3f4f6;
  --muted: #f3f4f6;
  --muted-foreground: #5b5f66;
  --destructive: #dc2626;
  --border: #e5e7eb;
  --ink: #111111;
  --ink-foreground: #ffffff;
  --whatsapp: #25d366;
  --radius: 0.75rem;
  --shadow-soft: 0 4px 20px -8px rgb(17 17 17 / 0.18);
  --shadow-card: 0 10px 30px -12px rgb(17 17 17 / 0.22);
  --shadow-glow: 0 10px 30px -8px rgb(249 161 52 / 0.45);
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 880px; }

.text-primary { color: var(--primary); }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.muted { color: var(--muted-foreground); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.85rem 1.6rem;
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ink { background: var(--ink); color: var(--ink-foreground); }
.btn-ink:hover { background: #000; }
.btn-outline { border-color: var(--border); background: var(--card); color: var(--foreground); }
.btn-outline:hover { border-color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { transform: scale(1.04); }
.btn-ghost-light {
  border-color: rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.06);
  color: var(--ink-foreground); backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.14); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.brand img { height: 42px; width: auto; }
.brand-text { font-size: 1.05rem; line-height: 1; }
.brand-text small { display: block; font-size: 0.62rem; font-weight: 600; color: var(--muted-foreground); letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 86vh; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; animation: kenburns 22s ease-in-out infinite; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), rgb(17 17 17 / 0.8) 50%, rgb(17 17 17 / 0.3)); }
.hero-content { max-width: 640px; padding: 5rem 0; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.75rem); color: var(--ink-foreground); margin-top: 1.4rem; font-weight: 800; }
.hero p { margin-top: 1.4rem; max-width: 36rem; font-size: 1.1rem; color: rgb(255 255 255 / 0.8); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge-slogan {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgb(249 161 52 / 0.4); background: rgb(249 161 52 / 0.1);
  color: var(--primary); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 600;
}
.gradient-text { background: linear-gradient(100deg, #f9a134, #ffce8a); -webkit-background-clip: text; background-clip: text; color: transparent; }

@keyframes kenburns {
  0% { transform: scale(1.05) translate(0,0); }
  50% { transform: scale(1.15) translate(-1.5%,-1.5%); }
  100% { transform: scale(1.05) translate(0,0); }
}

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-gray { background: var(--secondary); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-top: 0.5rem; font-weight: 800; }
.section-head p { margin-top: 0.75rem; color: var(--muted-foreground); }

/* ===== Servicios intro slider (home) ===== */
.intro-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 3fr 7fr; }
.intro-slider { position: relative; border-radius: 1rem; overflow: hidden; }
.intro-slider .frame { position: relative; aspect-ratio: 4/3; background: var(--muted); }
.intro-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.intro-slider img.active { opacity: 1; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; height: 36px; width: 36px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: rgb(255 255 255 / 0.85); color: var(--foreground);
  box-shadow: var(--shadow-soft); transition: all 0.2s;
}
.slider-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.slider-btn.prev { left: 0.5rem; } .slider-btn.next { right: 0.5rem; }
.slider-btn svg { width: 20px; height: 20px; }
.dots { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; }
.dots button { height: 8px; width: 8px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.7); cursor: pointer; transition: all 0.2s; }
.dots button.active { width: 20px; background: var(--primary); }
.intro-info h3 { font-size: 1.5rem; margin-top: 0.25rem; }
.intro-info .tag { margin-top: 0.25rem; font-size: 1.1rem; font-weight: 600; color: var(--primary); }
.intro-info p.desc { margin-top: 1rem; max-width: 36rem; color: var(--muted-foreground); }
.chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.chips li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; }
.chips svg { width: 16px; height: 16px; color: var(--primary); }
.link-arrow { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; transition: color 0.2s; }
.link-arrow:hover { color: var(--primary); }
.link-arrow svg { width: 16px; height: 16px; }

/* ===== Carousel tienda (home) ===== */
.carousel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.carousel-nav { display: flex; gap: 0.5rem; }
.round-btn { display: grid; place-items: center; height: 44px; width: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); cursor: pointer; transition: all 0.2s; }
.round-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.round-btn svg { width: 20px; height: 20px; }
.carousel { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 70%; scroll-snap-align: start; }

/* ===== Product cards ===== */
.product-card { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; }
.product-card .pimg { aspect-ratio: 1/1; overflow: hidden; background: var(--muted); }
.product-card .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .pimg img { transform: scale(1.05); }
.product-card .pbody { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card h3 { font-size: 1.05rem; }
.product-card .price { font-size: 0.9rem; color: var(--muted-foreground); }
.product-card .price b { color: var(--foreground); font-size: 1.05rem; }
.variant-select { width: 100%; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.55rem 0.7rem; font-family: inherit; font-size: 0.9rem; background: var(--background); }
.variant-select:focus { outline: none; border-color: var(--primary); }
.product-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ===== Tienda grid + search ===== */
.shop-toolbar { margin: 0 0 2rem; }
.search-box { position: relative; max-width: 460px; }
.search-box svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted-foreground); }
.search-box input { width: 100%; border: 1px solid var(--border); border-radius: 999px; padding: 0.8rem 1rem 0.8rem 2.7rem; font-family: inherit; font-size: 1rem; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(249 161 52 / 0.25); }
.grid-products { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.no-results { text-align: center; color: var(--muted-foreground); padding: 3rem 0; }

/* ===== Servicios page rows ===== */
.service-row { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr 1fr; padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
.service-row:nth-child(even) .service-media { order: 2; }
.service-row .tag { color: var(--primary); font-weight: 600; font-size: 1.1rem; margin-top: 0.4rem; }
.service-row h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.service-row p.desc { margin-top: 1rem; color: var(--muted-foreground); }
.service-media { position: relative; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); }
.service-media .frame { position: relative; aspect-ratio: 4/3; background: var(--muted); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.service-media img.active { opacity: 1; }

/* ===== Nosotros / cards ===== */
.cards-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; text-align: left; margin-top: 2.5rem; }
.info-card { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1.75rem; box-shadow: var(--shadow-soft); }
.icon-box { display: grid; place-items: center; height: 48px; width: 48px; border-radius: 0.8rem; background: rgb(249 161 52 / 0.15); color: var(--primary); margin-bottom: 1rem; }
.icon-box svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.25rem; }
.info-card p { margin-top: 0.5rem; color: var(--muted-foreground); }

/* ===== CTA ===== */
.bg-grid-ink {
  background-color: var(--ink); color: var(--ink-foreground);
  background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
}
.cta-block { text-align: center; }
.cta-block h2 { font-size: clamp(1.9rem, 5vw, 3rem); color: var(--ink-foreground); }
.cta-block p { margin: 1rem auto 0; max-width: 34rem; color: rgb(255 255 255 / 0.75); }
.cta-block .btn { margin-top: 2rem; }

/* ===== Contacto ===== */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.contact-channels { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.channel { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1.1rem; box-shadow: var(--shadow-soft); transition: border-color 0.2s; }
.channel:hover { border-color: var(--primary); }
.channel .icon { display: grid; place-items: center; height: 48px; width: 48px; flex: none; border-radius: 0.8rem; background: rgb(249 161 52 / 0.15); color: var(--primary); }
.channel.wa .icon { background: rgb(37 211 102 / 0.15); color: var(--whatsapp); }
.channel .icon svg { width: 24px; height: 24px; }
.channel small { display: block; color: var(--muted-foreground); font-size: 0.85rem; }
.channel b { word-break: break-word; }
.contact-form { border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card); padding: 1.75rem; box-shadow: var(--shadow-card); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea { width: 100%; border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.8rem 1rem; font-family: inherit; font-size: 1rem; background: var(--background); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(249 161 52 / 0.25); }
.field input.invalid, .field textarea.invalid { border-color: var(--destructive); }
.field .error { display: none; color: var(--destructive); font-size: 0.82rem; margin-top: 0.35rem; }
.field .error.show { display: block; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success .icon-box { margin: 0 auto 1rem; height: 64px; width: 64px; border-radius: 999px; }
.form-success .icon-box svg { width: 36px; height: 36px; }
.success-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hidden { display: none !important; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--ink-foreground); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); margin-bottom: 1rem; }
.footer-grid a, .footer-grid p { color: rgb(255 255 255 / 0.75); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--primary); }
.footer-brand img { height: 46px; margin-bottom: 0.75rem; }
.footer-brand p { max-width: 22rem; }
.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; height: 40px; width: 40px; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: var(--ink-foreground); transition: all 0.2s; }
.socials a:hover { background: var(--primary); color: var(--primary-foreground); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); text-align: center; color: rgb(255 255 255 / 0.55); font-size: 0.85rem; }

/* ===== Floating WhatsApp ===== */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: grid; place-items: center; height: 56px; width: 56px; border-radius: 999px; background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-card); animation: float-pulse 2.6s ease-in-out infinite; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes float-pulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* page hero (subpáginas) */
.page-hero { padding: 4rem 0; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); color: var(--ink-foreground); margin-top: 0.75rem; }
.page-hero p { margin: 1rem auto 0; max-width: 38rem; color: rgb(255 255 255 / 0.75); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .intro-grid, .contact-grid, .service-row, .footer-grid { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-media { order: 0; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: 1fr; }
  .carousel > * { flex-basis: 60%; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 0.5rem 1rem 1.25rem; box-shadow: var(--shadow-card); transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .carousel > * { flex-basis: 80%; }
}
@media (max-width: 480px) {
  .grid-products { grid-template-columns: 1fr; }
  .brand-text { font-size: 0.95rem; }
}
