/*
Theme Name: SOIN Consultores
Theme URI: https://soinconsultores.com
Author: SOIN Consultores
Author URI: https://soinconsultores.com
Description: Tema profesional para SOIN Consultores - Soluciones Inteligentes para Negocios
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: soin-consultores
*/

/* =============================================
   VARIABLES Y RESET
============================================= */
:root {
  --navy: #0d1e30;
  --navy-light: #152840;
  --teal: #2bbcbc;
  --teal-dark: #1fa0a0;
  --teal-light: #3dd4d4;
  --white: #ffffff;
  --gray-light: #f4f7fa;
  --gray-mid: #e8edf3;
  --gray-text: #6b7a8d;
  --text-dark: #1a2a3a;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow: 0 8px 32px rgba(13,30,48,0.12);
  --shadow-hover: 0 16px 48px rgba(13,30,48,0.22);
  --radius: 12px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   TIPOGRAFÍA
============================================= */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--gray-text); font-size: 1rem; line-height: 1.8; }

/* =============================================
   NAVEGACIÓN
============================================= */
.soin-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,30,48,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43,188,188,0.15);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0a1822 50%, #0f2538 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(43,188,188,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(43,188,188,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43,188,188,0.12);
  border: 1px solid rgba(43,188,188,0.3);
  color: var(--teal);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}
.hero-title span { color: var(--teal); }
.hero-subtitle {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(43,188,188,0.35);
}
.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(43,188,188,0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}
.btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(43,188,188,0.2);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: center;
  max-width: 340px;
  width: 100%;
}
.hero-logo-card img { width: 220px; margin: 0 auto; }

/* =============================================
   SECCIÓN BASE
============================================= */
.section { padding: 100px 2rem; }
.section-light { background: var(--white); }
.section-gray { background: var(--gray-light); }
.section-dark { background: var(--navy); }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-tag::before {
  content: '— ';
}
.section-title {
  margin-bottom: 1rem;
}
.section-title.white { color: var(--white); }
.section-lead {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 3.5rem;
  color: var(--gray-text);
}
.section-lead.white { color: rgba(255,255,255,0.6); }
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* =============================================
   HISTORIA
============================================= */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.historia-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.85;
}
.historia-visual {
  position: relative;
}
.historia-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.historia-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(43,188,188,0.15) 0%, transparent 70%);
}
.historia-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.historia-card h3 {
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.historia-card p { color: rgba(255,255,255,0.65); }
.historia-years {
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(43,188,188,0.4);
  z-index: 2;
}
.historia-years .num { font-size: 2.2rem; line-height: 1; }
.historia-years .label { font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* =============================================
   MISIÓN & VISIÓN
============================================= */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.mv-icon {
  width: 52px; height: 52px;
  background: rgba(43,188,188,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.mv-card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.mv-card p { font-size: 0.97rem; }

/* =============================================
   VALORES
============================================= */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.valor-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(43,188,188,0.18);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.valor-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.valor-card:hover {
  background: rgba(43,188,188,0.06);
  transform: translateY(-4px);
  border-color: rgba(43,188,188,0.4);
}
.valor-card:hover::after { width: 100%; }
.valor-icon {
  width: 48px; height: 48px;
  background: rgba(43,188,188,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.valor-card h3 { color: var(--teal); margin-bottom: 0.6rem; font-size: 1.05rem; }
.valor-card p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }

/* =============================================
   SERVICIOS
============================================= */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.servicio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(43,188,188,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(43,188,188,0.3);
}
.servicio-card:hover::before { opacity: 1; }
.servicio-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.servicio-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.servicio-card:hover .servicio-icon {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
}
.servicio-card h3 { color: var(--navy); margin-bottom: 0.75rem; font-size: 1.1rem; }
.servicio-card p { font-size: 0.95rem; }

/* =============================================
   CONTACTO
============================================= */
.contacto-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contacto-info { }
.contacto-info .section-title { color: var(--white); }
.contacto-info .section-lead { color: rgba(255,255,255,0.55); }
.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.contacto-item-icon {
  width: 44px; height: 44px;
  background: rgba(43,188,188,0.12);
  border: 1px solid rgba(43,188,188,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--teal);
}
.contacto-item-text strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.contacto-item-text span, .contacto-item-text a {
  color: rgba(255,255,255,0.6);
  font-size: 0.97rem;
  transition: var(--transition);
}
.contacto-item-text a:hover { color: var(--teal); }
.contacto-cta-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(43,188,188,0.2);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
}
.contacto-cta-box h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.contacto-cta-box p {
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  font-size: 0.97rem;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: var(--white);
  padding: 0.95rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #1fbd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--teal);
  padding: 0.95rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(43,188,188,0.35);
  transition: var(--transition);
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}
.btn-email:hover {
  background: rgba(43,188,188,0.08);
  border-color: var(--teal);
}

/* =============================================
   FOOTER
============================================= */
.footer {
  background: #070f18;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(43,188,188,0.1);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo img { height: 38px; width: auto; }
.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}
.footer-copy span { color: var(--teal); }

/* =============================================
   DIVISOR DECORATIVO
============================================= */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.divider-line { flex: 1; height: 1px; background: var(--gray-mid); }
.divider-line.white { background: rgba(255,255,255,0.08); }
.divider-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

/* =============================================
   ANIMACIONES (JS scroll)
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .hero-grid, .historia-grid, .contacto-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual { display: none; }
  .mv-grid { grid-template-columns: 1fr; }
  .historia-years { top: -15px; right: 20px; width: 90px; height: 90px; }
  .historia-years .num { font-size: 1.6rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .section { padding: 70px 1.5rem; }
  .hero { padding: 100px 1.5rem 60px; }
  .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .servicios-grid, .valores-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
