/* ===========================
   RESET
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   VARIABLES
   =========================== */
:root {
  --green: #7ab800;
  --green-dark: #6a9f00;
  --navy: #51626f;
  --navy-dark: #2f3f4d;
  --gray-bg: #f3f3f3;
  --gray-line: #dcdcdc;
}

/* ===========================
   TOP BAR
   =========================== */
.topbar {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 7px;
  text-transform: uppercase;
}

/* ===========================
   HEADER
   =========================== */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-heading {
  margin: 0;
  line-height: 0;
}

.logo-heading img {
  height: 60px;
  width: auto;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-tel,
.header-wapp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.header-tel {
  color: var(--navy);
}

.header-tel svg {
  width: 18px;
  height: 18px;
  fill: var(--navy);
}

.header-wapp {
  color: var(--green);
}

.header-wapp svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
}

/* ===========================
   BURGER (mobile)
   =========================== */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: .3s;
}

/* ===========================
   NAV
   =========================== */
nav {
  background: var(--navy);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 13px 16px;
  text-transform: uppercase;
  transition: background .2s;
  letter-spacing: .5px;
}

nav a:hover {
  background: rgba(255, 255, 255, .12);
}

nav a.active {
  background: rgba(255, 255, 255, .15);
}

.nav-title {
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  padding-right: 16px;
  white-space: nowrap;
}

.nav-title strong {
  font-weight: 700;
}

/* ===========================
   MOBILE NAV
   =========================== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--navy-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 60px 24px 24px;
  gap: 0;
  transition: left .3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  left: 0;
}

.mobile-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-transform: uppercase;
}

.mobile-nav a.active {
  color: var(--green);
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===========================
   HERO (homepage)
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  background: url('img/hero-index.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 16px 50px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--green-dark);
  transition: background .2s;
}

.hero-btn:hover {
  background: var(--green-dark);
}

/* ===========================
   SECTION TITLE
   =========================== */
.section-title {
  text-align: center;
  padding: 40px 20px 10px;
}

.section-title h2 {
  color: var(--green);
  font-size: 30px;
  font-weight: 400;
  font-family: 'Lato', sans-serif;
  font-style: italic;
}

.section-title-divider {
  width: 80px;
  height: 2px;
  background: var(--green);
  margin: 12px auto 0;
}

/* ===========================
   PRODUCTOS (homepage)
   =========================== */
.productos-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.producto-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.producto-col img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.producto-col h3 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.producto-col p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.btn-verde {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 10px 30px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background .2s;
}

.btn-verde:hover {
  background: var(--green-dark);
}

/* ===========================
   CONTACTO (homepage)
   =========================== */
.contacto-section {
  background: var(--gray-bg);
  padding: 30px 20px 40px;
}

.contacto-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacto-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-item svg {
  width: 32px;
  min-width: 32px;
  height: 32px;
  fill: var(--green);
  margin-top: 2px;
}

.feature-text h4 {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

/* Beneficios badges */
.beneficios-row {
  margin-top: 10px;
}

.beneficio-badge img {
  max-width: 100%;
}

/* Form box */
.contacto-form-box {
  background: var(--green);
  padding: 30px 28px;
  border-radius: 6px;
}

.contacto-form-box h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.form-field {
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  background: #e3e3e3;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2);
}

.form-field textarea {
  height: 80px;
  resize: vertical;
}

.btn-enviar {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--navy-dark);
  transition: background .2s;
  text-transform: uppercase;
}

.btn-enviar:hover {
  background: var(--navy-dark);
}

/* ===========================
   TESTIMONIOS
   =========================== */
.testimonios-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonio-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 24px 20px;
  position: relative;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.quote-open,
.quote-close {
  font-size: 40px;
  color: var(--green);
  font-weight: 700;
  line-height: 0.6;
  font-family: Georgia, serif;
}

.quote-open {
  display: block;
  margin-bottom: 8px;
}

.quote-close {
  display: block;
  text-align: right;
  margin-top: 8px;
}

.testimonio-autor {
  margin-top: 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}

/* ===========================
   CTA CENTER
   =========================== */
.cta-center {
  text-align: center;
  padding: 40px 20px;
}

.btn-cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 16px 56px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--green-dark);
  transition: background .2s;
}

.btn-cta:hover {
  background: var(--green-dark);
}

/* ===========================
   SELECTOR (que tipo de toldo)
   =========================== */
.selector-section {
  background: var(--gray-bg);
  padding: 10px 20px 40px;
}

.selector-title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: var(--green);
  padding: 30px 20px 20px;
}

.selector-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.selector-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.selector-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.selector-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.selector-card .img-default {
  display: block;
}

.selector-card .img-hover {
  display: none;
}

.selector-card:hover .img-default {
  display: none;
}

.selector-card:hover .img-hover {
  display: block;
  margin: 0 auto 14px;
}

.selector-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.selector-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 30px 20px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-left img {
  height: 42px;
  width: auto;
}

.copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.footer-social a svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.footer-social a.facebook svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.footer-social a.instagram svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.footer-social a.instagram svg .ig-dot {
  fill: #fff;
  stroke: none;
}

.footer-right {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}

.footer-right a {
  color: var(--green);
}

.footer-local {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-right: 4px;
}

.footer-credit {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-credit a {
  display: flex;
  align-items: center;
}

.footer-credit img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-credit span {
  align-self: flex-end;
  padding-bottom: 2px;
}

/* ===========================
   WHATSAPP FLOAT
   =========================== */
.wapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  z-index: 999;
  transition: transform .2s;
}

.wapp-float:hover {
  transform: scale(1.1);
}

.wapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ===========================
   PAGE HERO (product pages)
   =========================== */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
}

.page-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  min-height: 460px;
}

.page-hero-title {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  text-transform: uppercase;
  z-index: 5;
}

/* Green panel */
.page-hero-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  background: var(--green);
  padding: 30px 26px 35px;
  z-index: 10;
}

.page-hero-left ul {
  margin-bottom: 20px;
}

.page-hero-left li {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.page-hero-left li::before {
  content: '>';
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Hero form */
.page-hero-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-hero-form input,
.page-hero-form textarea {
  background: #e3e3e3;
  border: none;
  border-radius: 5px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2);
}

.page-hero-form textarea {
  height: 80px;
  resize: vertical;
}

.btn-cotizar {
  background: var(--navy);
  color: #fff;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--navy-dark);
  text-transform: uppercase;
  transition: background .2s;
}

.btn-cotizar:hover {
  background: var(--navy-dark);
}

/* Hero background images */
.hero-brazoinvisible {
  background-image: url('img/hero-brazo-invisible.webp');
}

.hero-cerramiento {
  background-image: url('img/hero-cerramiento.webp');
}

.hero-vertical {
  background-image: url('img/hero-toldo-vertical.webp');
}

/* Badges */
.hero-beneficios {
  background: var(--gray-bg);
  padding: 18px 20px;
}

.page-hero-badges {
  max-width: 960px;
  margin: 0 auto;
  text-align: right;
}

.page-hero-badge img {
  max-width: 520px;
  width: 100%;
  display: inline-block;
}

/* ===========================
   TRABAJOS GRID
   =========================== */
.trabajos-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 20px 30px;
}

.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.trabajos-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
}

/* ===========================
   VENTAJAS
   =========================== */
.ventajas-section {
  padding: 0 0 0;
}

.ventaja-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 25px 20px;
}

.ventaja-item .ventaja-text:only-child {
  grid-column: 1 / -1;
}

.ventaja-wrap {
  padding: 0;
  background: var(--gray-bg);
}

.ventaja-wrap.bg-white {
  background: #fff;
}

.ventaja-item.reverse {
  direction: rtl;
}

.ventaja-item.reverse > * {
  direction: ltr;
}

.ventaja-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ventaja-header svg {
  width: 28px;
  min-width: 28px;
  height: 28px;
  fill: var(--green);
}

.ventaja-header img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ventaja-header h3 {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

.ventaja-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 10px;
  text-align: justify;
}

.ventaja-img img {
  width: 100%;
  border-radius: 4px;
}

.ventaja-badge-wrap {
  position: relative;
}

.badge-pct {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.badge-pct span {
  font-size: 10px;
  font-weight: 400;
}

/* ===========================
   OTROS MODELOS
   =========================== */
.otros-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 10px;
}

.otros-title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: var(--green);
  margin-bottom: 24px;
}

.otro-bloque {
  margin-bottom: 50px;
  text-align: center;
}

.otro-bloque-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.otro-fotos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.otro-fotos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
}

.otro-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
  text-align: center;
}

.otro-btn-wrap {
  text-align: center;
}

/* ===========================
   EMPRESA
   =========================== */
.empresa-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

.empresa-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

.empresa-inner img {
  width: 100%;
  border-radius: 4px;
}

.empresa-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
  text-align: justify;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  /* Header */
  .header-contact {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Nav */
  nav {
    display: none;
  }

  /* Hero homepage */
  .hero {
    height: 280px;
  }

  /* Products */
  .productos-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Contact */
  .contacto-inner {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Selector */
  .selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-right {
    text-align: center;
  }

  /* Page hero */
  .page-hero {
    min-height: auto;
  }

  .page-hero-inner {
    min-height: auto;
  }

  .page-hero-left {
    position: static;
    width: 100%;
  }

  .page-hero-title {
    position: static;
    display: block;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, .4);
    text-shadow: none;
  }

  /* Trabajos */
  .trabajos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Ventajas */
  .ventaja-item {
    grid-template-columns: 1fr;
  }

  .ventaja-item.reverse {
    direction: ltr;
  }

  /* Otros */
  .otro-fotos {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Empresa */
  .empresa-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .selector-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero {
    height: 220px;
  }

  .section-title h2 {
    font-size: 24px;
  }
}
