/* =========================================================
   Highdare — clon estático (HTML/CSS/JS) de highdare.uk (Wix)
   ========================================================= */

:root {
  --navy: #1a2b6d;
  --red: #d41317;
  --card-bg: #f2f2f2;
  --text: #000000;
  --white: #ffffff;
  --container-w: 980px;

  --font-heading: 'Spinnaker', Arial, Helvetica, sans-serif;
  --font-bold: Arial, Helvetica, sans-serif;
  --font-light: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-light);
  font-weight: 300;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy);
  margin: 0;
}

h1 { font-size: 66px; line-height: 1em; }
h2 { font-size: 55px; line-height: 1.1; }
h3 { font-size: 28px; line-height: 1.2; }

p {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7em;
  letter-spacing: 0.03em;
  margin: 0;
}

strong, b {
  font-family: var(--font-bold);
  font-weight: 700;
}

.rule {
  width: 100px;
  height: 2px;
  background: var(--navy);
  flex-shrink: 0;
}

/* ---------- buttons ---------- */

.cta-row {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.btn-plus {
  background: var(--navy);
  color: var(--white);
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: var(--font-bold);
  flex-shrink: 0;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 15px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  min-height: 50px;
  transition: background 0.2s ease;
}

.btn-red:hover { background: #b40f13; }

.ver-mas {
  color: var(--red);
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
}
.ver-mas:hover { text-decoration: underline; }

/* ---------- header ---------- */

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

.header-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
}

.nav-toggle { margin-left: auto; }

.logo img { height: 80px; width: auto; }

.main-nav {
  display: flex;
  gap: 146px;
}

.main-nav a {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  line-height: 50px;
  padding: 0 10px;
  display: inline-block;
}
.main-nav a:hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
}

.hero-media {
  position: relative;
  width: 100%;
  height: 534px;
  overflow: hidden;
  border-bottom: 6px solid var(--navy);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.about-hero .hero-img {
  object-position: center center;
}

.hero-content-wrap {
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-card {
  background: var(--card-bg);
  padding: 46px 50px;
  width: min(720px, 100%);
  margin-top: -195px;
  position: relative;
  z-index: 2;
}

.hero-card p { max-width: 420px; }

.hero .cta-row { width: min(720px, 100%); margin-top: 0; }

.hero { padding-bottom: 125px; }
.hero.about-hero { padding-bottom: 0; }

/* ---------- soluciones ---------- */

.solutions {
  position: relative;
  background: var(--white);
  padding-bottom: 90px;
}

.solutions-band {
  background: var(--navy);
  padding: 64px 0 200px;
}

.solutions-band h2 { color: var(--white); }

.band-subtext {
  color: var(--white);
  opacity: 0.9;
  max-width: 480px;
  margin-top: 14px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  margin-top: -170px;
}

.card-wrap { position: relative; }

.card-wrap::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--card-bg);
}

.card {
  background: var(--card-bg);
  padding: 34px 38px;
  position: relative;
  min-height: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card p { margin: 54px 0 auto; flex-grow: 1; }
.card .ver-mas { margin-top: 24px; }

/* row 1: 3 cards spanning 2 columns each (of 6) */
.cards-grid .card-wrap:nth-child(1) { grid-column: 1 / 3; }
.cards-grid .card-wrap:nth-child(2) { grid-column: 3 / 5; }
.cards-grid .card-wrap:nth-child(3) { grid-column: 5 / 7; }
/* row 2: 2 cards, centered under row 1 */
.cards-grid .card-wrap:nth-child(4) { grid-column: 2 / 4; }
.cards-grid .card-wrap:nth-child(5) { grid-column: 4 / 6; }

/* ---------- cta ---------- */

.cta {
  background: var(--white);
  border-top: 5px solid var(--navy);
  padding: 70px 0;
}

.cta-card {
  background: var(--card-bg);
  padding: 46px 50px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}

.cta-card p { max-width: 480px; }

.cta .cta-row {
  max-width: 920px;
  margin: 0 auto;
}

/* ---------- footer / contacto ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 30px;
}

.site-footer h2 {
  color: var(--white);
  text-align: center;
  font-size: 35px;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 26px;
}

.form-field { flex: 1; }
.form-field--full { flex: 1 1 100%; }

.form-field label {
  display: block;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-family: var(--font-light);
  font-size: 15px;
  padding: 6px 2px;
  outline: none;
  resize: vertical;
}

.form-field textarea { min-height: 32px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.5); }

.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--red); }

.form-submit-row {
  text-align: center;
  margin: 40px 0 10px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 24px;
  cursor: pointer;
  padding: 6px 20px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.btn-text:hover { border-bottom-color: var(--white); }
.btn-text:disabled { opacity: 0.6; cursor: default; }

.form-status {
  text-align: center;
  min-height: 24px;
  font-size: 14px;
  margin-top: 10px;
}
.form-status.ok { color: #8ee08e; }
.form-status.err { color: #ff9b9b; }

.footer-contact-info {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.footer-contact-info p { font-size: 15px; }
.footer-contact-info a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 13px;
}

.scroll-top {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.scroll-top:hover { background: rgba(255,255,255,0.1); }

/* ---------- nav active state ---------- */

.main-nav a.active { color: var(--red); }

/* ---------- about page (Quiénes Somos) ---------- */

.about-hero .hero-inner { align-items: flex-start; }
.about-hero .hero-card { margin-top: -111px; }

.about-content {
  background: var(--white);
  padding: 91px 0 90px;
}

.about-content .intro {
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.3;
  margin: 46px 0 14px;
}
.section-title:first-of-type { margin-top: 0; }

.subsection-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.4;
  margin: 20px 0 6px;
}

.lead-text {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.4em;
  margin: 0;
}

.about-content ul,
.about-content ol,
.service-section ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.about-content li,
.service-section li {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6em;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

/* ---------- service detail pages ---------- */

.service-hero {
  position: relative;
  background: var(--card-bg);
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 149px;
  background: var(--navy);
}

.service-hero .container {
  position: relative;
  padding-top: 74px;
}

.service-card-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  position: relative;
}

.service-card-wrap::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--white);
}

.service-card {
  background: var(--card-bg);
  padding: 46px 50px 40px;
  position: relative;
}

.service-card h1 { margin: 0; }

.service-body {
  background: var(--card-bg);
  padding: 0 0 70px;
}

.service-lead-row {
  display: flex;
  gap: 30px;
  padding-top: 40px;
  margin-bottom: 10px;
}
.service-lead-row .rule { margin: 18px 0 0; }
.service-lead-row p { flex: 1; margin: 0; }

.service-section { margin-top: 22px; }

.back-link {
  display: inline-block;
  color: var(--red);
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7em;
  margin-top: 26px;
}
.back-link:hover { text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .main-nav.open { max-height: 300px; }
  .main-nav a { padding: 14px 24px; border-top: 1px solid rgba(0,0,0,0.04); }
  .nav-toggle { display: flex; }

  .hero-media { height: auto; aspect-ratio: 4 / 5; border-bottom-width: 4px; }
  .hero-card { margin-top: -80px; padding: 30px; width: 100%; }
  .hero .cta-row { width: 100%; }

  .cards-grid {
    grid-template-columns: 1fr;
    margin-top: -140px;
  }
  .cards-grid .card-wrap:nth-child(1),
  .cards-grid .card-wrap:nth-child(2),
  .cards-grid .card-wrap:nth-child(3),
  .cards-grid .card-wrap:nth-child(4),
  .cards-grid .card-wrap:nth-child(5) {
    grid-column: 1 / -1;
  }
  .card { min-height: unset; }

  .cta-card { padding: 30px; }
  .cta .cta-row, .cta-card { max-width: 100%; }

  .form-row { flex-direction: column; gap: 26px; }
  .footer-contact-info { gap: 20px; flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .about-hero .hero-card { margin-top: -80px; padding: 30px; width: 100%; }
  .section-title { font-size: 24px; }

  .service-hero::before { height: 90px; }
  .service-hero .container { padding-top: 30px; }
  .service-card { padding: 30px; }
  .service-body { padding-bottom: 50px; }
  .service-lead-row { flex-direction: column; gap: 10px; padding-top: 26px; }
  .service-lead-row .rule { margin-top: 0; }
}
