/* ==========================================================================
   JAIME PROFE IA — DESIGN SYSTEM (Estilo Oficial WEB JOSE)
   Adaptado para: jaimeprofeia.com / academiajaimeprofeia.com
   ========================================================================== */

:root {
  /* Paleta Oficial — Warm Orange & Black */
  --orange:      #F97316;
  --orange-dark: #EA6C0A;
  --orange-soft: #FFF4ED;
  --orange-mid:  #FDDCBB;
  --black:       #181818;
  --black-deep:  #111111;
  --body:        #3D3D3D;
  --muted:       #6B6B6B;
  --line:        #E4E4E0;
  --bg:          #F9F8F6;
  --white:       #FFFFFF;
  
  /* Fuentes Oficiales */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transiciones */
  --t-fast: 0.2s ease;
  --t-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--t-fast);
}

ul {
  list-style: none;
}

.c {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .c { padding: 0 24px; }
}

/* ── BARRA SUPERIOR DE CONFIANZA (TRUST BAR) ── */
.trust-bar {
  width: 100%;
  background: var(--black-deep);
  border-bottom: 1px solid rgba(249, 115, 22, 0.25);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .trust-bar { padding: 10px 20px; gap: 12px; }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.google-grad {
  font-weight: 800;
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0033;
  box-shadow: 0 0 8px #ff0033;
  display: inline-block;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── CABECERA / NAVEGACIÓN ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--black-deep);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo span {
  color: var(--orange);
  font-style: italic;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
}

.nav-links a:hover {
  color: var(--orange);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-pill:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45);
  color: var(--white);
}

.btn-pill-dark {
  background: var(--black-deep);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.btn-pill-dark:hover {
  background: #282828;
  color: var(--white);
}

.btn-pill-outline {
  background: transparent;
  color: var(--black-deep);
  border: 2px solid var(--orange);
  box-shadow: none;
}

.btn-pill-outline:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--black);
  cursor: pointer;
}

/* ── HERO SECTION ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  background: radial-gradient(ellipse at 65% 30%, rgba(249, 115, 22, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-buttons { justify-content: center; }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--black-deep);
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--orange);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 540px;
}

@media (max-width: 900px) {
  .hero-sub { margin: 0 auto 32px; }
}

.hero-sub b {
  color: var(--black);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-card-youtube {
  background: var(--orange-soft);
  border: 1.5px solid var(--orange-mid);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 4px 0 rgba(249, 115, 22, 0.15), 0 16px 48px rgba(249, 115, 22, 0.12);
  text-align: center;
  position: relative;
}

.yt-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--orange-mid);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.hero-card-youtube h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--black-deep);
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-card-youtube h3 span {
  color: var(--orange);
  font-style: italic;
}

.hero-card-youtube p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 26px;
}

.yt-stats-box {
  background: var(--white);
  border: 1px solid var(--orange-mid);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
}

.yt-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.yt-stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* ── SECCIÓN NEWSLETTER OFICIAL ── */
.newsletter-section {
  background: linear-gradient(135deg, #181818 0%, #251005 100%);
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  padding: 80px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.newsletter-box {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 28px;
  padding: 48px 44px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@media (max-width: 680px) {
  .newsletter-box { padding: 36px 20px; }
}

.newsletter-box h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

.newsletter-box h2 em {
  font-style: italic;
  color: var(--orange);
}

.newsletter-box p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto 20px;
}

@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; }
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--white);
  border: 2px solid transparent;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black-deep);
  outline: none;
  transition: var(--t-fast);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
}

.newsletter-link-alt {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  display: block;
}

.newsletter-link-alt a {
  color: var(--orange-mid);
  text-decoration: underline;
  font-weight: 600;
}

.newsletter-link-alt a:hover {
  color: var(--orange);
}

/* ── SECCIÓN DE LOGROS E IMPACTO ── */
.logros-section {
  width: 100%;
  background: var(--black);
  padding: 96px 0;
  color: var(--white);
}

@media (max-width: 768px) {
  .logros-section { padding: 64px 0; }
}

.logros-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

.logros-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 18px;
}

.logros-header h2 em {
  font-style: italic;
  color: var(--orange);
}

.logros-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-weight: 300;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  transition: var(--t-smooth);
}

.stat-card:hover {
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ── SECCIÓN AUTOR / PRESENTACIÓN DE JAIME ── */
.author-section {
  background: var(--bg);
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.author-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 768px) {
  .author-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .author-photo-wrap { margin: 0 auto; }
  .google-cert { justify-content: center; }
}

.author-photo-wrap {
  width: 280px;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--black-deep);
  border: 4px solid var(--orange-mid);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
  position: relative;
}

.author-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.author-name {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--black-deep);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.author-role {
  font-size: 15px;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.author-bio {
  font-size: 16.5px;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 26px;
}

.google-cert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* ── RECURSOS E INSIDE ── */
.inside-section {
  padding: 96px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--black-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
}

.card-item {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  transition: var(--t-smooth);
}

.card-item:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.12);
  transform: translateY(-4px);
  background: var(--white);
}

.card-emoji {
  font-size: 36px;
  margin-bottom: 18px;
  display: block;
}

.card-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--black-deep);
  margin-bottom: 10px;
}

.card-item p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ── SECCIÓN DE CONTACTO DIRECTO (EXCLUSIVA JAIME) ── */
.contact-section {
  background: var(--orange-soft);
  border-top: 1px solid var(--orange-mid);
  border-bottom: 1px solid var(--orange-mid);
  padding: 96px 0;
}

.contact-box {
  background: var(--white);
  border: 2px solid var(--orange-mid);
  border-radius: 28px;
  padding: 56px 48px;
  box-shadow: 0 16px 56px rgba(249, 115, 22, 0.12);
}

@media (max-width: 768px) {
  .contact-box { padding: 36px 24px; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .contact-methods { justify-content: center; }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--black-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-info h2 em {
  font-style: italic;
  color: var(--orange);
}

.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  padding: 20px 24px;
  border-radius: 18px;
  transition: var(--t-fast);
}

@media (max-width: 500px) {
  .contact-card { flex-direction: column; text-align: center; }
}

.contact-card:hover {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transform: translateX(6px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-text span {
  font-size: 17px;
  font-weight: 700;
  color: var(--black-deep);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  display: block;
}

/* ── URGENCIA / FOOTER ── */
.urgency-section {
  background: var(--black-deep);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.urgency-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 16px;
  max-width: 650px;
}

.urgency-section h2 em {
  font-style: italic;
  color: var(--orange);
}

.urgency-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}

.footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer b {
  color: var(--white);
}

/* ── ANIMACIONES GLOBALES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade {
  opacity: 0;
  animation: fadeUp 0.65s ease forwards;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }

/* ── ADAPTACIÓN TOTAL PARA VERSIÓN MÓVIL Y MENÚ TÁCTIL ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--orange);
    z-index: 999;
  }
  
  .nav-links.nav-open {
    display: flex !important;
  }
  
  .nav-links a {
    font-size: 17px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 24px;
    transition: var(--t-fast);
  }
  
  .mobile-btn:hover, .mobile-btn:active {
    background: var(--orange-mid);
  }
}

@media (max-width: 650px) {
  .c { padding: 0 14px !important; }
  .logo { font-size: 17px !important; gap: 4px !important; white-space: nowrap !important; }
  .logo span { white-space: nowrap !important; }
  .header-btn .header-btn-text { display: none !important; }
  .header-btn::after { content: 'Newsletter' !important; font-weight: 700 !important; }
  .header-btn { padding: 8px 12px !important; font-size: 12.5px !important; }
  
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .hero-buttons .btn-pill {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .yt-stats-box {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .author-photo-wrap {
    width: 100% !important;
    max-width: 250px !important;
    height: 280px !important;
  }

  .contact-box {
    padding: 24px 12px !important;
    border-radius: 20px !important;
  }
  
  .contact-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 16px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .contact-text span {
    font-size: 13px !important;
    line-height: 1.4 !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    display: block !important;
  }
}

/* Blindaje anti-desbordamiento lateral en móviles */
section, header, footer, div {
  max-width: 100vw;
}

.hero::before {
  max-width: 100vw;
  overflow: hidden;
}
