/* Variables de color para fácil edición */
:root {
  --primary: #2563eb;
  --secondary: #f59e0b;
  --accent: #8b5cf6;
  --bg-card: #ffffff;
  --text-main: #1f2937;
}

/* ===== Reset básico ===== */
* {
        box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  color: #333;
  min-height: 100vh;
}

a {
    -webkit-tap-highlight-color: transparent;
}


/* 1. Reset base para evitar que el header empuje otros elementos */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center; /* Centra el logo */
  position: sticky; /* Se mantiene arriba al hacer scroll */
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box; /* Crucial para que el padding no rompa el ancho */
}

/* 2. Limpieza del H1 (que suele traer márgenes molestos) */
.site-title {
  margin: 0;
  padding: 0;
  line-height: 0; /* Evita espacio extra debajo del logo */
}

/* 3. Control del enlace del logo */
.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

/* 4. El "Fix" para la imagen (evita el desborde) */
.logo-img {
  max-height: 50px; /* Ajusta según el tamaño de tu logo */
  width: auto;      /* Mantiene la proporción */
  display: block;
  object-fit: contain;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .logo-img {
    max-height: 40px;
  }
  .site-header {
    padding: 0.5rem 1rem;
  }
}



.planes-contenedor {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.header-registro {
  text-align: center;
  margin-bottom: 50px;
}

.text-highlight { color: var(--primary); font-weight: bold; }

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  align-items: stretch;
}

.plan-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
      margin-top: 20px;
}

.plan-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Plan Destacado (Emprendedor) */
.plan-box.destacado {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

/* Plan Premium */
.plan-box.premium {
  background: linear-gradient(145deg, #ffffff, #fef3c7);
  border: 2px solid var(--secondary);
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #6b7280;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
}

.plan-badge.top-seller { background: var(--primary); }
.plan-badge.gold { background: var(--secondary); }

.plan-precio {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 20px 0;
  color: var(--text-main);
}

.plan-precio small {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6b7280;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px 0;
  text-align: left;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #4b5563;
}

.plan-features i { margin-right: 10px; }
.plan-features i.fa-check { color: #10b981; }
.plan-features i.fa-star { color: var(--secondary); }
.plan-features .disabled { color: #d1d5db; text-decoration: line-through; }

.btn-comenzar {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--text-main);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.destacado .btn-comenzar { background: var(--primary); }
.premium .btn-comenzar { background: var(--secondary); }

.btn-comenzar:hover { opacity: 0.9; }


/* ===== Modal lateral ===== */
.modal-lateral {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: flex-end;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.modal-lateral.oculto {
  opacity: 0;
  pointer-events: none;
}

/* Panel lateral */
.modal-contenido {
  width: min(420px, 90vw);
  height: 100%;
  background: linear-gradient(to bottom right, #ffffff, #f2f4f8);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
  padding: 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}

.modal-lateral:not(.oculto) .modal-contenido {
  transform: translateX(0);
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cerrar:hover {
  color: #2b7cff;
}

/* ===== Encabezado del modal ===== */
.modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.modal-icon {
  width: 80px;
  margin-bottom: 10px;
}
.modal-bienvenida {
  font-size: 22px;
  color: #2b7cff;
  margin-bottom: 6px;
}
.modal-frase {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}
.modal-eslogan {
  font-size: 18px;
  margin-bottom: 10px;
}
.etiqueta-eslogan {
  background: linear-gradient(to right, #ff4d4d, #ff9900);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
}
.modal-divisor {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 20px 0;
}

/* ===== Formulario ===== */
#formRegistro label {
  font-weight: 600;
  margin-top: 16px;
  display: block;
  color: #333;
            text-align: left;
}
#formRegistro input,
#formRegistro select {
    width: inherit;
  padding: 10px;
  margin-top: 1px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
            padding-left: 35px;
}
#formRegistro i {
  margin-right: 6px;
color: #7c828d;
}

/* Check de políticas */
.politica-check {
  margin-top: 20px;
  font-size: 14px;
}

/* Botón centrado */
.boton-centro {
  text-align: center;
  margin-top: 30px;
}
.boton-centro button {
  background: #2b7cff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.boton-centro button:hover {
  background: #1e69d8;
}


.avanzado .btn-comenzar {
    background: #e7c956;
}

.plan-box.avanzado  {
    border: 2px solid #e7c956;
}

.plan-badge.silver {
    background: #e7c956;
}


/* ===== Iconos embebidos en campos ===== */
.input-icon-wrapper {
  position: relative;
  width: 100%;
  margin-top: 8px;
        display:flex;
        align-items:center;
}

.input-icon-wrapper .fa-lock{
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #2b7cff;
  font-size: 16px;
  pointer-events: none;
}




.input-icon-wrapper .fa-map-marker-alt{
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #2b7cff;
  font-size: 16px;
  pointer-events: none;
}


.input-icon-wrapper .fa-envelope {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #2b7cff;
  font-size: 16px;
  pointer-events: none;
}


.input-icon-wrapper .fa-user{
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #2b7cff;
  font-size: 16px;
  pointer-events: none;
}


.input-icon-wrapper input,
.input-icon-wrapper select {
  width: 100%;
  padding: 10px 10px 10px 40px; /* espacio para el icono */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}



/* El icono del ojo (derecha) */
.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #2563eb; /* Color azul al pasar el mouse */
}





.limit-number {
  background-color: #f0f0f0;   /* fondo suave */
  color: #333;                 /* color del texto */
  font-weight: bold;           /* negrita */
  padding: 2px 6px;            /* espacio interno */
  border-radius: 6px;          /* esquinas redondeadas */
  margin-left: 8px;            /* separación del texto */
  font-size: 0.9em;            /* tamaño relativo */
}


/* --- Estilos para el Tooltip Moderno --- */
.info-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

.info-icon {
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 1.1em;
}

.info-icon:active {
  transform: scale(0.9);
}

.modern-tooltip {
  position: absolute;
  bottom: 150%; 
  left: 50%;
  transform: translateX(-50%) translateY(15px) scale(0.95);
  width: 240px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none; /* Evita interacciones cuando está oculto */
}

/* Triángulo apuntando hacia abajo */
.modern-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.98) transparent transparent transparent;
}

/* Estado Activo */
.modern-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Contenido del Tooltip */
.modern-tooltip h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.modern-tooltip h4 i {
  color: #0d6efd; /* Color primary, ajústalo a la paleta de EasyMarket */
}

.modern-tooltip p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  font-weight: normal;
  white-space: normal;
}


.header-registro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #fff7ed 100%);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
    animation: slideDown 0.5s ease;
  }
  
  .header-registro h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #1f2937;
  }
  
  .store-icon {
    animation: bounce 2s infinite;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  
  .tag-icon {
    display: inline-block;
    vertical-align: middle;
  }
  
  .logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .logo-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #f97316);
    transition: width 0.3s ease;
  }
  
  .logo-link:hover::after {
    width: 100%;
  }
  
  .logo-text-nav {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .logo-highlight-nav {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @media (max-width: 600px) {
    .header-registro h2 {
      font-size: 1.6rem;
    }
    .logo-text-nav {
      font-size: 1.6rem;
    }
  }
