/* Ampara homepage — independiente, sin marca de terceros */
:root {
  --ink: #10241f;
  --teal: #0f5c54;
  --teal-deep: #083f39;
  --coral: #e85d3b;
  --coral-hot: #ff6a45;
  --sand: #f4efe6;
  --mist: #e7f1ee;
  --muted: #5c6b66;
  --line: rgba(15, 92, 84, 0.14);
  --white: #ffffff;
  --radius: 6px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --shadow-cta: 0 14px 36px rgba(232, 93, 59, 0.28);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  line-height: 1;
}

.brand--footer .brand__name {
  color: var(--white);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--teal);
}

.nav__cta {
  padding: 0.55rem 1.1rem;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: var(--radius);
}

.nav__cta:hover {
  background: var(--teal-deep);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-deep);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 0.25rem;
  color: var(--teal-deep);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
  margin-top: 0.35rem;
  text-align: center;
  background: var(--coral);
  color: var(--white);
  padding: 0.9rem;
  border-radius: var(--radius);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4.5rem;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 63, 57, 0.88) 0%, rgba(8, 63, 57, 0.55) 42%, rgba(16, 36, 31, 0.25) 100%),
    linear-gradient(to top, rgba(8, 40, 36, 0.7), transparent 48%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 13vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--white);
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 4.2vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--coral-hot);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--accent {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}

.btn--accent:hover {
  background: var(--coral-hot);
}

.btn--block {
  width: 100%;
}

/* —— Products —— */
.products {
  padding: 5rem 1.25rem 4rem;
  background: var(--sand);
}

.section-intro {
  max-width: 1120px;
  margin: 0 auto 2.75rem;
}

.section-intro h2,
.why__panel h2,
.quote__copy h2,
.final-cta__inner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--teal-deep);
}

.section-intro p,
.why__panel > p,
.quote__copy p,
.final-cta__inner p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-list {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.product {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.product:hover {
  border-color: rgba(15, 92, 84, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(16, 36, 31, 0.1);
}

.product__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product:hover .product__media img {
  transform: scale(1.05);
}

.product__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.product__body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}

.product__body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s;
}

.product__cta:hover {
  color: var(--teal-deep);
  gap: 0.6rem;
}

/* —— Why —— */
.why {
  padding: 5rem 1.25rem;
  background:
    linear-gradient(120deg, rgba(15, 92, 84, 0.06), transparent 45%),
    var(--white);
}

.why__panel {
  max-width: 1120px;
  margin: 0 auto;
}

.why__points {
  list-style: none;
  margin: 2rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.why__points li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--coral);
}

.why__points strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal-deep);
}

.why__points span {
  color: var(--muted);
}

/* —— Quote form —— */
.quote {
  padding: 5rem 1.25rem;
  background:
    linear-gradient(155deg, var(--teal-deep) 0%, var(--teal) 55%, #1a7a6e 100%);
  color: var(--white);
}

.quote__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.quote__copy h2 {
  color: var(--white);
}

.quote__copy p {
  color: rgba(255, 255, 255, 0.84);
}

.quote-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.quote-form__field {
  display: grid;
  gap: 0.4rem;
}

.quote-form__field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-deep);
}

.quote-form__field input,
.quote-form__field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-form__field input:focus,
.quote-form__field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 92, 84, 0.18);
  background: var(--white);
}

.quote-form__field input.is-invalid,
.quote-form__field select.is-invalid {
  border-color: #d64545;
}

.quote-form__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.quote-form__success {
  margin: 0;
  padding: 0.85rem;
  background: var(--mist);
  color: var(--teal-deep);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
}

.quote-form.is-success .quote-form__field,
.quote-form.is-success .btn,
.quote-form.is-success .quote-form__note {
  display: none;
}

/* —— Final CTA —— */
.final-cta {
  padding: 5rem 1.25rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(232, 93, 59, 0.18), transparent 60%),
    var(--mist);
  text-align: center;
}

.final-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta__inner p {
  margin: 0 auto 1.75rem;
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 1.25rem 2rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

.site-footer__brand p {
  margin: 0.75rem 0 0;
  max-width: 32ch;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: var(--coral-hot);
}

.site-footer__legal {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .hero {
    align-items: center;
    padding-bottom: 5rem;
  }

  .product-list {
    grid-template-columns: 1fr 1fr;
  }

  .why__points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .quote__inner {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 3.5rem;
  }

  .quote-form {
    padding: 2rem;
  }

  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__photo,
  [data-reveal] {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
