/* ============================================
   SIMTIC CONSULTING — style.css
   CSS compartido para todas las páginas
============================================ */

*, *::before, *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
}

:root {
     --navy: #0a1628;
     --navy-mid: #112240;
     --blue: #0057ff;
     --blue-light: #4d8aff;
     --accent: #00d4ff;
     --white: #ffffff;
     --gray: #8892a4;
     --card-bg: #111e35;
}

html { scroll-behavior: smooth; }

body {
     font-family: 'Inter', sans-serif;
     background: var(--navy);
     color: var(--white);
     line-height: 1.7;
     overflow-x: hidden;
     font-size: 16px;
     -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAV
============================================ */
nav {
     position: fixed;
     top: 0; left: 0; right: 0;
     z-index: 100;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0.3rem 5%;
     background: #ffffff;
     border-bottom: 1px solid #e8edf5;
     box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-logo {
     text-decoration: none;
     display: flex;
     align-items: center;
     gap: 0.6rem;
}

.nav-logo img { height: 60px; display: block; }

.nav-links {
     display: flex;
     gap: 2rem;
     list-style: none;
     align-items: center;
}

.nav-links a {
     color: #3a4a5c;
     text-decoration: none;
     font-size: 0.875rem;
     font-weight: 500;
     letter-spacing: 0.01em;
     transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
     background: var(--blue);
     color: #ffffff !important;
     padding: 0.55rem 1.4rem;
     border-radius: 6px;
     font-weight: 600 !important;
     transition: background 0.2s !important;
}

.nav-cta:hover {
     background: var(--blue-light) !important;
     color: #ffffff !important;
}

/* ============================================
   HAMBURGER BUTTON
============================================ */
.nav-toggle {
     display: none;
     flex-direction: column;
     gap: 5px;
     background: none;
     border: none;
     cursor: pointer;
     padding: 0.5rem;
     z-index: 200;
}

.nav-toggle span {
     display: block;
     width: 25px;
     height: 2px;
     background: #3a4a5c;
     transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO (página inicio)
============================================ */
.hero {
     min-height: 100vh;
     display: flex;
     align-items: center;
     padding: 8rem 5% 5rem;
     position: relative;
     overflow: hidden;
}

.hero::before {
     content: '';
     position: absolute;
     top: -20%; right: -10%;
     width: 700px; height: 700px;
     background: radial-gradient(circle, rgba(0,87,255,0.18) 0%, transparent 70%);
     pointer-events: none;
}

.hero::after {
     content: '';
     position: absolute;
     bottom: 0; left: 0; right: 0;
     height: 1px;
     background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}

.hero-content { max-width: 700px; position: relative; z-index: 1; }

.hero-badge {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     background: rgba(0,87,255,0.12);
     border: 1px solid rgba(0,87,255,0.3);
     color: var(--accent);
     padding: 0.4rem 1rem;
     border-radius: 100px;
     font-size: 0.75rem;
     font-weight: 600;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     margin-bottom: 2rem;
     animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
     content: '●';
     font-size: 0.5rem;
     animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
     font-family: 'Inter', sans-serif;
     font-size: clamp(2.2rem, 5vw, 3.6rem);
     font-weight: 800;
     line-height: 1.1;
     letter-spacing: -0.02em;
     margin-bottom: 1.5rem;
     animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 span { color: var(--blue-light); }

.hero p {
     font-size: 1.1rem;
     font-weight: 400;
     color: var(--gray);
     max-width: 520px;
     margin-bottom: 2.5rem;
     animation: fadeUp 0.6s 0.2s ease both;
     line-height: 1.7;
}

.hero-buttons {
     display: flex;
     gap: 1rem;
     flex-wrap: wrap;
     animation: fadeUp 0.6s 0.3s ease both;
}

@keyframes fadeUp {
     from { opacity: 0; transform: translateY(20px); }
     to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PAGE HERO (subpáginas)
============================================ */
.page-hero {
     padding: 8rem 5% 4rem;
     background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
     border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-hero h1 {
     font-family: 'Inter', sans-serif;
     font-size: clamp(2rem, 4vw, 3rem);
     font-weight: 800;
     letter-spacing: -0.02em;
     margin-bottom: 1rem;
}

.page-hero p {
     color: var(--gray);
     font-size: 1.1rem;
     max-width: 560px;
     line-height: 1.7;
}

/* ============================================
   STATS
============================================ */
.stats {
     display: flex;
     gap: 3rem;
     padding: 3rem 5%;
     border-bottom: 1px solid rgba(255,255,255,0.06);
     flex-wrap: wrap;
}

.stat h3 {
     font-family: 'Inter', sans-serif;
     font-size: 2.5rem;
     font-weight: 800;
     letter-spacing: -0.03em;
     color: var(--blue-light);
}

.stat p { color: var(--gray); font-size: 0.9rem; }

/* ============================================
   BOTONES
============================================ */
.btn-primary {
     background: var(--blue);
     color: var(--white);
     padding: 0.85rem 2rem;
     border-radius: 8px;
     text-decoration: none;
     font-weight: 600;
     font-size: 0.95rem;
     letter-spacing: 0.01em;
     transition: background 0.2s, transform 0.2s;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
}

.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }

.btn-secondary {
     background: transparent;
     color: var(--white);
     padding: 0.85rem 2rem;
     border-radius: 8px;
     text-decoration: none;
     font-weight: 600;
     font-size: 0.95rem;
     letter-spacing: 0.01em;
     border: 1px solid rgba(255,255,255,0.2);
     transition: border-color 0.2s, transform 0.2s;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
}

.btn-secondary:hover { border-color: var(--blue-light); transform: translateY(-2px); }

.btn-white {
     background: var(--white);
     color: var(--blue);
     padding: 0.9rem 2.2rem;
     border-radius: 8px;
     text-decoration: none;
     font-weight: 700;
     font-size: 1rem;
     display: inline-block;
     transition: transform 0.2s;
     position: relative;
}

.btn-white:hover { transform: translateY(-2px); }

/* ============================================
   MARCAS
============================================ */
.brands {
     padding: 4rem 5%;
     border-top: 1px solid rgba(255,255,255,0.06);
     border-bottom: 1px solid rgba(255,255,255,0.06);
     background: rgba(255,255,255,0.02);
}

.brands-label {
     text-align: center;
     font-size: 0.7rem;
     font-weight: 700;
     letter-spacing: 0.14em;
     text-transform: uppercase;
     color: var(--gray);
     margin-bottom: 2.5rem;
}

.brands-grid {
     display: flex;
     align-items: center;
     justify-content: center;
     flex-wrap: wrap;
     gap: 1.5rem;
}

.brand-item {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 2rem 3rem;
     background: rgba(255,255,255,0.05);
     border: 1px solid rgba(255,255,255,0.1);
     border-radius: 16px;
     min-width: 220px;
     height: 140px;
     transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.brand-item:hover {
     border-color: rgba(0,87,255,0.5);
     background: rgba(0,87,255,0.08);
     transform: translateY(-3px);
}

.brand-item svg,
.brand-item img {
  height: 72px !important;
  width: auto !important;
  max-width: 100%;
}

/* ============================================
   SECCIONES Y SERVICIOS
============================================ */
.section { padding: 5rem 5%; }

.section-label {
     font-size: 0.7rem;
     font-weight: 700;
     letter-spacing: 0.14em;
     text-transform: uppercase;
     color: var(--accent);
     margin-bottom: 1rem;
}

.section-title {
     font-family: 'Inter', sans-serif;
     font-size: clamp(1.8rem, 3vw, 2.6rem);
     font-weight: 700;
     letter-spacing: -0.02em;
     margin-bottom: 1rem;
}

.section-subtitle {
     color: var(--gray);
     max-width: 520px;
     margin-bottom: 3rem;
     font-size: 1rem;
     line-height: 1.7;
}

.services-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1.5rem;
}

.service-card {
     background: var(--card-bg);
     border: 1px solid rgba(255,255,255,0.07);
     border-radius: 14px;
     padding: 2rem;
     transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
     border-color: rgba(0,87,255,0.4);
     transform: translateY(-4px);
}

.service-icon { font-size: 1.8rem; margin-bottom: 1rem; }

.service-card h3 {
     font-family: 'Inter', sans-serif;
     font-size: 1rem;
     font-weight: 700;
     letter-spacing: -0.01em;
     margin-bottom: 0.75rem;
}

.service-card ul { list-style: none; }

.service-card ul li {
     color: var(--gray);
     font-size: 0.875rem;
     padding: 0.3rem 0;
     border-bottom: 1px solid rgba(255,255,255,0.05);
     display: flex;
     align-items: center;
     gap: 0.5rem;
     line-height: 1.6;
}

.service-card ul li::before {
     content: '→';
     color: var(--blue-light);
     font-size: 0.8rem;
}

.service-card ul li:last-child { border-bottom: none; }

/* ============================================
   MID CTA
============================================ */
.mid-cta {
     background: linear-gradient(135deg, var(--navy-mid) 0%, rgba(0,87,255,0.08) 100%);
     border: 1px solid rgba(0,87,255,0.15);
     border-radius: 20px;
     padding: 4rem;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 2rem;
     flex-wrap: wrap;
     margin: 0 5%;
}

.mid-cta-text h2 {
     font-family: 'Inter', sans-serif;
     font-size: 1.7rem;
     font-weight: 700;
     letter-spacing: -0.02em;
     margin-bottom: 0.75rem;
}

.mid-cta-text p { color: var(--gray); max-width: 480px; line-height: 1.7; }

/* ============================================
   CTA FINAL
============================================ */
.cta-section {
     margin: 5rem 5%;
     padding: 4rem;
     background: var(--blue);
     border-radius: 20px;
     text-align: center;
     position: relative;
     overflow: hidden;
}

.cta-section::before {
     content: '';
     position: absolute;
     top: -50%; right: -20%;
     width: 400px; height: 400px;
     background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-section h2 {
     font-family: 'Inter', sans-serif;
     font-size: 2rem;
     font-weight: 700;
     letter-spacing: -0.02em;
     margin-bottom: 1rem;
     position: relative;
}

.cta-section p {
     color: rgba(255,255,255,0.8);
     margin-bottom: 2rem;
     position: relative;
     line-height: 1.7;
}

/* ============================================
   FOOTER
============================================ */
footer {
     padding: 3rem 5% 2rem;
     border-top: 1px solid rgba(255,255,255,0.08);
     display: grid;
     grid-template-columns: 1.5fr 1fr 1fr;
     gap: 3rem;
}

.footer-brand p {
     color: var(--gray);
     font-size: 0.875rem;
     max-width: 280px;
     line-height: 1.7;
}

.footer-col h4 {
     font-family: 'Inter', sans-serif;
     font-size: 0.7rem;
     font-weight: 700;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--gray);
     margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
     color: rgba(255,255,255,0.7);
     text-decoration: none;
     font-size: 0.875rem;
     transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
     padding: 1.5rem 5% 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-top: 1px solid rgba(255,255,255,0.06);
     color: var(--gray);
     font-size: 0.8rem;
     flex-wrap: wrap;
     gap: 0.5rem;
}

/* ============================================
   TABLET (≤1024px)
============================================ */
@media (max-width: 1024px) {
     .services-grid { grid-template-columns: repeat(2, 1fr); }
     footer { grid-template-columns: 1fr 1fr; }
     .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   MÓVIL (≤768px)
============================================ */
@media (max-width: 768px) {
     /* NAV */
  .nav-toggle { display: flex; }
     .nav-links {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: #ffffff;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            z-index: 150;
            list-style: none;
     }
     .nav-links.open { display: flex; }
     .nav-links a { font-size: 1.2rem; color: #3a4a5c; }
     .nav-logo img { height: 52px; }

  /* HERO */
  .hero { padding: 7rem 5% 4rem; text-align: center; min-height: auto; }
     .hero-content { max-width: 100%; }
     .hero-buttons { justify-content: center; }
     .hero p { margin-left: auto; margin-right: auto; }

  /* PAGE HERO */
  .page-hero { padding: 7rem 5% 3rem; }

  /* STATS */
  .stats { gap: 2rem; padding: 2rem 5%; }

  /* SERVICIOS */
  .services-grid { grid-template-columns: 1fr; }
     .section { padding: 3rem 5%; }

  /* BRANDS */
  .brands { padding: 3rem 5%; }
     .brands-grid { gap: 1rem; }
     .brand-item { min-width: 130px; padding: 1rem 1.5rem; height: auto; }

  /* MID CTA */
  .mid-cta { flex-direction: column; text-align: center; padding: 2rem 1.5rem; margin: 0 4%; }
     .mid-cta-text p { max-width: 100%; }

  /* CTA FINAL */
  .cta-section { padding: 2.5rem 1.5rem; margin: 3rem 4%; }

  /* FOOTER */
  footer { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 5% 1.5rem; }
     .footer-brand { grid-column: auto; }
     .footer-brand p { max-width: 100%; }
     .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; padding: 1.5rem 5%; }
}

/* ============================================
   MUY PEQUEÑO (≤380px)
============================================ */
@media (max-width: 380px) {
     .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
     .brand-item { min-width: 100px; padding: 0.8rem 1rem; }
}
