/* =========================================================
   SUMISUR — Hoja de estilos principal
   Paleta: Azul marino (confianza/corporativo) + Dorado (comercio/premium)
   ========================================================= */

:root {
  /* Paleta tomada del isologo de SumiSur (refrigeración / aire acondicionado):
     azul = frío / confianza (color dominante), naranja = calor / acción (acento). */
  --color-navy-950: #030711;
  --color-navy-900: #071229;
  --color-navy-800: #0a1830;
  --color-navy-700: #123163;
  --color-blue-500: #0072e3;
  --color-blue-400: #1c93ff;
  --color-blue-100: #dcedff;
  --color-orange-600: #f86000;
  --color-orange-500: #f88b00;
  --color-orange-400: #f8b818;
  --color-white: #ffffff;
  --color-offwhite: #f6f7f9;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9aa3af;
  --color-gray-600: #5b6472;
  --color-gray-800: #2b2f36;
  --color-success: #1e7e34;
  --color-error: #b3261e;

  --font-heading: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(10, 25, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 25, 48, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 25, 48, 0.18);

  --container-w: clamp(1160px, 80vw, 1600px);
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-gray-800);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

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

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

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

.section--navy {
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: var(--color-white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-500);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.section-head p {
  color: var(--color-gray-600);
  font-size: 17px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-orange-500);
  color: var(--color-navy-950);
}

.btn-primary:hover {
  background: var(--color-orange-400);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--color-navy-800);
  color: var(--color-navy-800);
}

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

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 48, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-950);
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.logo__img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo__text-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-blue-400);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav__links {
  display: flex;
  gap: 30px;
}

.main-nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav__links a:hover,
.main-nav__links a[aria-current="page"] {
  color: var(--color-white);
  border-color: var(--color-blue-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.lang-switch a {
  padding: 4px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
}

.lang-switch a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.lang-switch a:hover {
  color: var(--color-white);
}

.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-white);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(248, 139, 0, 0.28), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(0, 114, 227, 0.22), transparent 40%),
    linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-900) 55%, var(--color-navy-800) 100%);
  color: var(--color-white);
  padding: 110px 0 100px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.hero-copy {
  max-width: 520px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(34px, 4.6vw, 52px);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-orange-400);
}

.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 28px;
  color: var(--color-orange-400);
  font-family: var(--font-heading);
}

.hero-stats div span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.hero-photo {
  margin-top: 34px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Breadcrumb / page header interno ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: var(--color-white);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--color-blue-400);
}

/* ---------- Grids / cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

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

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

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-orange-500);
  color: var(--color-blue-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-gray-600);
  font-size: 15px;
  margin-bottom: 0;
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

/* Servicios: numbered layout */
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row__num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--color-blue-500);
  opacity: 0.65;
}

.service-row h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.service-row p {
  color: var(--color-gray-600);
  margin-bottom: 0;
}

/* Proceso / pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 20px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-navy-950);
  background: var(--color-orange-500);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--color-gray-600);
  margin-bottom: 0;
}

/* ---------- Nosotros: valores / timeline ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-art img {
  width: 100%;
  height: auto;
  display: block;
}

.value-list {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.value-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-list .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-blue-500);
  margin-top: 8px;
}

.value-list strong {
  display: block;
  color: var(--color-navy-900);
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 2px;
}

.value-list span {
  color: var(--color-gray-600);
  font-size: 14.5px;
}

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy-900), var(--color-navy-700));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h3 {
  color: var(--color-white);
  font-size: 26px;
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-orange-500);
  color: var(--color-blue-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-item strong {
  display: block;
  color: var(--color-navy-900);
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-info-item span,
.contact-info-item a {
  color: var(--color-gray-600);
  font-size: 14.5px;
}

.contact-info-item a:hover {
  color: var(--color-navy-800);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-offwhite);
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-800);
  transition: background 0.15s ease, color 0.15s ease;
}

.social-row a:hover {
  background: var(--color-navy-900);
  color: var(--color-white);
}

.social-row svg {
  width: 18px;
  height: 18px;
}

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-gray-800);
  background: var(--color-offwhite);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue-500);
  background: var(--color-white);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field-error {
  display: none;
  color: var(--color-error);
  font-size: 12.5px;
  margin-top: 6px;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--color-error);
}

.field.has-error .field-error {
  display: block;
}

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

.form-note {
  font-size: 12.5px;
  color: var(--color-gray-400);
  margin-top: 14px;
  text-align: center;
}

.alert {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.alert-success {
  background: #e8f5e9;
  color: var(--color-success);
  border: 1px solid #c3e6c8;
}

.alert-error {
  background: #fdecea;
  color: var(--color-error);
  border: 1px solid #f5c6c2;
}

/* ---------- Logos / clientes tira ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--color-gray-400);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
}

.footer-grid ul a:hover {
  color: var(--color-blue-400);
}

.footer-about p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--color-blue-400);
}

/* ---------- Página 404 / gracias ---------- */
.state-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.state-page .state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-orange-500);
  color: var(--color-blue-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.state-page .state-icon svg {
  width: 36px;
  height: 36px;
}

.state-page h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.state-page p {
  color: var(--color-gray-600);
  max-width: 440px;
  margin: 0 auto 28px;
}

/* ---------- Lightbox de fotos de producto ---------- */
.product-photo {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(3, 7, 17, 0.92);
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(3, 7, 17, 0.28);
  z-index: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(3, 7, 17, 0.34);
  color: #ffffff;
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-photo {
    margin-top: 36px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--color-navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav__links {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-actions {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

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

  .section {
    padding: 60px 0;
  }

  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-fab svg {
    width: 27px;
    height: 27px;
  }
}
