/* ===============================
   SISTEC GT - style.css (LIMPIO)
   Versión unificada sin duplicados
   =============================== */

:root {
  --primary: #007acc;
  --primary-dark: #005b99;
  --bg: #eaf6ff;
  --text: #333;
  --light: #ffffff;
  --accent: #00b894;

  --radius-lg: 12px;
  --shadow-soft: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 18px rgba(0,0,0,0.12);
}

/* Reset base */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

/* ===============================
   NAVBAR (DESKTOP + MÓVIL)
   =============================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 122, 204, 0.95);
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Logo */
.navbar-logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.navbar-logo span {
  font-weight: 300;
  font-size: 0.85rem;
  display: block;
}

/* Links desktop */
.navbar-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  position: relative;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.2s;
}

.navbar-links a:hover::after { width: 100%; }

/* Botón hamburguesa (oculto en desktop) */
.navbar-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;

  /* clave para que salgan 3 líneas perfectas */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animación a "X" */
.navbar.is-open .navbar-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar.is-open .navbar-toggle span:nth-child(2) {
  opacity: 0;
}
.navbar.is-open .navbar-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Accesibilidad focus */
.navbar-links a:focus-visible,
.navbar-toggle:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.contact-form button:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ===============================
   HERO
   =============================== */

.hero {
  background: linear-gradient(135deg, #007acc, #00b894);
  color: white;
  padding: 60px 20px 70px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero-text { max-width: 520px; }

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.hero-text h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
}

.hero-text p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 48ch;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-outline {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: #ffffff;
  color: var(--primary-dark);
  font-weight: 600;
}
.btn-primary:hover { background-color: #f0f0f0; }

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}
.btn-outline:hover { background-color: rgba(255,255,255,0.12); }

.hero-highlight {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.hero-highlight div {
  padding: 8px 12px;
  border-radius: 8px;
  background-color: rgba(0,0,0,0.16);
}

.hero-image {
  max-width: 360px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.hero-image-inner {
  background-color: white;
  border-radius: 12px;
  padding: 18px;
  color: #333;
  font-size: 0.9rem;
}

.hero-image-inner h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  background-color: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-list {
  padding-left: 18px;
  margin: 10px 0 0;
  font-size: 0.85rem;
}

/* ===============================
   LAYOUT GENERAL
   =============================== */

.section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.section-title p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* ===============================
   SOBRE NOSOTROS
   =============================== */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.about-box {
  background-color: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.about-list li::before {
  content: "✔ ";
  color: var(--accent);
  font-weight: bold;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.8rem;
}

.badge {
  background-color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

/* ===============================
   SERVICIOS
   =============================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.service-card p {
  margin: 0 0 10px;
  color: #555;
}

.service-tags {
  font-size: 0.8rem;
  color: #777;
}

/* ===============================
   CATALOGO
   =============================== */

.catalog-section-subtitle {
  margin: 40px 0 10px;
  font-size: 1.7rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
}

.catalog-section-subtitle small {
  font-size: 0.8rem;
  color: #777;
  font-weight: 400;
}

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

.card-content h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.card-content p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #555;
}

.tecnologias {
  font-size: 0.8rem;
  color: #777;
}

.btn-demo {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--primary);
  color: white;
  padding: 7px 14px;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.85rem;
  align-self: flex-start;
}

.btn-demo:hover { background-color: var(--primary-dark); }


/* Imagen PRO para portadas de proyectos */
.card img.img-proyecto{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
}


/* ===============================
   TESTIMONIOS
   =============================== */

.testimonios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.testimonio {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.testimonio strong {
  display: block;
  margin-top: 8px;
  color: var(--primary-dark);
}

/* ===============================
   CLIENT LOGOS
   =============================== */

.client-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.client-pill{
  background:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-size:.9rem;
  color:#0b3b66;
  font-weight:600;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}



/* ===============================
   CONTACTO
   =============================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.contact-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.contact-card p { margin: 0 0 8px; }

.contact-data p span { font-weight: 600; }

.contact-note { margin-top: 10px; }

.contact-form label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  margin-top: 4px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form button {
  margin-top: 12px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.contact-form button:hover { background-color: var(--primary-dark); }

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #777;
}

/* Alerts del formulario */
.form-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.form-alert.success {
  background: #e9fbf4;
  border-color: #b7f0db;
  color: #0b6b47;
}
.form-alert.error {
  background: #fff1f1;
  border-color: #f7c7c7;
  color: #8a1c1c;
}

/* Honeypot invisible */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Inputs con error marcados por JS */
.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.12);
}

/* ===============================
   FOOTER
   =============================== */

footer {
  background-color: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
  margin-top: 30px;
}

footer span { opacity: 0.85; }

/* ===============================
   BOTÓN WHATSAPP FLOTANTE
   =============================== */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background-color: #25D366;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 150;
}

.whatsapp-float:hover { background-color: #1ebe57; }

/* ===============================
   RESPONSIVE GENERAL
   =============================== */

@media (max-width: 900px) {
  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero { text-align: center; }

  .hero-buttons { justify-content: center; }

  .hero-highlight { justify-content: center; }

  .hero-image { max-width: 320px; }
}

@media (max-width: 600px) {
  .hero-text h1 { font-size: 1.7rem; }
}

/* ===============================
   MENÚ MÓVIL (DROPDOWN LIMPIO)
   ÚNICO bloque sin duplicados
   =============================== */

@media (max-width: 900px) {

  .navbar {
    padding: 10px 16px;
  }

  .navbar-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Links se vuelven panel desplegable */
  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: rgba(0, 122, 204, 0.98);
    padding: 14px 18px;

    display: none;
    flex-direction: column;
    gap: 10px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  }

  .navbar-links a { padding: 8px 6px; }

  .navbar.is-open .navbar-links {
    display: flex;
  }
}

@media (max-width: 600px) {
  .navbar { padding: 10px 14px; }
}
