/*
Theme Name: Grapi-Tapi
Theme URI: https://grapi-tapi.local
Author: Grapi-Tapi
Description: Landing page comercial para vender grapas, herramientas y materiales por WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: grapi-tapi
*/

:root {
  --red: #E21818;
  --red-dark: #b81212;
  --blue: #0D5BA6;
  --blue-dark: #073d72;
  --yellow: #FFC20E;
  --black: #111111;
  --gray: #6B6B6B;
  --line: #E8E8E8;
  --soft: #F6F7F9;
  --white: #FFFFFF;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.11);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Inter, Roboto, "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(100% - 32px, 1220px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 208px;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: Montserrat, Poppins, Inter, sans-serif;
  font-size: 1.06rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  max-width: 185px;
  color: var(--gray);
  font-size: 0.74rem;
  line-height: 1.25;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  padding: 10px 12px;
  color: #252525;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.menu a:hover {
  color: var(--red);
  background: #fff1f1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s 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);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(226, 24, 24, 0.24);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--blue);
}

.btn-yellow {
  color: var(--black);
  background: var(--yellow);
  box-shadow: 0 10px 24px rgba(255, 194, 14, 0.25);
}

.btn-large {
  min-height: 52px;
  padding: 15px 22px;
}

.section {
  padding: 82px 0;
}

.section-band {
  padding: 68px 0 76px;
}

.section-soft {
  background: var(--soft);
}

.section-red {
  color: var(--white);
  background: var(--red);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(135deg, #f1f1f1 0 1px, transparent 1px 18px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  align-items: center;
  gap: 36px;
}

.hero-copy {
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--yellow);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Montserrat, Poppins, Inter, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: 3.75rem;
}

h2 {
  font-size: 3.35rem;
}

h3 {
  font-size: 1.22rem;
}

.hero-subtitle {
  max-width: 660px;
  margin: 22px 0 0;
  color: #333333;
  font-size: 1.28rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span,
.why-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--blue-dark);
  background: #EAF4FF;
  border: 1px solid #CAE5FF;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 34px 6px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.1;
}

.hero-visual::after {
  content: "Surtido para talleres";
  position: absolute;
  right: 10px;
  bottom: 36px;
  padding: 10px 14px;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.hero-visual img {
  position: relative;
  width: min(460px, 100%);
  filter: drop-shadow(0 22px 28px rgba(17, 17, 17, 0.17));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--gray);
  font-size: 1.07rem;
}

.section-heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.center {
  text-align: center;
}

.center .section-heading,
.section-heading.center {
  margin-inline: auto;
}

.text-link {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.benefit-grid,
.product-grid,
.audience-grid,
.trust-grid,
.steps {
  display: grid;
  gap: 18px;
}

.benefit-grid {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.product-card,
.audience-block,
.placeholder-card,
.step,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover,
.product-card:hover,
.audience-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.info-card h3,
.audience-block h3,
.step h3 {
  margin-top: 16px;
}

.info-card p,
.product-card p,
.audience-block p,
.placeholder-card p,
.step p {
  margin: 10px 0 0;
  color: var(--gray);
}

.card-icon,
.product-icon {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #FFF5CD;
  border: 2px solid var(--yellow);
}

.card-icon::before,
.product-icon::before,
.product-icon::after {
  content: "";
  position: absolute;
}

.price-icon::before {
  width: 22px;
  height: 22px;
  left: 10px;
  top: 10px;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.price-icon::after,
.speed-icon::after,
.trust-icon::after {
  content: "";
  position: absolute;
}

.price-icon::after {
  width: 4px;
  height: 18px;
  left: 21px;
  top: 13px;
  background: var(--blue);
}

.variety-icon::before {
  inset: 9px;
  border: 3px solid var(--blue);
  border-radius: 5px;
  box-shadow: 8px 8px 0 -3px var(--red);
}

.speed-icon::before {
  left: 10px;
  top: 14px;
  width: 24px;
  height: 14px;
  border: 3px solid var(--blue);
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.speed-icon::after {
  left: 7px;
  top: 9px;
  width: 19px;
  height: 5px;
  background: var(--red);
  box-shadow: 0 10px 0 var(--red), 0 20px 0 var(--red);
}

.trust-icon::before {
  left: 13px;
  top: 8px;
  width: 18px;
  height: 25px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 16%, 88% 76%, 50% 100%, 12% 76%, 0 16%);
}

.trust-icon::after {
  left: 18px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: rotate(-45deg);
}

.product-grid {
  grid-template-columns: repeat(5, 1fr);
}

.product-card {
  min-height: 238px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card.featured {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.product-card.featured p {
  color: rgba(255, 255, 255, 0.86);
}

.product-card.featured .mini-btn {
  color: var(--black);
  background: var(--yellow);
}

.product-card strong {
  display: block;
  margin-top: 14px;
  font-family: Montserrat, Poppins, Inter, sans-serif;
  font-size: 1.05rem;
}

.mini-btn {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 8px 12px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 900;
}

.staple-icon::before {
  left: 9px;
  top: 12px;
  width: 26px;
  height: 19px;
  border: 4px solid var(--red);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.tool-icon::before {
  left: 13px;
  top: 8px;
  width: 20px;
  height: 30px;
  background: var(--blue);
  border-radius: 5px 5px 12px 12px;
  transform: rotate(-20deg);
}

.fabric-icon::before,
.textile-icon::before {
  left: 9px;
  top: 10px;
  width: 28px;
  height: 24px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.leg-icon::before {
  left: 11px;
  top: 9px;
  width: 24px;
  height: 10px;
  background: var(--blue);
  border-radius: 5px;
  box-shadow: -2px 18px 0 -2px var(--red), 18px 18px 0 -2px var(--red);
}

.nail-icon::before {
  left: 12px;
  top: 8px;
  width: 7px;
  height: 30px;
  background: var(--blue);
  transform: rotate(42deg);
  box-shadow: 12px -8px 0 var(--red);
}

.sheet-icon::before {
  left: 11px;
  top: 8px;
  width: 24px;
  height: 30px;
  background: var(--blue);
  clip-path: polygon(0 0, 70% 0, 100% 28%, 100% 100%, 0 100%);
}

.roll-icon::before {
  left: 9px;
  top: 12px;
  width: 28px;
  height: 20px;
  border: 5px solid var(--blue);
  border-radius: 50%;
}

.tape-icon::before {
  left: 9px;
  top: 10px;
  width: 28px;
  height: 26px;
  background: var(--blue);
  border-radius: 50%;
}

.tape-icon::after {
  left: 18px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: #FFF5CD;
  border-radius: 50%;
}

.supply-icon::before {
  left: 10px;
  top: 10px;
  width: 11px;
  height: 11px;
  background: var(--blue);
  box-shadow: 15px 0 0 var(--red), 0 15px 0 var(--red), 15px 15px 0 var(--blue);
  border-radius: 3px;
}

.feature-grid,
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.feature-copy > p:not(.eyebrow),
.contact-copy > p {
  margin: 18px 0 0;
  color: var(--gray);
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 38px;
  padding: 8px 10px 8px 34px;
  background: #F7FBFF;
  border: 1px solid #D8ECFF;
  border-radius: var(--radius);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 10px;
  height: 6px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

.product-photo-placeholder {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(0deg, rgba(13, 91, 166, 0.88), rgba(13, 91, 166, 0.88)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 18px);
  border: 3px dashed rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: var(--white);
  font-family: Montserrat, Poppins, Inter, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
}

.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

.audience-block {
  padding: 26px;
  border-top: 5px solid var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead {
  margin: 18px 0 0;
  color: var(--gray);
  font-size: 1.32rem;
  font-weight: 800;
}

.why-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.why-list span:nth-child(even) {
  color: #5c4300;
  background: #FFF5CD;
  border-color: #FFE18A;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  margin: 36px 0 28px;
}

.step {
  padding: 26px;
  color: var(--black);
}

.step span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  border-radius: 50%;
  font-weight: 900;
}

.trust-grid {
  grid-template-columns: repeat(4, 1fr);
}

.placeholder-card {
  min-height: 188px;
  padding: 22px;
  border-style: dashed;
}

.placeholder-card strong {
  font-family: Montserrat, Poppins, Inter, sans-serif;
  font-size: 1.06rem;
}

.photo-space {
  background:
    linear-gradient(0deg, rgba(246, 247, 249, 0.92), rgba(246, 247, 249, 0.92)),
    repeating-linear-gradient(135deg, #d5d5d5 0 1px, transparent 1px 14px);
}

.contact-form {
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
  color: #292929;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #D8D8D8;
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13, 91, 166, 0.12);
}

.contact-form .btn {
  width: 100%;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.contact-details p {
  margin: 0;
  padding: 11px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer {
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 26px;
  padding: 42px 0 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
}

.footer-brand p,
.footer-contact p,
.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-contact {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-weight: 950;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-whatsapp span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: 0.85rem;
}

@media (max-width: 1060px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .nav-cta {
    display: none;
  }

  .benefit-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    padding: 13px 14px;
  }

  .hero-grid,
  .feature-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual img {
    width: min(360px, 88vw);
  }

  .section-heading-row {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 16px;
    white-space: normal;
  }

  .audience-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 24px, var(--container));
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .section,
  .section-band {
    padding: 58px 0;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-copy {
    padding: 4px 0 0;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
  }

  .benefit-grid,
  .product-grid,
  .trust-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .product-photo-placeholder {
    min-height: 260px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
