/* Saladín — estilos generales
   Paleta extraída del design.pdf:
   azul  #1f4dcc | azul oscuro #081baa | marino #000940 | crema #edeee7 | menta #32e2af */

:root {
  --blue: #1f4dcc;
  --blue-dark: #081baa;
  --navy: #000940;
  --cream: #edeee7;
  --mint: #32e2af;
  --white: #ffffff;
  --maxw: 1200px;
  --radius: 4px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

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

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

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--blue); }
.btn-blue { color: var(--blue); }
.btn-blue:hover { background: var(--blue); color: var(--white); }

/* Header */
.site-header {
  background: var(--blue);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.logo img { height: 35px; width: auto; }
.main-nav {
  display: flex;
  gap: 36px;
}
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.main-nav a:hover { color: var(--mint); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
}

/* Footer */
.site-footer {
  background: var(--navy);
  padding: 26px 0;
}
.footer-logo { height: 18px; width: auto; opacity: .95; }

/* ============ HOME ============ */
.hero {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  padding-bottom: 110px;
}
.hero-decor {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 560px;
  height: 560px;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  max-width: 640px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}
.hero-sub {
  color: var(--white);
  font-weight: 400;
  font-size: 1.25rem;
  opacity: .92;
  margin-bottom: 2em;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: auto;
  z-index: 1;
  line-height: 0;
}

.capabilities {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.capabilities-overlay {
  background: linear-gradient(180deg, rgba(31,77,204,.55), rgba(8,27,170,.85));
  padding: 90px 0 70px;
}
.capabilities h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.capabilities h2 span { display: block; font-weight: 400; opacity: .9; font-size: .7em; }
.icon-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}
.icon-circle {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle svg {
  width: 44px;
  height: 44px;
  stroke: var(--mint);
  fill: none;
  stroke-width: 1.6;
}
.icon-card p {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 900px) {
  .icon-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}
@media (max-width: 500px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
}

.what-we-do {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
}
.two-col {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.what-we-do h2 { color: var(--blue); font-size: clamp(2rem, 4vw, 2.8rem); }
.what-we-do p { color: var(--blue); font-size: 1.05rem; max-width: 34ch; }
.what-we-do strong { font-weight: 700; }
.image-col img { max-width: 560px; margin: 0 auto; border-radius: 4px; }

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; text-align: center; }
  .what-we-do p { margin-left: auto; margin-right: auto; }
}

/* ============ PRODUCTS ============ */
.page-hero-small {
  background: var(--cream);
  padding: 70px 0 30px;
}
.page-hero-small h1 { color: var(--blue); font-size: clamp(2rem, 4vw, 2.6rem); }
.page-hero-small p { color: var(--blue); max-width: 40ch; }

.products { padding: 40px 0 100px; }
.products-tabs {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 34px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0 0 10px;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue);
  font-size: 2rem;
  opacity: .55;
  border-bottom: 3px solid transparent;
  transition: opacity .2s ease, font-size .2s ease;
}
.tab-btn.is-active {
  font-size: 1.6rem;
  opacity: 1;
  border-bottom-color: var(--blue);
}
.tab-btn:hover { opacity: .85; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.products-grid.is-hidden { display: none; }
.product-card p {
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--blue);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .products-tabs { flex-direction: column; gap: 20px; }
  .tab-btn, .tab-btn.is-active { font-size: 1.5rem; }
}

/* CTA (Get in touch) — used on Products page */
.cta-section {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.cta-section p { font-size: 1.15rem; opacity: .92; margin-bottom: 2em; }
.cta-section .btn { border-color: var(--white); }

/* ============ ABOUT ============ */
.about-hero {
  background: var(--blue);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.about-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.5rem); }
.about-hero p { color: var(--white); opacity: .92; max-width: 42ch; }
.about-hero-decor {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.about-hero-decor img { width: 100%; height: auto; }
@media (max-width: 760px) {
  .about-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .about-hero-decor { max-width: 280px; order: -1; }
}

.history { padding: 90px 0 110px; }
.history > .container > h2 {
  color: var(--blue);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 60px;
}

.timeline { display: flex; flex-direction: column; gap: 56px; }
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
}
.timeline-item.reverse .timeline-media { order: 2; }
.timeline-item.reverse .timeline-text { order: 1; }
.timeline-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
}
.timeline-media img {
  width: 100%;
  height: auto;
}
.timeline-text .year {
  display: block;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.timeline-text p { color: var(--navy); max-width: 46ch; }

@media (max-width: 760px) {
  .timeline-item, .timeline-item.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .timeline-item.reverse .timeline-media,
  .timeline-item.reverse .timeline-text,
  .timeline-item .timeline-media,
  .timeline-item .timeline-text { order: initial; }
  .timeline-text p { margin-left: auto; margin-right: auto; }
}

/* ============ CONTACT ============ */
.contact { padding: 80px 0 70px; background: var(--cream); }
.contact .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
.contact h1 { color: var(--blue); font-size: clamp(2.2rem, 5vw, 3rem); }
.contact-sub { color: var(--blue); font-size: 1.2rem; margin-bottom: 2em; }
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--blue);
}
.contact-details li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.contact-details li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.contact-details a { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 26px; }
.contact-form label {
  display: block;
  color: var(--blue);
  font-weight: 500;
  font-size: 1.05rem;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-bottom: 2px solid var(--blue);
  background: transparent;
  padding: 6px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
}
.contact-form textarea { resize: vertical; min-height: 60px; }
.contact-form .btn { align-self: flex-end; margin-top: 10px; }
.form-note { font-size: .85rem; color: var(--blue); opacity: .75; margin-top: -10px; }

@media (max-width: 820px) {
  .contact .two-col { grid-template-columns: 1fr; }
  .contact-form .btn { align-self: flex-start; }
}

.map-section img { width: 100%; height: auto; }
