/* ===============================
   GLOBAL STYLES
================================ */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f9fc;
  color: #111;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   HEADER CORPORATIVO PRO
================================ */

.site-header {
  background: white;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #0a0f1f;
}

.logo span {
  color: #007cf0;
}

.main-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.btn-cta {
  background: #007cf0;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
}

/* ===============================
   RESPONSIVE MENU
================================ */

.menu-toggle {
  display: none;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 15px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.12);
  }
}

/* ===============================
   HERO BINARIO TECH
================================ */

.hero-binary {
  position: relative;
  height: 90vh;
  background: #050b1e;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#binary-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 850px;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: #007cf0;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

/* Responsive Hero */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 42px;
  }
}

/* ===============================
   SECTION TITLE
================================ */

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #0a0f1f;
}

/* ===============================
   SERVICIOS PREMIUM
================================ */

.services-pro {
  padding: 90px 0;
  background: white;
}

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

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   PORTFOLIO PREMIUM
================================ */

.portfolio-pro {
  padding: 90px 0;
  background: #f7f9fc;
}

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

.portfolio-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-6px);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.portfolio-link {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   WHY CHOOSE US + CTA
================================ */

.why-pro {
  padding: 90px 0 140px;
  background: white;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.why-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.why-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-box {
  text-align: center;
  padding: 70px 20px;
  border-radius: 20px;
  background: linear-gradient(to right, #007cf0, #00c6ff);
  color: white;
}

.cta-box h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.cta-box p {
  margin-bottom: 25px;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   FOOTER PREMIUM
================================ */

.footer-pro {
  background: #0a0f1f;
  color: white;
  padding: 80px 0 30px;
}

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

.footer-col p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col a {
  color: #00c6ff;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* ===============================
   CONTACT FORM CTA (CF7)
   No altera tipografía ni estructura
================================ */

.cta-box .wpcf7 {
  max-width: 520px;
  margin: 25px auto 0;
}

.cta-box .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-box input,
.cta-box textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-family: inherit;
}

.cta-box textarea {
  resize: none;
  min-height: 120px;
}

.cta-box input:focus,
.cta-box textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

.cta-box .wpcf7-submit {
  cursor: pointer;
  border: none;
}
/* ===============================
   CTA BUTTON CONTRASTE MEJORADO
================================ */

.cta-box .btn-primary,
.cta-box .wpcf7-submit {
  background: white;
  color: #007cf0;
  font-weight: 700;
  border-radius: 14px;
  transition: 0.3s ease;
}

.cta-box .btn-primary:hover,
.cta-box .wpcf7-submit:hover {
  background: #0a0f1f;
  color: white;
}