/* =====================================================
   PÁNFILO VARGAS CONSULTING
   styles.css - versión mejorada premium
===================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;

  --secondary: #10b981;

  --dark: #0f172a;
  --dark-light: #1e293b;

  --text: #334155;
  --text-light: #64748b;

  --white: #ffffff;

  --bg: #f8fafc;

  --border: #e2e8f0;

  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  --radius: 16px;
}

/* =====================================================
   RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =====================================================
   HEADER (GLASS PREMIUM)
===================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: 0.3s;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

/* =====================================================
   LOGO
===================================================== */

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  transition: 0.3s;
}

.logo-accent {
  color: var(--secondary);
}

header.scrolled .logo {
  color: var(--dark);
}

/* =====================================================
   NAVIGATION
===================================================== */

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

header.scrolled nav a {
  color: var(--dark);
}

header.scrolled nav a:hover {
  color: var(--primary);
}

/* =====================================================
   MOBILE MENU
===================================================== */

.mobile-menu {
  display: none;
  border: none;
  background: none;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
}

header.scrolled .mobile-menu {
  color: var(--dark);
}

/* =====================================================
   HERO
===================================================== */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2563eb 100%);

  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(16, 185, 129, 0.25),
    transparent 40%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.tagline {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 750px;
  margin: auto;
  opacity: 0.95;
}

/* =====================================================
   BUTTONS
===================================================== */

.hero-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 16px 32px;
  border-radius: 999px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   SECTIONS
===================================================== */

section {
  padding: 110px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header span {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 10px;
  color: var(--dark);
}

/* =====================================================
   STATS
===================================================== */

.stats {
  margin-top: -70px;
  position: relative;
  z-index: 50;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.stat-card {
  background: white;
  padding: 35px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* =====================================================
   SERVICES
===================================================== */

.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg);
  padding: 35px;
  border-radius: var(--radius);
  transition: 0.3s;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
}

.service-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

/* =====================================================
   TECHNOLOGIES
===================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.tech-grid div {
  background: white;
  /* padding: 20px; */
  text-align: center;
  border-radius: 12px;
  /* box-shadow: var(--shadow); */
  font-weight: 600;
  transition: 0.3s;
}

/* .tech-grid div:hover {
  background: var(--primary);
  color: white;
} */

/* =====================================================
   TIMELINE
===================================================== */

.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.timeline-item {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 18px 30px;
  border-radius: 999px;
  font-weight: 600;
}

/* =====================================================
   CONTACT
===================================================== */

.contact {
  background: white;
}

form {
  max-width: 700px;
  margin: auto;
}

input,
textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* =====================================================
   WHATSAPP
===================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 50px 0;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    padding: 20px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    color: var(--dark);
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
/* =====================================================
   PROBLEMS SECTION
===================================================== */

.problems {
  background: #0f172a;
  color: white;
  padding: 110px 0;
}

.problems .section-header h2 {
  color: white;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.problem-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.problem-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   PROBLEMS (VISUAL UPGRADE)
===================================================== */

.problems {
  background: #0f172a;
  color: white;
  padding: 110px 0;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.problem-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: 0.3s ease;
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.problem-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: #10b981;
}

.problem-card svg {
  width: 34px;
  height: 34px;
  stroke: #60a5fa;
  stroke-width: 2;
  fill: none;
}

.problem-card p {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin: 0;
}

/* =====================================================
   TECHNOLOGY CARDS - FIX VISUAL
===================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.tech-card {
  background: white;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 140px;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: #10b981;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.tech-card:hover svg {
  transform: scale(1.2);
  transition: 0.3s ease;
}

/* ICON CONTAINER (CLAVE DEL FIX) */
.tech-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;
}

/* SVG FIX */
.tech-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

/* TEXT */
.tech-card p {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}
/* =====================================================
   METHOD SECTION (CONSULTING FLOW)
===================================================== */

.method {
  background: white;
  padding: 110px 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.method-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 30px;
  text-align: left;
  border: 1px solid #e2e8f0;
  transition: 0.3s ease;
  position: relative;
}

.method-card:hover {
  transform: translateY(-6px);
  border-color: #10b981;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.method-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 15px;
}

.method-card h3 {
  margin-bottom: 10px;
  color: #0f172a;
}

.method-card p {
  color: #64748b;
  font-size: 0.95rem;
}

/* =====================================================
   STACK CONSULTING STYLE
===================================================== */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stack-card {
  background: white;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.stack-card:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stack-card h3 {
  color: #0f172a;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.stack-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =====================================================
   CASES SECTION (HIGH-CONVERSION)
===================================================== */

.cases {
  background: #0f172a;
  color: white;
  padding: 110px 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.case-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 25px;
  backdrop-filter: blur(12px);
  transition: 0.3s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.1);
}

.case-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #60a5fa;
}

.case-block {
  margin-bottom: 12px;
}

.case-block h4 {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-block p {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.case-result {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #10b981;
  font-weight: 700;
}
section {
  padding: 110px 0;
}

/* Alternancia suave */
.services,
.stack,
.contact {
  background: #f8fafc;
}

.method {
  background: #ffffff;
}

/* =====================================================
   OFFER SECTION (PRODUCTIZED SERVICES)
===================================================== */

.offer {
  background: #0f172a;
  color: white;
  padding: 110px 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.offer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.1);
}

.offer-card h3 {
  color: #60a5fa;
  margin-bottom: 10px;
}

.price {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.offer-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.offer-card li {
  margin-bottom: 8px;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.offer-btn {
  display: inline-block;
  padding: 12px 18px;
  background: #10b981;
  color: white;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.offer-btn:hover {
  background: #0ea371;
}

/* Highlight card */
.offer-card.highlight {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* =====================================================
   CONTACT SECTION (HIGH CONVERSION)
===================================================== */

.contact {
  background: #f8fafc;
  padding: 110px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* INFO */
.contact-info h3 {
  margin-bottom: 15px;
  color: #0f172a;
}

.contact-info ul {
  list-style: none;
  margin-bottom: 20px;
}

.contact-info li {
  margin-bottom: 10px;
  color: #334155;
}

/* NOTE */
.contact-note {
  margin: 15px 0;
  color: #64748b;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background: #0ea371;
}

/* FORM */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
}

.contact-form button {
  background: #2563eb;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #1e40af;
}

/* https://techicons.dev/icons/css3 */
