:root {
  --color-bg: #ffffff;
  --color-text: #141414;
  --color-muted: #555f5e;
  --color-calipso: #6bdbd8;
  --color-calipso-dark: #1f8481;
  --color-calipso-darker: #146462;
  --color-surface: #f2fafa;
  --color-border: #d9e9e9;
  --color-whatsapp: #25d366;
  --radius: 10px;
  --max-width: 1140px;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-text);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 1.2em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--color-muted); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-calipso-dark); color: #fff; }
.btn-primary:hover { background: var(--color-calipso-darker); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: 500;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.logo img { width: 110px; height: auto; }

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-social a {
  display: inline-flex;
  color: var(--color-text);
}
.header-social svg {
  width: 20px;
  height: 20px;
}
.header-social a:hover { color: var(--color-calipso-dark); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--color-calipso-dark); }
.nav-cta {
  background: var(--color-calipso-dark);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--color-calipso-darker); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.68));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 60px 20px; }
.hero-content h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .4em; }
.hero-content p { color: #f0f0f0; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5em; }

/* Servicios */
.servicios { padding: 80px 0; background: var(--color-surface); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.servicio-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--color-border);
  text-align: center;
}
.servicio-card img {
  margin: 0 auto 16px;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  object-fit: cover;
}
.servicio-card p { font-size: .95rem; }

/* Proceso */
.proceso { padding: 80px 0; }
.proceso-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.proceso-steps li {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.step-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.proceso-steps p { font-size: .9rem; }

@media (min-width: 860px) {
  .proceso-steps { grid-template-columns: repeat(5, 1fr); }
}

/* Nosotros */
.nosotros {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  isolation: isolate;
}
.nosotros-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.nosotros-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.6) 55%, rgba(10,10,10,.35) 100%);
  z-index: -1;
}
.nosotros-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.nosotros-icon {
  width: 160px;
  flex-shrink: 0;
  margin: 0 auto;
  mix-blend-mode: screen;
}
.nosotros-texto { flex: 1; min-width: 260px; color: #fff; }
.nosotros-texto h2 { text-align: left; color: #fff; }
.nosotros-texto p { color: #f0f0f0; }

/* Portafolio */
.portafolio { padding: 80px 0; }

.carrusel {
  position: relative;
  margin-bottom: 60px;
}
.carrusel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carrusel-track::-webkit-scrollbar { display: none; }

.carrusel-slide {
  flex: 0 0 auto;
  width: min(340px, 78vw);
  aspect-ratio: 3/4;
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
}
.carrusel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carrusel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: #fff;
  padding: 32px 16px 14px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.carrusel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(20,20,20,.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carrusel-btn:hover { background: var(--color-calipso-dark); }
.carrusel-prev { left: 8px; }
.carrusel-next { right: 8px; }

.carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carrusel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.carrusel-dots button.is-active { background: var(--color-calipso-dark); }

.instagram-feed { text-align: center; }
.instagram-feed h3 { font-size: 1.4rem; }
.instagram-feed-sub { margin-bottom: 28px; }
.instagram-feed-sub a { color: var(--color-calipso-dark); font-weight: 600; text-decoration: none; }
.instagram-feed-sub a:hover { text-decoration: underline; }

.instagram-embed-wrapper { min-height: 80px; }

/* Contacto */
.contacto { padding: 80px 0; background: var(--color-surface); }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contacto-datos { list-style: none; padding: 0; margin: 0; }
.contacto-datos li { margin-bottom: 10px; }
.contacto-datos a { color: var(--color-calipso-dark); text-decoration: none; font-weight: 500; }
.contacto-datos a:hover { text-decoration: underline; }

.contacto-form {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: .9rem; font-weight: 600; }
.form-row input, .form-row textarea {
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-calipso-dark);
  outline-offset: 1px;
}
.form-status { min-height: 1.2em; font-size: .9rem; color: var(--color-calipso-dark); }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--color-border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner img { width: 70px; }
.footer-inner p { margin: 0; font-size: .85rem; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--color-text); text-decoration: none; font-size: .85rem; }
.footer-social a:hover { color: var(--color-calipso-dark); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--color-whatsapp);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  z-index: 400;
}

/* Responsive */
@media (max-width: 860px) {
  .contacto-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-cta { width: 100%; text-align: center; }
  .nosotros-inner { text-align: center; justify-content: center; }
  .nosotros-texto h2 { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
