/* ===== Manny Solar — Design System ===== */

:root {
  --color-navy: #2f3e46;
  --color-navy-dark: #1c262b;
  --color-navy-light: #354f52;
  --color-solar: #84a98c;
  --color-solar-dark: #52796f;
  --color-white: #ffffff;
  --color-gray-light: #f5f7fa;
  --color-gray-mid: #d9dfe6;
  --color-text: #16202b;
  --color-error: #c0392b;
  --color-success: #1e8e3e;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: "Alex Brush", cursive;

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 6px 20px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.18);
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
  font-size: 16px;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 5vw, 1.6rem); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-navy);
}

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

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

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

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-mid);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  max-width: 960px;
}

@media (max-width: 480px) {
  .contact-bar {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .contact-btn {
    font-size: 0.75rem;
    padding: 7px 12px;
    min-height: 34px;
  }

  .lang-switch {
    font-size: 0.75rem;
  }
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: 0;
}

.logo span {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.5em;
  color: var(--color-solar-dark);
  margin-left: 2px;
}

/* ===== Contact bar ===== */

.contact-bar {
  display: flex;
  gap: 8px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  white-space: nowrap;
}

.contact-btn-call {
  background: var(--color-navy);
  color: var(--color-white);
}

.contact-btn-call:hover {
  background: var(--color-navy-light);
}

.contact-btn-whatsapp {
  background: #25d366;
  color: var(--color-white);
}

.contact-btn-whatsapp:hover {
  background: #1fb855;
}

.site-footer .contact-bar {
  justify-content: center;
  margin-bottom: 18px;
}

.company-disclosure {
  font-size: 0.75rem;
  color: #6b7a89;
  max-width: 480px;
  margin: 0 auto 16px;
}

.areas-section {
  text-align: center;
}

.areas-section p {
  color: #4a5763;
}

/* ===== Galería de instalaciones ===== */

.gallery-section {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-caption {
  font-size: 0.85rem;
  color: #6b7a89;
  margin: 8px 0 0;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Language switch ===== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
}

.lang-option {
  background: none;
  border: none;
  color: #8ea0b2;
  cursor: pointer;
  padding: 8px 2px;
  min-height: 40px;
}

.lang-option.active {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .lang-option {
  color: #8ea0b2;
}

.site-footer .lang-option.active {
  color: var(--color-white);
}

.lang-sep {
  color: var(--color-gray-mid);
}

.site-footer .lang-sep {
  color: #4a5763;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  padding: 16px 24px;
  min-height: 56px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.05s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-solar);
  color: var(--color-navy-dark);
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-solar-dark);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-block-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-navy-light);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 12px 8px;
  min-height: 44px;
}

/* ===== Hero ===== */

.hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 56px 0 48px;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
}

.hero .subtitle {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--color-gray-light);
}

/* ===== Sections ===== */

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--color-gray-light);
}

.about {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.about-text {
  max-width: 520px;
}

.about-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7a89;
  margin: -6px 0 14px;
}

.about-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-navy);
  line-height: 1.3;
}

.about-fine {
  font-size: 0.9rem;
  color: #6b7a89;
  margin-bottom: 0;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-card {
  background: none;
  border: none;
  border-top: 3px solid var(--color-solar);
  border-radius: 0;
  padding: 24px 20px 4px;
  text-align: center;
}

.benefit-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--color-solar-dark);
  line-height: 1;
  margin-bottom: 10px;
}

.benefit-card h3 {
  margin-bottom: 6px;
}

.benefit-card p {
  margin: 0;
  color: #4a5763;
}

/* ===== Section eyebrow labels ===== */

.eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea0b2;
  margin-bottom: 4px;
}

/* ===== Trust section ===== */

.trust-section {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 48px 0;
  text-align: center;
}

.trust-section .eyebrow {
  color: var(--color-solar);
}

.trust-section h2 {
  color: var(--color-white);
}

.trust-body {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--color-gray-light);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.88rem;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-solar);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.tagline-strip {
  background: var(--color-solar);
  color: var(--color-navy-dark);
  text-align: center;
  padding: 40px 20px;
}

.tagline-strip p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.2;
}

.cta-section {
  text-align: center;
  padding: 48px 0;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--color-navy-dark);
  color: var(--color-gray-light);
  padding: 36px 0 28px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.site-footer .lang-toggle {
  margin-bottom: 18px;
}

.footer-fine {
  font-size: 0.8rem;
  color: #8ea0b2;
  margin: 0;
}

/* ===== Multi-step form ===== */

.form-page {
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, var(--color-gray-light) 65%);
  min-height: calc(100vh - 120px);
  padding-bottom: 40px;
  display: flex;
  align-items: center;
}

.form-page .container {
  width: 100%;
}

.progress-track {
  height: 6px;
  background: var(--color-gray-mid);
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: var(--color-solar);
  width: 20%;
  transition: width 0.25s ease;
}

.progress-label {
  text-align: center;
  font-size: 0.85rem;
  color: #5a6773;
  padding: 10px 0 0;
  font-weight: 600;
}

.form-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  margin: 24px auto 0;
  max-width: 520px;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadein 0.2s ease;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.step h2 {
  margin-bottom: 20px;
  text-align: center;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.choice-option {
  position: relative;
}

.choice-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
}

.choice-option label {
  display: block;
  border: 2px solid var(--color-gray-mid);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-option input[type="radio"]:checked + label {
  border-color: var(--color-solar-dark);
  background: #eef3ef;
  color: var(--color-navy);
}

.choice-option input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--color-navy-light);
  outline-offset: 2px;
}

.form-field {
  margin-bottom: 18px;
  text-align: left;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="number"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 14px;
  border: 2px solid var(--color-gray-mid);
  border-radius: var(--radius-sm);
  min-height: 50px;
}

.form-field input:focus-visible {
  outline: none;
  border-color: var(--color-navy-light);
}

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

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

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.consent-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-field label {
  font-size: 0.9rem;
  color: #3a4753;
}

.step-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-owner-block {
  text-align: center;
}

.no-owner-block .form-card {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ===== Gracias page ===== */

.thanks-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 20px;
}

.thanks-icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
}

.thanks-brand {
  color: var(--color-solar-dark);
  font-weight: 700;
  margin: 20px 0 0;
}

.fact-card {
  background: var(--color-gray-light);
  border-left: 4px solid var(--color-solar);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 28px 0;
  text-align: left;
  font-style: italic;
  color: #3a4753;
}

.referral-callout {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin: 28px 0;
}

.referral-callout h3 {
  color: var(--color-white);
}

/* ===== Referidos page ===== */

.referral-hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 48px 0;
}

.referral-hero h1 {
  color: var(--color-solar);
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  counter-reset: step-counter;
}

.step-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  padding-left: 68px;
}

.step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-solar);
  color: var(--color-navy-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-box {
  background: var(--color-gray-light);
  border: 2px solid var(--color-gray-mid);
  border-radius: var(--radius);
  padding: 22px 20px;
  max-width: 700px;
  margin: 32px auto;
}

.terms-box h3 {
  margin-bottom: 12px;
}

.terms-box ul {
  padding-left: 20px;
  margin: 0;
}

.terms-box li {
  margin-bottom: 8px;
}

.terms-pending {
  background: #fff3cd;
  border: 1px dashed #b8860b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #6b5300;
  margin-top: 12px;
}

.referral-form-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Responsive ===== */

@media (min-width: 640px) {
  .btn {
    width: auto;
    min-width: 280px;
  }

  .about {
    flex-direction: row;
    text-align: left;
  }

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

  .benefits .benefit-card {
    border-left: 1px solid var(--color-gray-mid);
    padding-left: 28px;
    padding-right: 28px;
  }

  .benefits .benefit-card:first-child {
    border-left: none;
    padding-left: 20px;
  }

  .choice-group {
    flex-direction: row;
  }

  .choice-option {
    flex: 1;
  }

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

  .step-item {
    padding-left: 20px;
    padding-top: 56px;
  }

  .step-item::before {
    left: 20px;
    top: 16px;
  }
}
