/* ===========================
   SOLUCIONES AVANZADAS - CSS
   =========================== */

:root {
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --gold-dark: #A07830;
  --black: #0A0A0A;
  --dark: #111827;
  --dark-2: #1F2937;
  --dark-3: #374151;
  --white: #FFFFFF;
  --gray-light: #F9FAFB;
  --gray: #9CA3AF;
  --gray-mid: #6B7280;
  --navy: #0F1E3C;
  --navy-2: #162447;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.2);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===========================
   TIPOGRAFÍA
   =========================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-title span { color: var(--gold); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 640px;
  line-height: 1.8;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-gray {
  background: var(--gray-light);
}

/* ===========================
   NAVEGACIÓN
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  max-width: 200px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.navbar-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.navbar-cta:hover {
  background: var(--gold-light) !important;
  color: var(--black) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===========================
   BOTONES
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
}

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

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-dark {
  background: var(--dark-2);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--white);
}

.card-gold-border {
  border-left: 4px solid var(--gold);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* ===========================
   GRID HELPERS
   =========================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===========================
   BADGES / PILLS
   =========================== */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

/* ===========================
   DIVIDER
   =========================== */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 32px;
  border-radius: 2px;
}

/* ===========================
   WHATSAPP FLOAT
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.8); }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { height: 40px; margin-bottom: 16px; }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

/* ===========================
   PAGE HERO INTERIOR
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--navy) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.page-hero .eyebrow { display: block; text-align: center; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

/* ===========================
   PRODUCT TABS (Portafolio)
   =========================== */
.product-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 0;
}

.product-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--gray-mid);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.product-tab:hover { color: var(--gold); }

.product-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.product-tab img {
  height: 28px;
  width: auto;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===========================
   SERVICE ITEMS
   =========================== */
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 16px;
  transition: var(--transition);
  background: var(--white);
}

.service-item:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 4px 20px rgba(201,168,76,0.1);
}

.service-num {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.service-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.service-item p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

/* ===========================
   STAR PRODUCT (CyVista Guard)
   =========================== */
.star-product {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  border: 1px solid rgba(201,168,76,0.25);
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.star-product::before {
  content: '⭐ PRODUCTO ESTRELLA';
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.3);
}

.star-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.star-product h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--white);
}

.star-product h3 span { color: var(--gold); }

.star-product .lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

.feature-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  padding: 16px 18px;
}

.role-card .role-label {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.role-card .role-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.role-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ===========================
   OPERA ACRÓNICO
   =========================== */
.opera-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.opera-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,0.2);
  background: var(--white);
  transition: var(--transition);
}

.opera-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.opera-letter {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.opera-word {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.opera-desc {
  font-size: 0.78rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ===========================
   ALLIES
   =========================== */
.allies-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ally-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark-3);
  background: var(--white);
  transition: var(--transition);
}

.ally-badge:hover {
  border-color: var(--gold);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
}

/* ===========================
   METODOLOGÍA STEPS
   =========================== */
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.method-step {
  padding: 40px 32px;
  border-right: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.method-step:last-child { border-right: none; }

.method-step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201,168,76,0.45);
  line-height: 1;
  margin-bottom: 16px;
}

.method-step h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.method-step p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.method-pillars {
  margin-top: 8px;
  list-style: none;
}

.method-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-mid);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.method-pillars li:last-child { border-bottom: none; }

.method-pillars li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
}

/* ===========================
   IMPULSAMOS EL CAMBIO
   =========================== */
.change-phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}

.change-phase {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.change-phase:last-child { border-right: none; }

.change-phase-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.change-phase-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.change-phase p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ===========================
   CONTACTO
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-3);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--gray-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===========================
   POLÍTICA DATOS
   =========================== */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(201,168,76,0.2);
}

.policy-section p, .policy-section li {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 10px;
}

.policy-section ul { padding-left: 20px; }

.policy-section ol { padding-left: 20px; }

.policy-section ol li { margin-bottom: 8px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .opera-grid { grid-template-columns: repeat(3, 1fr); }
  .change-phases { grid-template-columns: repeat(3, 1fr); }
  .star-product-grid { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .method-step { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .opera-grid { grid-template-columns: repeat(2, 1fr); }
  .change-phases { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .star-product { padding: 32px 24px; }
  .star-product::before { display: none; }
  .navbar-inner { padding: 0 16px; }
}

@media (max-width: 480px) {
  .opera-grid { grid-template-columns: 1fr 1fr; }
  .change-phases { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: 1fr; }
}

/* Mobile nav open */
.navbar-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  padding: 24px;
  gap: 4px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
