/*
Theme Name:  DesoftGdl
Theme URI:   https://www.desoftgdl.com.mx
Author:      DesoftGdl
Author URI:  https://www.desoftgdl.com.mx
Description: Tema oficial de DesoftGdl — empresa de tecnología en Guadalajara especializada en desarrollo de sistemas, servidores e inteligencia artificial.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desoftgdl
Tags:        one-page, technology, business, custom-colors, custom-logo, responsive-layout
*/

/* ── Reset & Variables ─────────────────────────────────────────────────────── */
:root {
  --navy:      #0A1435;
  --navy2:     #0f1d4a;
  --teal:      #00C8B2;
  --teal2:     #00a893;
  --teal-dim:  rgba(0,200,178,.12);
  --teal-glow: rgba(0,200,178,.25);
  --white:     #ffffff;
  --gray:      #8899aa;
  --light:     #f0f4f8;
  --shadow:    0 8px 40px rgba(10,20,53,.10);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--navy); overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ───────────────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 72px;
  background: rgba(10,20,53,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,200,178,.15);
  transition: box-shadow .3s;
}
#site-nav .nav-logo { height: 42px; width: auto; }
#site-nav ul { list-style: none; display: flex; gap: 2rem; }
#site-nav ul a { color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 500; letter-spacing: .04em; transition: color .2s; }
#site-nav ul a:hover { color: var(--teal); }
.nav-cta { background: var(--teal); color: var(--navy) !important; padding: .45rem 1.2rem; border-radius: 6px; font-weight: 700 !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--teal2) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: all .3s; }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2060 50%, #091530 100%);
  position: relative; overflow: hidden; padding: 100px 6% 60px;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(0,200,178,.08) 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1200px; width: 100%; position: relative; z-index: 1; }
.hero-text h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; line-height: 1.12; color: var(--white); margin-bottom: 1.25rem; }
.hero-text h1 span { color: var(--teal); }
.hero-text p { color: rgba(255,255,255,.65); font-size: 1.05rem; line-height: 1.7; max-width: 480px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge { position: absolute; bottom: 28px; right: 10px; background: rgba(0,200,178,.12); border: 1px solid rgba(0,200,178,.3); border-radius: 10px; padding: .6rem 1rem; color: var(--teal); font-size: .78rem; font-weight: 600; letter-spacing: .06em; font-family: 'JetBrains Mono', monospace; }

/* ── BOTONES ───────────────────────────────────────────────────────────────── */
.btn-primary { background: var(--teal); color: var(--navy); padding: .8rem 2rem; border-radius: 8px; font-weight: 700; font-size: .95rem; transition: all .2s; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(0,200,178,.35); display: inline-block; }
.btn-primary:hover { background: var(--teal2); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,200,178,.45); color: var(--navy); }
.btn-secondary { border: 1.5px solid rgba(0,200,178,.5); color: var(--teal); padding: .8rem 2rem; border-radius: 8px; font-weight: 600; font-size: .95rem; transition: all .2s; background: transparent; cursor: pointer; display: inline-block; }
.btn-secondary:hover { background: var(--teal-dim); border-color: var(--teal); color: var(--teal); }

/* ── HERO VISUAL ───────────────────────────────────────────────────────────── */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hex-bg { width: 420px; height: 420px; max-width: 90vw; background: radial-gradient(circle, rgba(0,200,178,.06) 0%, transparent 70%); border: 1px solid rgba(0,200,178,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; animation: pulseRing 4s ease-in-out infinite; }
.hex-bg::before { content: ''; position: absolute; inset: 30px; border: 1px solid rgba(0,200,178,.08); border-radius: 50%; animation: pulseRing 4s ease-in-out infinite .5s; }
.hero-icon { width: 220px; height: 220px; filter: drop-shadow(0 0 40px rgba(0,200,178,.3)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulseRing { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }

/* ── SECTIONS ──────────────────────────────────────────────────────────────── */
section { padding: 90px 6%; }
.section-label { display: inline-block; background: var(--teal-dim); color: var(--teal); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1rem; border: 1px solid rgba(0,200,178,.25); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: .75rem; line-height: 1.2; }
.section-title span { color: var(--teal); }
.section-sub { color: var(--gray); font-size: 1rem; line-height: 1.7; max-width: 560px; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-sub { margin: 0 auto; }

/* ── SERVICIOS ─────────────────────────────────────────────────────────────── */
#servicios { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.service-card { background: #fff; border-radius: 16px; padding: 2rem; border: 1px solid rgba(10,20,53,.07); box-shadow: var(--shadow); transition: all .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 60px rgba(10,20,53,.14); border-color: rgba(0,200,178,.3); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--teal-dim); border: 1px solid rgba(0,200,178,.25); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; transition: all .3s; }
.service-card:hover .service-icon { background: var(--teal); transform: scale(1.08); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.service-card p { color: var(--gray); font-size: .9rem; line-height: 1.65; }

/* ── NOSOTROS ──────────────────────────────────────────────────────────────── */
#nosotros { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.why-visual { background: linear-gradient(135deg, var(--navy) 0%, #0d2060 100%); border-radius: 20px; padding: 3rem; display: flex; flex-direction: column; gap: 1.5rem; position: relative; overflow: hidden; }
.why-visual::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(0,200,178,.15) 0%, transparent 70%); }
.stat-item { position: relative; z-index: 1; }
.stat-num { font-size: 2.8rem; font-weight: 800; color: var(--teal); line-height: 1; font-family: 'JetBrains Mono', monospace; }
.stat-desc { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: .2rem; }
.why-list { display: flex; flex-direction: column; gap: 1.2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check { min-width: 28px; height: 28px; border-radius: 50%; background: var(--teal-dim); border: 1.5px solid var(--teal); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: .8rem; margin-top: .1rem; }
.why-item h4 { font-size: .98rem; font-weight: 700; margin-bottom: .2rem; color: var(--navy); }
.why-item p { font-size: .88rem; color: var(--gray); line-height: 1.55; }

/* ── CONTACTO ──────────────────────────────────────────────────────────────── */
#contacto { background: var(--light); }
.contact-form-wrap { max-width: 760px; margin: 0 auto; }
.contact-form { background: white; border-radius: 16px; padding: 2.4rem; border: 1px solid rgba(10,20,53,.07); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--navy); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; letter-spacing: .03em; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .75rem 1rem; border-radius: 8px; border: 1.5px solid #dde3ee; font-size: .9rem; font-family: 'Inter', sans-serif; color: var(--navy); transition: border-color .2s; outline: none; background: #fff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
#site-footer { background: var(--navy); color: rgba(255,255,255,.55); padding: 3rem 6% 2rem; border-top: 1px solid rgba(0,200,178,.15); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { height: 50px; width: auto; opacity: .9; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .8rem; }
.footer-bottom .teal { color: var(--teal); }

/* ── ANIMATIONS ────────────────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hex-bg { width: 300px; height: 300px; }
  .hero-icon { width: 160px; height: 160px; }
  #site-nav ul { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
