/* ==========================================================
   SOLARA Sublimaciones — Estilos
   Paleta: Azul petróleo #0F4C5C · Cobre #B87333 · Blanco #FFFFFF
   ========================================================== */

:root {
  --petroleo: hsl(125, 72%, 21%);
  --petroleo-oscuro: #073d0f;
  --petroleo-claro: #a2efb5;
  --cobre: #B87333;
  --cobre-claro: #ace890;
  --blanco: #f3faf0;
  --texto: #1F2A30;
  --texto-suave: #5E6B72;
  --linea: #e4e4eb;
  --whatsapp: #25D366;
  --whatsapp-oscuro: #1DAA52;

  --radio: 16px;
  --sombra: 0 10px 30px -12px rgba(15, 76, 92, 0.18);
  --sombra-hover: 0 22px 40px -16px rgba(15, 76, 92, 0.30);
  --transicion: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; color: var(--petroleo); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { color: var(--texto-suave); }
:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }

.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section--alt { background: #e7f8e1; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.section__head p:not(.eyebrow) { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobre);
  margin-bottom: 0.9rem;
}

.icon-sm { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--petroleo); color: var(--blanco); box-shadow: 0 10px 24px -10px rgba(15,76,92,.6); }
.btn--primary:hover { background: var(--petroleo-oscuro); box-shadow: 0 16px 30px -12px rgba(15,76,92,.7); }
.btn--ghost { background: #e7f8e1; color: var(--petroleo); border-color: rgba(15,76,92,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--cobre); color: var(--cobre); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 12px 26px -10px rgba(37,211,102,.7); }
.btn--whatsapp:hover { background: var(--whatsapp-oscuro); }
.btn--large { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo__mark svg { width: 100%; height: 100%; fill: none; stroke-width: 2; stroke-linecap: round; }
.logo__mark circle { fill: var(--cobre); stroke: none; }
.logo__mark line, .logo__mark g { stroke: var(--petroleo); }
.logo__rays { transform-origin: 16px 16px; animation: spin 24s linear infinite; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.14em; color: var(--petroleo); }
.logo__text small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cobre); margin-top: 0.35rem; }
.logo--light .logo__text { color: var(--blanco); }
.logo--light .logo__text small { color: #E9B98A; }
.logo--light .logo__mark line, .logo--light .logo__mark g { stroke: var(--blanco); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0);
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
.header.is-scrolled {
  background: rgba(149, 149, 149, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--linea);
  height: 68px;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav__list { display: flex; gap: 2.2rem; }
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--petroleo);
  padding: 0.4rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--cobre);
  transition: width 0.35s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--cobre); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--petroleo);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.3s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% 15%, rgba(184,115,51,.16), transparent 60%),
    radial-gradient(800px 600px at 5% 90%, rgba(15,76,92,.14), transparent 60%),
    linear-gradient(160deg, #5e5e5e 0%, #F4F8F9 55%, #FBF6F1 100%);
  animation: bgShift 14s ease-in-out infinite alternate;
}
@keyframes bgShift {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 40px -30px, -30px 20px, 0 0; }
}
.hero__content { max-width: 760px; }
.hero__title {
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.hero__title span {
  display: block;
  background: linear-gradient(90deg, var(--petroleo) 0%, var(--cobre) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.hero__subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--petroleo);
  margin-bottom: 1rem;
}
.hero__text { font-size: 1.05rem; max-width: 560px; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(15,76,92,.35);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--cobre);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Servicios ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--benefits { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.card {
  position: relative;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 2.4rem 2rem;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--petroleo), var(--cobre));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transicion);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra-hover); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--petroleo-claro);
  color: var(--petroleo);
  margin-bottom: 1.5rem;
  transition: background var(--transicion), color var(--transicion), transform var(--transicion);
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--cobre); color: var(--blanco); transform: rotate(-6deg) scale(1.05); }
.card p { font-size: 0.96rem; }

/* ---------- Galería (masonry) ---------- */
.masonry {
  columns: 3;
  column-gap: 1.5rem;
}
.masonry__item {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--blanco);
  box-shadow: var(--sombra);
  cursor: pointer;
}
.ph {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    transition: transform 0.9s cubic-bezier(.22,.61,.36,1), filter 0.6s ease;
}
.ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.ph::before,
.ph::after,
.ph__label {
    display: none;
}

.masonry__item--tall .ph {
    aspect-ratio: 3 / 4.2;
}

.masonry__item--wide .ph {
    aspect-ratio: 16 / 11;
}

.ph--remeras   { background: linear-gradient(145deg, #0F4C5C 0%, #2A7A8C 100%); }
.ph--remeras-2 { background: linear-gradient(145deg, #1B6073 0%, #0A3540 100%); }
.ph--tazas     { background: linear-gradient(145deg, #B87333 0%, #D9A06B 100%); }
.ph--tazas-2   { background: linear-gradient(145deg, #C98446 0%, #8E5524 100%); }
.ph--botellas  { background: linear-gradient(145deg, #5E8F9C 0%, #0F4C5C 100%); }
.ph--llaveros  { background: linear-gradient(145deg, #E0B08A 0%, #B87333 100%); }

.masonry__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(10,53,64,.92), rgba(10,53,64,0));
  color: var(--blanco);
  font-size: 0.95rem;
  transform: translateY(30%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.masonry__caption span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F0C9A0;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.masonry__item:hover .ph { transform: scale(1.06); filter: saturate(1.1); }
.masonry__item:hover .masonry__caption,
.masonry__item:focus-within .masonry__caption { transform: translateY(0); opacity: 1; }

/* Hover en móviles sin cursor: se mantiene visible el texto */
@media (hover: none) {
  .masonry__caption { transform: none; opacity: 1; }
}

/* ---------- Sobre nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}
.about__text h2 { margin-bottom: 1.5rem; }
.about__text p:not(.eyebrow) { font-size: 1.08rem; line-height: 1.8; }
.about__visual { display: grid; place-items: center; }
.about__frame {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fab295, var(--cobre-claro) 60%, #fab295);
  box-shadow: inset 0 0 0 1px rgba(184,115,51,.2), 0 30px 60px -30px rgba(184,115,51,.45);
  display: grid;
  place-items: center;
  animation: float 7s ease-in-out infinite;
}
.about__frame svg { width: 58%; height: 58%; }
.about__frame circle { fill: var(--cobre); }
.about__frame line, .about__frame g { stroke: var(--petroleo); stroke-width: 1.6; stroke-linecap: round; }
.about__frame g { transform-origin: 16px 16px; animation: spin 30s linear infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Beneficios ---------- */
.benefit {
  padding: 2rem 0 0;
  border-top: 1px solid var(--linea);
  position: relative;
  transition: border-color var(--transicion);
}
.benefit::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 60px; height: 2px;
  background: var(--cobre);
  transition: width var(--transicion);
}
.benefit:hover::before { width: 100%; }
.benefit__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cobre);
  margin-bottom: 1rem;
}
.benefit p { font-size: 0.96rem; }

/* ---------- Contacto ---------- */
.contact {
  background: var(--petroleo);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(184,115,51,.35), transparent 65%);
  pointer-events: none;
}
.contact h2, .contact h3 { color: var(--blanco); }
.contact p { color: rgba(255,255,255,.75); }
.contact .eyebrow { color: #E9B98A; }
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
.contact__list { margin-top: 2.5rem; display: grid; gap: 1.6rem; }
.contact__list li { display: flex; align-items: center; gap: 1.2rem; }
.contact__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact__list strong { display: block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #E9B98A; font-weight: 600; }
.contact__list span, .contact__list a { font-size: 1.15rem; color: var(--blanco); font-weight: 500; }
.contact__list a:hover { color: #E9B98A; }

.contact__cta {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  backdrop-filter: blur(6px);
}
.contact__cta h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.contact__cta p { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--petroleo-oscuro); padding: 3.5rem 0 2rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer__location { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer__copy { color: rgba(255,255,255,.45); font-size: .85rem; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2.6s ease-out infinite;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 12px 28px -8px rgba(37,211,102,.7); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 12px 28px -8px rgba(37,211,102,.7); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 12px 28px -8px rgba(37,211,102,.7); }
}

/* ---------- Animaciones de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { --delay: .08s; }
.grid .reveal:nth-child(3) { --delay: .16s; }
.grid .reveal:nth-child(4) { --delay: .24s; }
.grid .reveal:nth-child(5) { --delay: .32s; }

/* Hero entra al cargar */
.hero__content.reveal { transform: translateY(20px); transition-duration: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--benefits { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .nav__list { gap: 1.6rem; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -20px rgba(15,76,92,.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.22,.61,.36,1);
  }
  .nav.is-open { max-height: 420px; }
  .nav__list { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1.5rem; }
  .nav__link { display: block; padding: 1rem 0; border-bottom: 1px solid var(--linea); font-size: 1rem; }
  .nav__link::after { display: none; }
  .about { grid-template-columns: 1fr; text-align: left; }
  .about__visual { order: -1; }
  .about__frame { width: min(220px, 60%); }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .container { width: min(100% - 2rem, 1180px); }
  .header.is-scrolled { height: 62px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__text { font-size: 1.05rem; }
  .logo__text small { font-size: .55rem; }
  .grid--services, .grid--benefits { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .masonry__item--tall .ph, .masonry__item--wide .ph { aspect-ratio: 4 / 4.5; }
  .masonry__caption { transform: none; opacity: 1; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .btn--large { width: 100%; padding: 1.05rem 1.5rem; font-size: 1rem; }
  .card { padding: 2rem 1.6rem; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}
