/* =====================================================
   VARIABLES (DARK-FIRST / HERO DARK PRIMARIO)
   ===================================================== */
:root{
  /* Branding (basado en Hero Dark) */
  --azul-principal: #071225;   /* primario real (hero dark) */
  --azul-secundario: #0b1a33;  /* variante profunda */
  --celeste: #9fdcff;         /* acento (links / hover / foco) */
  --celeste-claro: #0b1220;   /* fondo general */

  /* Dark-first UI */
  --bg: #0b1220;
  --surface: #0f1a2d;
  --surface-2: #0c1627;
  --text: #eaf2f6;
  --muted: rgba(255,255,255,.75);
  --border: rgba(152,191,208,.22);

  --shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* =====================================================
   RESET
   ===================================================== */
*{ margin:0; padding:0; box-sizing:border-box; }
*{ scroll-behavior: smooth; }

body{
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

a{ text-decoration:none; color:inherit; }

/* =====================================================
   CONTAINER
   ===================================================== */
.container{
  width: 92%;
  max-width: 1250px;
  margin: auto;
}

/* =====================================================
   HEADER
   ===================================================== */
.header{
  background: var(--surface);
  border-bottom: 3px solid var(--celeste);
}

.header-content{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 16px;
  padding: 14px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-icon{
  width:42px;
  height:42px;
  background: var(--celeste);
  color:#071225;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  border-radius:8px;
}

.logo-text h1{ font-size:18px; }
.logo-text span{
  font-size:12px;
  color: rgba(255,255,255,.70);
}

.nav a{
  margin-left:20px;
  font-weight:bold;
  color: var(--muted);
}
.nav a:hover{ color: var(--celeste); }

/* =====================================================
   BOTONES
   ===================================================== */
.btn{
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4fc3f7, #1976d2);
  color: #fff;
  display:inline-block;
  border: none;
  cursor:pointer;
}

/* Si seguís usando .btn-primary en tu HTML */
.btn-primary{
  background: linear-gradient(135deg, #4fc3f7, #1976d2);
}

/* Toggle (si lo tenés en HTML, queda con look dark) */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor:pointer;
  font-weight:bold;
}

/* ===== Micro animaciones suaves ===== */
.btn, .card, .hero-box, .theme-toggle, .social a, .wa-float{
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
}

/* =====================================================
   HERO – SIEMPRE DARK (PRIMARIO)
   ===================================================== */
.hero{
  position: relative;
  padding: 90px 0;
  min-height: 78vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#071225;
}

/* Overlay dark fijo */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(152,191,208,.18), transparent 60%),
    linear-gradient(90deg,
      rgba(7,18,37,.95) 0%,
      rgba(7,18,37,.90) 55%,
      rgba(7,18,37,.78) 100%);
  z-index:0;
}

/* Logo background */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("./techworld-removebg-preview.png");
  background-repeat:no-repeat;
  background-position: left 18% center;
  background-size: clamp(500px, 45vw, 760px);
  opacity:.28;
  z-index:0;
}

/* =====================================================
   HERO CONTENT
   ===================================================== */
.hero-content{
  position: relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items:center;
}

.hero-text{
  max-width: 620px;
}

.hero-text h2{
  font-size: 50px;
  line-height:1.05;
  margin-bottom: 14px;
  color:#fff;
}

.hero-text p{
  margin-bottom: 18px;
  max-width: 520px;
  color: rgba(255,255,255,.80);
}

/* =====================================================
   FORM HERO (DARK-FRIENDLY)
   ===================================================== */
.hero-box{
  background: rgba(15,26,45,.76);
  padding: 28px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}

.hero-box h3{
  margin-bottom:14px;
  color: #eaf2f6;
}

.hero-box input,
.hero-box textarea{
  width:100%;
  padding:11px 12px;
  margin-bottom:10px;
  border-radius:8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.22);
  color: #ffffff;
}

.hero-box input::placeholder,
.hero-box textarea::placeholder{
  color: rgba(255,255,255,.78);
}

.hero-box input:focus,
.hero-box textarea:focus{
  outline: none;
  border-color: rgba(152,191,208,.65);
  box-shadow: 0 0 0 3px rgba(152,191,208,.18);
}

.form-note{
  font-size:12px;
  color: rgba(255,255,255,.82);
}

/* Validación visual del formulario */
.hero-box input.invalid,
.hero-box textarea.invalid{
  border-color: rgba(255, 80, 80, .85) !important;
  box-shadow: 0 0 0 3px rgba(255, 80, 80, .14);
}
.form-status{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* =====================================================
   SECCIONES
   ===================================================== */
.section{ padding: 60px 0; }

.section.light{
  background: var(--surface);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section-title{
  text-align:center;
  font-size: 30px;
  margin-bottom:30px;
  color: var(--celeste);
}

.center-text{
  text-align:center;
  max-width:700px;
  margin:auto;
  color: var(--muted);
}

/* =====================================================
   SERVICIOS
   ===================================================== */
.services{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:20px;
}

.card{
  background: var(--surface);
  padding:20px;
  border-radius:12px;
  border:1px solid var(--border);
  border-top:4px solid rgba(79,195,247,.65);
  box-shadow:0 8px 18px rgba(0,0,0,.22);
}

.card p{ color: var(--muted); }

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0,0,0,.28);
}

/* =====================================================
   FEATURES
   ===================================================== */
.features{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:15px;
  margin-top:30px;
  text-align:center;
}

.features > div{
  background: var(--surface-2);
  border:1px solid var(--border);
  padding:14px;
  border-radius:10px;
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contact-info{
  text-align:center;
  display:grid;
  gap:10px;
  font-weight:bold;
  color: var(--muted);
}

/* =====================================================
   STATS
   ===================================================== */
.stats{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-number{
  font-size: 26px;
  font-weight: 800;
  color: #a7d7ea;
}

.stat-label{
  margin-top: 6px;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

/* =====================================================
   FOOTER (COMPLETO)
   ===================================================== */
.footer{
  background: #071225;
  color: rgba(255,255,255,.86);
  padding: 50px 0 0;
  margin-top: 40px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 26px;
}

.footer-col h4{
  color: #fff;
  margin-bottom: 10px;
}

.footer-col p{
  margin-bottom: 8px;
  color: rgba(255,255,255,.78);
}

.footer-col a{
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.78);
}

.footer-col a:hover{
  color: #a7d7ea;
}

.social{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social a{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.social a:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.footer-bottom{
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align:center;
  padding: 14px 0;
  color: rgba(255,255,255,.70);
}

/* =====================================================
   WHATSAPP FLOTANTE
   ===================================================== */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #07310f;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(0,0,0,.12);
}

.wa-icon{
  font-size: 18px;
  line-height: 1;
}

.wa-text{
  font-size: 14px;
}

.wa-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0,0,0,.40);
}

/* En pantallas pequeñas, solo icono */
@media (max-width: 520px){
  .wa-text{ display:none; }
  .wa-float{ padding: 12px; }
}

/* =====================================================
   FORM (labels flotantes) – versión dark
   ===================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field { position: relative; }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease, background 0.2s ease;
}

.field textarea { resize: none; }

.field input:focus,
.field textarea:focus {
  border-color: #5cc8ff;
  background: rgba(255, 255, 255, 0.1);
}

/* Labels flotantes */
.field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease;
  background: transparent;
}

.field textarea + label {
  top: 18px;
  transform: none;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -7px;
  font-size: 12px;
  background: #0b1a33;
  padding: 0 6px;
  border-radius: 6px;
  color: #9fdcff;
}

/* BOTÓN ENVIAR */
.btn-submit {
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #4fc3f7, #1976d2);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 195, 247, 0.35);
}

.btn-submit:active { transform: scale(0.98); }

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loader del botón */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loader { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-msg {
  font-size: 13px;
  margin-top: 6px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px){
  .hero-content{
    grid-template-columns: 1fr;
    gap:28px;
  }

  .hero-text{
    text-align:center;
    margin:auto;
  }

  .hero-text h2{ font-size:40px; }

  .hero{
    padding-top:320px;
  }

  .hero::after{
    background-position:center 30px;
    background-size:520px auto;
  }

  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }

  .stats{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .services{ grid-template-columns:1fr; }
  .features{ grid-template-columns:1fr; }
  .nav{ display:none; }
}
