@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Raleway:wght@300;400;700&display=swap');

:root {
  --bg-color: #0d1117;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --accent-color: #58a6ff;
  --border-color: rgba(240, 246, 252, 0.1);
  --card-bg: rgba(22, 27, 34, 0.8);
}

* {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#app {
  width: 100%;
  max-width: 1400px; /* Aumentamos el ancho máximo para que el escalado tenga espacio */
  margin: 0 auto;
  padding: 4rem 2rem;
  transform: scale(0.85);
  transform-origin: top center;
}

.header {
  position: relative;
  padding: 6rem 4rem;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(13, 17, 23, 0) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  margin-bottom: 4rem;
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.firstName {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 3.8rem;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.8rem;
  margin: 0;
}

.lastName {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 4.8rem;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1rem;
  margin: 0.5rem 0;
}

.jobTitle {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.jobTitle i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.jobTitle span {
  font-size: 2.2rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-weight: 600;
}

.header-photo {
  position: absolute;
  right: 4rem;
  top: 2rem; /* Subida para quedar alineada con el nombre */
}

.photo {
  width: 16rem;
  height: 16rem;
  border-radius: 20px;
  object-fit: cover;
  border: 4px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 15px var(--accent-color);
}

.photo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.photo-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.photo-modal-close {
  position: fixed;
  top: 3rem;
  right: 3rem;
  background: var(--accent-color);
  border: none;
  color: #000;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 10000;
}

.photo-modal-close:hover {
  transform: scale(1.1) rotate(90deg);
}

.photo-zoomed {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 24px;
  border: 4px solid var(--border-color);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.content {
  margin-top: 2rem;
}

.personal-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.icon {
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #000;
  border-radius: 8px;
  font-size: 1.2rem;
}

.list-item p {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.title {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.record {
  margin-bottom: 3rem;
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border-color);
}

.record p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.record .fw-bold {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

ul {
  padding-left: 2rem;
  list-style: none;
}

ul li {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  position: relative;
}

ul li::before {
  content: "→";
  position: absolute;
  left: -2rem;
  color: var(--accent-color);
}

.bullet {
  position: relative;
}

.bullet::before {
  content: "";
  position: absolute;
  left: -2.3rem;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
}

.btn-group-fab {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  z-index: 100;
}

.btn-main {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--accent-color);
  border: none;
  color: #000;
  font-size: 2.4rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.btn-main:hover {
  transform: scale(1.1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

@media (max-width: 992px) {
  .content {
    grid-template-columns: 1fr;
  }
  .header-photo {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
  }
  .firstName { font-size: 3.5rem; }
  .lastName { font-size: 4.5rem; }
}

/* =========================================================
   SISTEMA DE SEGURIDAD & PAYWALL (VISTA PREVIA 20%)
   ========================================================= */
.locked-section {
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.locked-section.is-locked {
  max-height: 480px;
  overflow: hidden;
  position: relative;
}

.locked-section.is-locked .blur-target {
  filter: blur(8px);
  opacity: 0.3;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.locked-section:not(.is-locked) .blur-target {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem 1.5rem 2.5rem;
}

.paywall-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0) 0%, rgba(13, 17, 23, 0.75) 20%, rgba(13, 17, 23, 0.96) 55%, #0d1117 100%);
  pointer-events: none;
}

.paywall-card {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  background: rgba(22, 27, 34, 0.88);
  border: 1px solid rgba(88, 166, 255, 0.4);
  border-radius: 24px;
  padding: 2.8rem 2.4rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(88, 166, 255, 0.18);
  text-align: center;
  animation: paywallFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paywallFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.paywall-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.4rem;
  background: rgba(88, 166, 255, 0.14);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 50px;
  color: var(--accent-color);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.paywall-badge i {
  font-size: 1.2rem;
}

.paywall-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

.paywall-description {
  font-size: 1.35rem;
  line-height: 1.6;
  color: #b9c0cc;
  margin: 0 auto 2rem;
  max-width: 520px;
}

.paywall-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.paywall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.paywall-btn.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.paywall-btn.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: #ffffff;
}

.paywall-btn.btn-email {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.paywall-btn.btn-email:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.paywall-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #8b949e;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.8rem 0 1.4rem;
}

.paywall-divider::before,
.paywall-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.paywall-divider span {
  padding: 0 1.2rem;
}

.paywall-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.paywall-input-group {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  max-width: 440px;
}

.paywall-input {
  flex: 1;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 1.4rem;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.paywall-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25);
}

.paywall-submit-btn {
  background: linear-gradient(135deg, #4ea1ff, #2f7eea);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.paywall-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 161, 255, 0.35);
}

.paywall-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.paywall-msg {
  font-size: 1.25rem;
  margin: 0.4rem 0 0;
  min-height: 1.8rem;
}

.paywall-msg.error {
  color: #ff7171;
}

.paywall-msg.success {
  color: #7ce0a3;
}

.paywall-msg.info {
  color: #4ea1ff;
}

/* Badge flotante cuando está desbloqueado */
.unlocked-floating-badge {
  position: fixed;
  bottom: 25px;
  right: 90px;
  background: rgba(22, 27, 34, 0.92);
  border: 1px solid rgba(124, 224, 163, 0.45);
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  color: #7ce0a3;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 224, 163, 0.2);
  z-index: 99;
  animation: badgePop 0.5s ease;
}

@keyframes badgePop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Modal de correo */
.email-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}

.email-modal-card {
  position: relative;
  width: min(480px, 100%);
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
}

.email-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: color 0.2s;
}

.email-modal-close:hover {
  color: #fff;
}

.email-modal-icon {
  width: 5.6rem;
  height: 5.6rem;
  margin: 0 auto 1.2rem;
  background: rgba(88, 166, 255, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-color);
  font-size: 2.6rem;
}

.email-display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 1.35rem;
}

.email-address {
  font-family: monospace;
  font-size: 1.35rem;
  color: #f0f6fc;
}

/* Invitación a página de noticias en Paywall */
.paywall-news-invite {
  margin: 1.6rem auto 0;
  max-width: 440px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.paywall-news-invite p {
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.paywall-news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.paywall-news-link:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(59, 130, 246, 0.35));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

/* Modal de correo: invitación a noticias */
.email-news-invite {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.email-news-invite p {
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

@media print {
  body { background: #fff !important; color: #000 !important; }
  :root {
    --text-primary: #000;
    --text-secondary: #333;
    --accent-color: #000;
    --border-color: #ccc;
    --card-bg: #fff;
  }
  #app { 
    padding: 0 1.5rem !important; 
    width: 100%; 
    max-width: 100%; 
    transform: none !important; 
    margin: 0;
  }
  .header { 
    position: relative !important;
    border: none; 
    background: none !important; 
    padding: 0 0 1.5rem 0 !important; 
    margin-bottom: 2rem;
    backdrop-filter: none;
  }
  .header::after { display: none; }
  .header-text {
    padding-right: 12rem !important;
  }
  .firstName { 
    font-size: 2.7rem !important; 
    color: #000 !important; 
    letter-spacing: 0.5rem !important; 
  }
  .lastName { 
    font-size: 3.6rem !important; 
    color: #000 !important; 
    letter-spacing: 0.6rem !important; 
  }
  .jobTitle { margin-top: 1.5rem !important; }
  .jobTitle span { 
    color: #333 !important; 
    font-size: 1.6rem !important; 
    letter-spacing: 0.15rem !important;
  }
  .header-photo { 
    position: absolute !important; 
    right: 0 !important; 
    top: 0 !important; 
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: block !important;
  }
  .photo { 
    width: 10.5rem !important; 
    height: 10.5rem !important; 
    border-radius: 14px !important;
    box-shadow: none !important; 
    border: 2px solid #000 !important;
  }
  .list-item { 
    background: #fff !important; 
    border: 1px solid #ccc !important;
    padding: 0.4rem !important;
    gap: 0.8rem !important;
    page-break-inside: avoid;
  }
  .icon { 
    width: 2.4rem !important;
    height: 2.4rem !important;
    background: #fff !important; 
    color: #000 !important; 
    border: 1px solid #000;
    font-size: 1rem !important;
  }
  .title { 
    border-bottom: 2px solid #000; 
    color: #000 !important; 
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.6rem !important;
    letter-spacing: 0.15rem !important;
    padding-left: 0.2rem;
  }
  .record { 
    border-left: 1px solid #ccc;
    margin-bottom: 1.5rem;
  }
  .record .fw-bold {
    font-size: 1.45rem !important;
  }
  .personal-details { 
    gap: 0.8rem !important;
  }
  .bullet::before { 
    box-shadow: none !important; 
    background: #000 !important;
  }
  .btn-group-fab, .photo-modal-overlay, .paywall-overlay, .unlocked-floating-badge, .email-modal-overlay { display: none !important; }
  .locked-section.is-locked { display: none !important; }
}
