/*
Theme Name: Remote Experts Landing
Theme URI: https://remoteexperts.com
Author: Remote Experts
Author URI: https://remoteexperts.com
Description: Landing page profesional para Remote Experts. Tema nativo WordPress con SEO, reCAPTCHA v3, formularios por correo y gestión de leads en admin.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: remote-experts
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   COLORS FROM DESIGN
   ============================================ */
:root {
  /* Primary blues - extracted from design */
  --re-navy: #130575;
  --re-blue-dark: #2016a8;
  --re-blue: #006dd7;
  --re-blue-mid: #4a3de8;
  --re-blue-light: #6b5ff5;
  --re-blue-pale: #d4d1f7;
  --re-blue-bg: #006dd7;
  --re-blue-bg-hover: #3b89d5;

  /* Neutrals */
  --re-white: #ffffff;
  --re-black: #000000;
  --re-off-white: #f7f7fb;
  --re-gray-100: #f0f0f5;
  --re-gray-200: #e0e0e8;
  --re-gray-300: #c5c5d2;
  --re-gray-500: #000000;
  --re-gray-700: #3d3f54;
  --re-gray-900: #1c1e30;

  /* Accent */
  --re-yellow: #f5c518;
  --re-yellow-hover: #ddb115;
  --re-green: #22c55e;
  --re-red: #ef4444;

  /* Gradients from design */
  --re-gradient-hero: linear-gradient(155deg, #1a0a5c 0%, #2518b0 35%, #4a3de8 75%, #6b5ff5 100%);
  --re-gradient-hiw: linear-gradient(155deg, #0d0635 0%, #1a0a5c 30%, #2f27ce 100%);
  --re-gradient-btn: linear-gradient(135deg,  #006dd7 0%, #006dd7 100%);

  /* Fonts */
  --re-font-head: 'Poppins', sans-serif;
  --re-font-body: 'DM Sans', sans-serif;

  /* Misc */
  --re-radius-sm: 8px;
  --re-radius: 14px;
  --re-radius-lg: 20px;
  --re-radius-xl: 28px;
  --re-shadow-sm: 0 2px 8px rgba(26, 10, 92, 0.08);
  --re-shadow: 0 4px 20px rgba(26, 10, 92, 0.10);
  --re-shadow-lg: 0 8px 40px rgba(26, 10, 92, 0.15);
  --re-shadow-xl: 0 16px 60px rgba(26, 10, 92, 0.18);
  --re-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--re-font-body); color: var(--re-gray-700); line-height: 1.7; overflow-x: hidden; background: var(--re-white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--re-transition); }
h1,h2,h3,h4,h5,h6 { font-family: var(--re-font-head); font-weight: 700; line-height: 1.2; color: var(--re-gray-900); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--re-font-head); }

.re-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.re-section { padding: 80px 0; }

/* ============================================
   UTILITIES
   ============================================ */
.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: var(--re-font-head);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--re-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.re-btn-primary {
  background: var(--re-gradient-btn);
  color: var(--re-white);
  box-shadow: 0 4px 20px rgba(47, 39, 206, 0.35);
}
.re-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(47, 39, 206, 0.5); }

.re-btn-yellow {
  background: var(--re-yellow);
  color: var(--re-gray-900);
  box-shadow: 0 4px 16px rgba(26, 107, 219, 0.4);
}
.re-btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 197, 24, 0.5); background: var(--re-yellow-hover); }

.re-btn-blue {
  background: var(--re-blue-bg);
  color: var(--re-gray-900);
  box-shadow: 0 4px 16px rgba(26, 107, 219, 0.4);
}
.re-btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 107, 219, 0.5); background: var(--re-blue-bg-hover); }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.re-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 10, 92, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  transition: var(--re-transition);
}
.re-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.25); padding: 8px 0; }

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

.re-logo-img {
  width: 245px;
  display: block;
}
.re-logo { display: flex; align-items: center; gap: 10px; }
.re-logo svg { width: 34px; height: 34px; }
.re-logo-text { font-family: var(--re-font-head); font-size: 1.4rem; font-weight: 800; color: var(--re-white); letter-spacing: -0.3px; }

.re-nav { display: flex; align-items: center; gap: 32px; }
.re-nav a { color: rgba(255,255,255,0.85); font-family: var(--re-font-head); font-size: 0.9rem; font-weight: 600; }
.re-nav a:hover { color: var(--re-white); }
.re-nav .re-btn { padding: 10px 24px; font-size: 0.85rem; }

.re-menu-toggle { display: none; background: none; border: none; padding: 8px; }
.re-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--re-white); margin: 6px 0; transition: var(--re-transition); border-radius: 2px; }

/* ============================================
   HERO SECTION
   ============================================ */
.re-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--re-white);
  overflow: hidden;
  padding-top: 80px;
}

.re-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(107, 95, 245, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.re-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}

.re-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }

.re-hero-content { color: var(--re-black); }
.re-hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--re-black); margin-bottom: 16px; line-height: 1.1; }
.re-hero-content h1 .re-text-yellow { color: var(--re-blue); font-size: 1.2em; display: inline-block; }

.re-hero-subtitle { font-size: 1.15rem; margin-bottom: 12px; opacity: 0.9; font-style: italic; }
.re-hero-subtitle strong { color: var(--re-blue); }

.re-hero-badge {
  display: inline-block;
  background: rgba(26, 107, 219, 0.15);
  border: 2px solid var(--re-blue);
  color: var(--re-blue);
  padding: 10px 24px;
  border-radius: var(--re-radius-sm);
  font-family: var(--re-font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.re-hero-checks { list-style: none; margin-bottom: 24px; }
.re-hero-checks li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 1.05rem; font-weight: 600; }
.re-hero-checks li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--re-blue); }

.re-hero-cta-text { font-size: 0.95rem; opacity: 0.8; margin-top: 8px; font-style: italic; }

/* Hero form card */
.re-hero-form-wrapper {
  background: var(--re-white);
  border-radius: var(--re-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--re-shadow-xl);
}
.re-hero-form-wrapper h3 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--re-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   FORMS
   ============================================ */
.re-form-group { margin-bottom: 16px; }
.re-form-group label {
  display: block;
  font-family: var(--re-font-head);
  font-size: 0.85rem; font-weight: 600;
  color: var(--re-gray-500);
  margin-bottom: 6px;
}
.re-form-group input,
.re-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--re-gray-200);
  border-radius: var(--re-radius-sm);
  font-family: var(--re-font-body);
  font-size: 0.95rem;
  transition: var(--re-transition);
  background: var(--re-off-white);
  color: var(--re-gray-700);
}
.re-form-group input:focus,
.re-form-group select:focus {
  outline: none;
  border-color: var(--re-blue);
  box-shadow: 0 0 0 4px rgba(47, 39, 206, 0.1);
  background: var(--re-white);
}
.re-form-group input::placeholder { color: var(--re-gray-300); }

.re-form-note { font-size: 0.75rem; color: var(--re-gray-500); margin-top: 12px; line-height: 1.4; }
.re-form-note a { color: var(--re-blue); text-decoration: underline; }

.re-form-submit {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 0.95rem;
  background: var(--re-blue);
  color: var(--re-white);
  border: none;
  border-radius: var(--re-radius-sm);
  font-family: var(--re-font-head);
  font-weight: 700;
  transition: var(--re-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.re-form-submit:hover { background: var(--re-navy); transform: translateY(-1px); }

.re-form-success { display: none; text-align: center; padding: 24px; }
.re-form-success.show { display: block; }
.re-form-success svg { width: 48px; height: 48px; color: var(--re-green); margin: 0 auto 12px; }
.re-form-success h4 { color: var(--re-green); margin-bottom: 8px; }

.re-form-error { background: #fef2f2; color: var(--re-red); padding: 10px 14px; border-radius: var(--re-radius-sm); font-size: 0.85rem; margin-bottom: 12px; display: none; }
.re-form-error.show { display: block; }

.re-recaptcha-note { font-size: 0.7rem; color: var(--re-gray-300); text-align: center; margin-top: 8px; }
.re-recaptcha-note a { color: var(--re-gray-500); }

.re-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--re-white); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   BENEFITS SECTION
   ============================================ */
.re-benefits { background: var(--re-off-white); position: relative; }
.re-benefits::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--re-gradient-btn); }

.re-section-title { text-align: center; margin-bottom: 60px; }
.re-section-title h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--re-gray-900); margin-bottom: 8px; }
.re-section-title .re-highlight { color: var(--re-blue); font-weight: 800; }

.re-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.re-benefit-card {
  background: var(--re-white);
  border: 2px solid var(--re-blue-pale);
  border-radius: var(--re-radius-lg);
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: var(--re-shadow-sm);
  transition: var(--re-transition);
  position: relative;
  overflow: hidden;
}
.re-benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--re-gradient-btn);
  transform: scaleX(0);
  transition: var(--re-transition);
}
.re-benefit-card:hover { transform: translateY(-6px); box-shadow: var(--re-shadow-lg); border-color: var(--re-blue); }
.re-benefit-card:hover::before { transform: scaleX(1); }

.re-benefit-number {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--re-gradient-btn);
  color: var(--re-white);
  font-family: var(--re-font-head);
  font-size: 1.4rem; font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(47, 39, 206, 0.3);
}

.re-benefit-card h3 { font-size: 1.15rem; color: var(--re-navy); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.re-benefit-card p { font-size: 0.95rem; color: var(--re-gray-500); line-height: 1.6; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.re-about { position: relative; }
.re-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.re-about-badge {
  display: inline-block;
  background: var(--re-gray-100);
  color: var(--re-blue-bg);
  padding: 8px 20px;
  border-radius: 6px;
  font-family: var(--re-font-head);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.re-about-content h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 20px; line-height: 1.3; }
.re-about-content p { font-size: 1rem; color: var(--re-gray-500); margin-bottom: 16px; line-height: 1.7; }

.re-about-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  color: var(--re-blue);
  font-family: var(--re-font-head); font-weight: 700; font-size: 1rem;
}
.re-about-cta:hover { gap: 14px; }

.re-about-image { position: relative; }
.re-about-image img { border-radius: var(--re-radius-lg); box-shadow: var(--re-shadow-lg); width: 100%; object-fit: cover; }
.re-about-image::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 3px solid var(--re-blue-light);
  border-radius: var(--re-radius-lg);
  z-index: -1; opacity: 0.3;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.re-how-it-works {
  background: var(--re-gradient-hiw);
  color: var(--re-white);
  position: relative;
  overflow: hidden;
}

.re-how-it-works::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: radial-gradient(ellipse at right, rgba(107, 95, 245, 0.2), transparent);
}

.re-how-it-works .re-section-title h2 { color: var(--re-white); }

.re-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; z-index: 2; }

.re-step-card { position: relative; text-align: center; padding: 32px 20px; }

.re-step-number {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-family: var(--re-font-head);
  font-size: 1.6rem; font-weight: 800;
  color: var(--re-white);
  margin-bottom: 20px;
  transition: var(--re-transition);
}
.re-step-card:hover .re-step-number { background: rgba(245, 197, 24, 0.15); border-color: var(--re-white); transform: scale(1.1); }

.re-step-card h3 { color: var(--re-white); font-size: 1.05rem; margin-bottom: 10px; }
.re-step-card p { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }

.re-step-connector { position: absolute; top: 62px; right: -14px; color: rgba(255,255,255,0.3); font-size: 1.5rem; }

/* ============================================
   ROLES
   ============================================ */
.re-roles { background: var(--re-off-white); }

.re-roles-marquee-wrapper { overflow: hidden; margin-bottom: 48px; }
.re-roles-marquee { display: flex; gap: 16px; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.re-role-tag {
  flex-shrink: 0;
  padding: 10px 24px;
  background: var(--re-white);
  border: 2px solid var(--re-blue-pale);
  border-radius: 50px;
  font-family: var(--re-font-head);
  font-size: 0.9rem; font-weight: 600;
  color: var(--re-navy);
  white-space: nowrap;
  transition: var(--re-transition);
}
.re-role-tag:hover { background: var(--re-blue); color: var(--re-white); border-color: var(--re-blue); }

/* ============================================
   CTA SECTION
   ============================================ */
.re-cta { position: relative; }
.re-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.re-cta-content h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
.re-cta-content .re-text-blue { color: var(--re-blue); }
.re-cta-content p { font-size: 1rem; color: var(--re-gray-500); line-height: 1.7; }

.re-cta-form-wrapper {
  background: var(--re-white);
  border-radius: var(--re-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--re-shadow-lg);
  border: 2px solid var(--re-gray-100);
}
.re-cta-form-wrapper h3 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--re-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.re-testimonial {
  background: var(--re-navy);
  color: var(--re-white);
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.re-testimonial::before,
.re-testimonial::after {
  content: '\201C';
  position: absolute;
  font-size: 12rem;
  font-family: Georgia, serif;
/*   color: rgba(47, 39, 206, 0.15); */
  line-height: 1;
}
.re-testimonial::before { top: 7vh; left: 10vw; }
.re-testimonial::after { content: '\201D'; bottom: -5vh; right: 10vw; }

.re-testimonial blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .re-testimonial::before,
  .re-testimonial::after {
    display: none;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.re-footer {
  background: #0e0835;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.re-footer-grid { display: grid; grid-template-columns: 2fr 2fr; gap: 40px; margin-bottom: 40px; }

.re-footer-brand {
	display: flex;
	gap: 10px;
    flex-direction: column;
}

.re-footer-brand .re-logo-text { font-size: 1.2rem; margin-bottom: 12px; display: block; color: var(--re-white); font-family: var(--re-font-head); font-weight: 800; }
.re-footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.re-footer h4 { color: var(--re-white); font-family: var(--re-font-head); font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }

.re-footer-links { display: flex; gap: 24px; list-style: none; }
.re-footer-links li { margin-bottom: 8px; }
.re-footer-links a { font-size: 0.9rem; opacity: 0.7; }
.re-footer-links a:hover { opacity: 1; color: var(--re-blue-bg); }

.re-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.re-footer-social { display: flex; gap: 16px; }
.re-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: var(--re-transition);
}
.re-footer-social a:hover { background: var(--re-blue); }

/* ============================================
   ANIMATIONS
   ============================================ */
.re-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.re-fade-up.visible { opacity: 1; transform: translateY(0); }
.re-fade-up:nth-child(2) { transition-delay: 0.1s; }
.re-fade-up:nth-child(3) { transition-delay: 0.2s; }
.re-fade-up:nth-child(4) { transition-delay: 0.3s; }

.grecaptcha-badge { visibility: hidden !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .re-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .re-hero-checks { display: inline-block; text-align: left; }
  .re-hero-form-wrapper { max-width: 520px; margin: 0 auto; }
  .re-about-grid, .re-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .re-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .re-section { padding: 60px 0; }
  .re-nav { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--re-navy); flex-direction: column; padding: 24px; gap: 16px; box-shadow: var(--re-shadow-lg); }
  .re-nav.active { display: flex; }
  .re-menu-toggle { display: block; }
  .re-benefits-grid { grid-template-columns: 1fr; gap: 20px; }
  .re-steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .re-step-connector { display: none; }
  .re-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .re-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .re-container { padding: 0 16px; }
  .re-hero { padding-top: 70px; }
  .re-hero-form-wrapper, .re-cta-form-wrapper { padding: 24px 20px; }
  .re-steps-grid { grid-template-columns: 1fr; }
  .re-btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* ============================================
   WP ADMIN LEADS
   ============================================ */
.re-leads-wrap .widefat td, .re-leads-wrap .widefat th { padding: 10px 12px; }
.re-leads-wrap .re-lead-new { background: #e8f5e9; }
.re-leads-wrap .re-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.re-leads-wrap .re-badge-new { background: #c8e6c9; color: #2e7d32; }
.re-leads-wrap .re-badge-read { background: #e0e0e0; color: #616161; }
