/* =========================================================
   WeConnect · Hoja de estilos compartida
   ========================================================= */

/* ===== VARIABLES ===== */
:root {
  --primary: #0a7cff;
  --primary-dark: #0560c9;
  --accent: #00c2a8;
  --dark: #0c1b33;
  --dark-2: #13294b;
  --gray: #6b7a90;
  --light: #f4f7fb;
  --line: #e1e8f2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(12, 27, 51, 0.10);
  --shadow-sm: 0 4px 14px rgba(12, 27, 51, 0.08);
  --max: 1180px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
  padding-top: var(--header-h);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 90%; max-width: var(--max); margin: 0 auto; }
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }
.text-center { text-align: center; }

/* ===== LOGO ===== */
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 42px; width: auto; display: block; }
.footer .logo-img { height: 46px; }
/* Versión blanca para fondos oscuros (footer) */
.logo-light { filter: brightness(0) invert(1); }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
  z-index: 1000; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.07); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.nav-list { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-weight: 500; font-size: .94rem; color: var(--dark);
  position: relative; padding: 6px 0; transition: color .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 2px; background: var(--primary); border-radius: 2px;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle i { font-size: .65rem; transition: transform .25s; }
.dropdown:hover .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 130%; left: 0; background: var(--white);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; min-width: 250px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; font-size: .9rem; transition: background .2s, color .2s; }
.dropdown-menu a:hover { background: var(--light); color: var(--primary); }
.dropdown-menu a i { color: var(--primary); width: 18px; text-align: center; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--dark); cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 28px;
  border-radius: 40px; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; font-family: inherit;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(10,124,255,.30); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }

/* ===== PAGE HERO (subpáginas) ===== */
.page-hero {
  background: linear-gradient(120deg, var(--dark), var(--primary-dark));
  color: var(--white); padding: 70px 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,168,.35), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .85rem; opacity: .8; margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; opacity: .9; max-width: 640px; }

/* ===== HERO HOME ===== */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(120deg, #0c1b33 0%, #0560c9 100%);
  color: var(--white);
}
.hero-bg { position: absolute; inset: 0; opacity: .22; object-fit: cover; width: 100%; height: 100%; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 18px; border-radius: 30px; font-size: .85rem; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.hero-text { font-size: 1.12rem; opacity: .92; margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { display: grid; place-items: center; }

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.section-pretitle { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 700; margin: 8px 0 14px; }
.bg-dark .section-title { color: var(--white); }
.section-subtitle { color: var(--gray); font-size: 1.05rem; }
.bg-dark .section-subtitle { color: rgba(255,255,255,.72); }

/* ===== CARDS (servicios) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 26px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-icon {
  width: 66px; height: 66px; margin-bottom: 20px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.6rem; color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: .95rem; flex: 1; }
.card .card-link { margin-top: 18px; color: var(--primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link i { transition: transform .2s; }
.card:hover .card-link i { transform: translateX(4px); }

/* ===== SPLIT (texto + imagen) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-content .section-title { text-align: left; }
.split-content > p { color: var(--gray); margin-bottom: 20px; }
.bg-dark .split-content > p { color: rgba(255,255,255,.75); }

/* ===== FEATURE LIST ===== */
.feature-list li { margin-bottom: 12px; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; }
.feature-list i { color: var(--accent); margin-top: 5px; }

/* ===== MÓDULOS / APP GRID ===== */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.module {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s;
}
.module:hover { transform: translateY(-6px); }
.module .module-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; color: var(--primary);
  background: rgba(10,124,255,.10);
}
.module h4 { font-size: 1.05rem; margin-bottom: 8px; }
.module p { color: var(--gray); font-size: .9rem; }

/* ===== STORE BUTTONS ===== */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.store-btn { display: flex; align-items: center; gap: 12px; background: var(--dark); color: var(--white); padding: 11px 22px; border-radius: 12px; transition: background .2s; }
.store-btn:hover { background: var(--dark-2); }
.store-btn i { font-size: 1.7rem; }
.store-btn span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.1; }
.store-btn small { font-weight: 400; font-size: .68rem; opacity: .8; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat-num { font-size: 2.7rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; }
.bg-dark .stat-num { color: var(--accent); }
.stat p { color: var(--gray); font-size: .92rem; margin-top: 6px; }
.bg-dark .stat p { color: rgba(255,255,255,.72); }

/* ===== SHOP / PRODUCTOS ===== */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; position: relative;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent);
  color: var(--white); font-size: .72rem; font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.product-badge.star { background: #ff9f1c; }
.product-img { aspect-ratio: 4 / 3; background: var(--light); display: grid; place-items: center; padding: 22px; }
.product-img svg { width: 100%; height: 100%; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h4 { font-size: 1rem; line-height: 1.4; margin-bottom: 10px; flex: 1; }
.product-price { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.product .btn { width: 100%; justify-content: center; }

/* ===== INFO / QUOTE ===== */
.quote-box {
  max-width: 760px; margin: 0 auto; text-align: center; font-size: 1.5rem;
  font-style: italic; font-weight: 300; line-height: 1.5;
}
.quote-box cite { display: block; margin-top: 18px; font-size: 1rem; font-style: normal; font-weight: 600; color: var(--primary); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value { padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.value i { font-size: 1.8rem; color: var(--primary); margin-bottom: 14px; }
.value h4 { margin-bottom: 8px; }
.value p { color: var(--gray); font-size: .94rem; }

/* ===== FORMS ===== */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; resize: vertical; transition: border .2s, box-shadow .2s; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,124,255,.15);
}
.form-status { font-size: .92rem; font-weight: 500; color: var(--accent); min-height: 20px; }

/* ===== CONTACT INFO ===== */
.contact-details li { margin-bottom: 16px; display: flex; gap: 14px; align-items: flex-start; }
.contact-details i { color: var(--primary); width: 22px; margin-top: 4px; font-size: 1.1rem; }
.contact-details strong { display: block; }
.contact-details span { color: var(--gray); font-size: .92rem; }

.social { display: flex; gap: 12px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--light); color: var(--dark); transition: all .25s; }
.social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.bg-dark .social a { background: rgba(255,255,255,.10); color: var(--white); }
.bg-dark .social a:hover { background: var(--primary); }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(120deg, var(--primary), var(--accent)); color: var(--white); border-radius: 20px; padding: 50px; text-align: center; }
.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.cta-banner p { opacity: .92; margin-bottom: 26px; max-width: 560px; margin-inline: auto; }

/* ===== FOOTER ===== */
.footer { background: #08152b; color: rgba(255,255,255,.72); padding: 58px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .logo-we { color: var(--white); }
.footer-text { margin-top: 14px; font-size: .92rem; max-width: 290px; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.02rem; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .92rem; transition: color .2s; }
.footer ul li a:hover { color: var(--primary); }
.footer-contact li { font-size: .9rem; margin-bottom: 8px; }
.footer-contact i { color: var(--primary); width: 18px; }
.footer-bottom { margin-top: 46px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; }

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

/* Tablet horizontal / pantallas medianas */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Tablet vertical: aquí aparece el menú hamburguesa */
@media (max-width: 960px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media, .hero-art { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero { min-height: auto; padding: 64px 0; }
  .hero-text { margin-inline: auto; }
  .hero-art img { width: min(340px, 70%); }

  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0; }

  .nav-list {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 330px; height: 100vh;
    background: var(--white); box-shadow: -10px 0 30px rgba(0,0,0,.15);
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 100px 28px 40px; overflow-y: auto; transition: right .35s ease;
  }
  .nav-list.open { right: 0; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 6px 0 0 14px; min-width: auto; }
  .dropdown:hover .dropdown-toggle i { transform: none; }
  .nav-toggle { display: block; z-index: 1100; }
  .cta-banner { padding: 38px 26px; }
}

/* Móviles */
@media (max-width: 640px) {
  .cards, .value-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .section { padding: 48px 0; }
  .page-hero { padding: 46px 0; }
  .page-hero p { font-size: 1rem; }

  .form-card { padding: 24px 20px; }
  .quote-box { font-size: 1.18rem; }
  .cta-banner { padding: 30px 20px; border-radius: 16px; }

  /* Botones y tiendas a todo el ancho para mejor toque */
  .hero-buttons { width: 100%; }
  .hero-buttons .btn,
  .store-buttons .store-btn { width: 100%; justify-content: center; }
  .store-buttons { width: 100%; }
}

/* Teléfonos pequeños */
@media (max-width: 400px) {
  .container { width: 92%; }
  .stats { grid-template-columns: 1fr; }
  .btn { padding: 12px 22px; font-size: .9rem; }
  .hero-tag { font-size: .78rem; padding: 6px 14px; }
  .logo-img { height: 36px; }
  .form-card { padding: 20px 16px; }
}

/* ===== ANIMACIÓN REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
