/*
Theme Name: Portfolioline Jimena Premium - Pastel Femenino
Theme URI: https://carvajalchico.com
Description: Diseño claro, femenino y profesional para consultora en gestión de calidad.
Version: 5.0.0
*/

:root {
  /* Paleta pastel femenina */
  --primary: #7D9B76;      /* Verde salvia suave */
  --primary-light: #9BB595;
  --secondary: #E8A2A2;    /* Rosa empolvado */
  --secondary-light: #F0BDBD;
  --accent: #F5E6D3;       /* Beige cálido */
  --bg-light: #FFF9F5;     /* Fondo blanco roto */
  --bg-card: #FFFFFF;
  --text-dark: #4A3B3C;    /* Marrón suave */
  --text-muted: #7A6B6C;
  --text-light: #A89A9B;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.jimena-premium-body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

/* Tipografía clara y legible */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* ========== HEADER ========== */
.jp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 155, 118, 0.15);
}

.jp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
}

.jp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.jp-brand-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.jp-brand-text strong {
  display: block;
  color: var(--text-dark);
  font-size: 1rem;
}

.jp-brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.jp-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.jp-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.jp-nav a:hover {
  color: var(--secondary);
}

.jp-cta {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--text-dark);
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.jp-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* ========== HERO ========== */
.jp-hero {
  position: relative;
}

.jp-grid-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.jp-badge {
  display: inline-block;
  background: rgba(232, 162, 162, 0.15);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.jp-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.jp-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.jp-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.jp-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-sm);
}

.jp-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: var(--primary);
}

.jp-btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.jp-btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ========== CARDS ========== */
.jp-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.jp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: var(--white);
}

.jp-card-pad {
  padding: 1.8rem;
}

/* Perfil Card */
.jp-profile-card h3 {
  color: var(--primary);
}

.jp-facts {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.jp-fact {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.jp-fact strong {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.jp-fact a {
  color: var(--text-dark);
  text-decoration: none;
}

.jp-fact a:hover {
  color: var(--secondary);
}

/* Stats */
.jp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.jp-stat {
  text-align: center;
  padding: 1.5rem;
}

.jp-stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.jp-stat span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== SECCIONES ========== */
.jp-section {
  padding: 5rem 0;
}

.jp-section:nth-child(even) {
  background: rgba(245, 230, 211, 0.2);
}

.jp-section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.jp-eyebrow {
  color: var(--secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Grids */
.jp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.jp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Servicios */
.jp-service, .jp-sector {
  text-align: center;
}

.jp-service-icon, .jp-sector-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.jp-service h3, .jp-sector h3 {
  color: var(--primary);
  margin: 1rem 0;
}

.jp-service p, .jp-sector p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Metodología */
.jp-methodology {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius);
  padding: 3rem;
}

.jp-methodology-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.jp-step {
  text-align: center;
}

.jp-step-number {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.jp-step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.jp-step p {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Casos de Éxito */
.jp-case-card {
  padding: 1.8rem;
}

.jp-case-result {
  display: inline-block;
  background: var(--secondary);
  color: var(--text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Testimonios */
.jp-testimonial-card {
  text-align: center;
  padding: 2rem;
}

.jp-testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.jp-testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

.jp-testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Beneficios */
.jp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.jp-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* FAQ */
.jp-faq-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.jp-faq-item:hover {
  box-shadow: var(--shadow-md);
}

.jp-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
}

.jp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.jp-faq-item.active .jp-faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

/* Contacto */
.jp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.jp-contact-card {
  padding: 2rem;
}

.jp-contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.jp-contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.jp-contact-item strong {
  color: var(--primary);
}

/* Footer */
.jp-footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
}

/* ========== FUNCIONALIDADES ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.chat-assistant {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.8rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 75px;
  left: 0;
  width: 340px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 1rem;
  font-weight: 600;
}

.chat-body {
  padding: 1rem;
  min-height: 250px;
  max-height: 320px;
  overflow-y: auto;
  background: #f8f9fa;
}

.chat-message-user {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  text-align: right;
  max-width: 85%;
  margin-left: auto;
}

.chat-message-bot {
  background: #e9ecef;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  max-width: 85%;
}

.chat-questions {
  padding: 1rem;
  background: white;
  border-top: 1px solid #eee;
}

.question-btn {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 40px;
  cursor: pointer;
  text-align: left;
  font-size: 0.8rem;
  transition: var(--transition);
  color: var(--text-dark);
}

.question-btn:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .jp-grid-hero, .jp-stats, .jp-grid-3, .jp-contact-grid, .jp-methodology-steps {
    grid-template-columns: 1fr;
  }
  .jp-grid-2 {
    grid-template-columns: 1fr;
  }
  .jp-stats {
    gap: 1rem;
  }
  .jp-nav {
    display: none;
  }
  .jp-header-inner {
    justify-content: space-between;
  }
  .jp-methodology-steps {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }
  section {
    padding: 3rem 0;
  }
  .jp-stat strong {
    font-size: 1.8rem;
  }
  .chat-window {
    width: 300px;
  }
  .jp-benefits-grid {
    grid-template-columns: 1fr;
  }
}