/* =========================================
   C&I Solutions — Hoja de estilos
   Paleta basada en el logo: azul marino, dorado, teal
   ========================================= */

:root {
  --navy: #1b3a5c;
  --navy-dark: #122943;
  --gold: #c9a227;
  --teal: #1b7a72;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --text: #1f2a37;
  --text-muted: #5b6472;
  --border: #e3e7ec;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 58, 92, 0.08);
  --shadow-hover: 0 16px 40px rgba(27, 58, 92, 0.14);
}

/* ----- Reset básico ----- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy-dark);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Utilidades de sección ----- */
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.eyebrow--center {
  display: block;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 12px;
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ----- Botones ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 58, 92, 0.25);
}

.btn--primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27, 58, 92, 0.3);
}

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

.btn--ghost:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar__brand-ci {
  color: var(--gold);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: var(--navy);
}

.navbar__link--cta {
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.navbar__link--cta:hover {
  background: var(--navy-dark);
  color: #fff;
  transform: translateY(-1px);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, #ffffff 60%);
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo img {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 30px rgba(27, 58, 92, 0.18));
}

/* ===== SERVICIOS ===== */
.services {
  padding: 100px 0;
}

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

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ===== NOSOTROS ===== */
.about {
  padding: 100px 0;
  background: var(--bg-alt);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.stat-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== CONTACTO ===== */
.contact {
  padding: 100px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact__intro p {
  color: var(--text-muted);
  margin-top: 12px;
}

.contact__intro a {
  color: var(--teal);
  font-weight: 600;
}

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-dark);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 122, 114, 0.15);
}

.form-status {
  min-height: 20px;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: #c0392b;
}

/* Campo honeypot: oculto visualmente pero presente en el DOM para bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
}

.footer__inner {
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Animación de aparición al hacer scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    order: 2;
  }

  .hero__logo {
    order: 1;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }

  .navbar__menu.is-open {
    display: flex;
  }

  .navbar__link--cta {
    text-align: center;
  }

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

  .hero {
    padding: 56px 0 40px;
  }

  .services,
  .about,
  .contact {
    padding: 64px 0;
  }
}
