/* ==========================================================================
   REHOJO - Estilos personalizados
   Archivo principal de CSS custom sobre Bootstrap 5.3
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables CSS (Design Tokens)
   Colores, tipografía y espaciados globales del proyecto
   -------------------------------------------------------------------------- */
:root {
    --rh-primary: #4f46e5;
    --rh-primary-dark: #3730a3;
    --rh-primary-light: #818cf8;
    --rh-secondary: #06b6d4;
    --rh-accent: #f59e0b;
    --rh-dark: #1e1b4b;
    --rh-gray-900: #111827;
    --rh-gray-700: #374151;
    --rh-gray-500: #6b7280;
    --rh-gray-300: #d1d5db;
    --rh-gray-100: #f3f4f6;
    --rh-white: #ffffff;
    --rh-gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    --rh-gradient-cta: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --rh-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --rh-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --rh-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --rh-shadow-card: 0 4px 24px rgba(79, 70, 229, 0.08);
    --rh-radius: 12px;
    --rh-radius-lg: 20px;
    --rh-transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset y estilos base
   Ajustes generales del body y tipografía
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--rh-gray-700);
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Navegación principal (Navbar)
   Barra fija superior siempre blanca con sombra al hacer scroll
   -------------------------------------------------------------------------- */
.navbar-rehojo {
    padding: 0.6rem 0;
    transition: var(--rh-transition);
    background: var(--rh-white);
    border-bottom: 1px solid var(--rh-gray-100);
}

.navbar-rehojo.navbar-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

.navbar-rehojo .navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rh-primary);
    letter-spacing: -0.5px;
}

.navbar-rehojo .nav-link {
    color: var(--rh-gray-700);
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: var(--rh-transition);
    font-size: 0.9rem;
}

.navbar-rehojo .nav-link:hover,
.navbar-rehojo .nav-link:focus {
    color: var(--rh-primary);
}

/* Dropdowns de la navbar */
.navbar-rehojo .dropdown-menu {
    border: none;
    box-shadow: var(--rh-shadow-md);
    border-radius: var(--rh-radius);
    padding: 0.5rem 0;
    border-left: 3px solid var(--rh-primary);
    min-width: 220px;
}

.navbar-rehojo .dropdown-item {
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    color: var(--rh-gray-700);
    transition: var(--rh-transition);
}

.navbar-rehojo .dropdown-item:hover {
    background: var(--rh-gray-100);
    color: var(--rh-primary);
}

/* Botón Login en la navbar */
.navbar-rehojo .btn-nav-login {
    background: var(--rh-gray-900);
    color: var(--rh-white);
    border: 1px solid var(--rh-gray-900);
    border-radius: 6px;
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--rh-transition);
}

.navbar-rehojo .btn-nav-login:hover {
    background: var(--rh-gray-700);
    border-color: var(--rh-gray-700);
    color: var(--rh-white);
}

/* Botón CTA principal en la navbar */
.navbar-rehojo .btn-nav-cta {
    background: transparent;
    color: var(--rh-primary);
    border: 2px solid var(--rh-primary);
    border-radius: 6px;
    padding: 0.35rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--rh-transition);
}

.navbar-rehojo .btn-nav-cta:hover {
    background: var(--rh-primary);
    color: var(--rh-white);
}

/* Toggler del menú hamburguesa en móvil */
.navbar-rehojo .navbar-toggler {
    border-color: var(--rh-gray-300);
    padding: 0.4rem 0.6rem;
}

.navbar-rehojo .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2855, 65, 81, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --------------------------------------------------------------------------
   Sección Hero
   Bloque principal con fondo blanco, título h1 centrado y CTAs
   -------------------------------------------------------------------------- */
.hero-section {
    background: var(--rh-white);
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section__content {
    position: relative;
    z-index: 2;
}

.hero-section__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rh-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-section__title span {
    color: var(--rh-primary);
}

.hero-section__subtitle {
    font-size: 1.15rem;
    color: var(--rh-gray-500);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Botones CTA del hero */
.hero-section__actions .btn-hero-primary {
    background: var(--rh-primary);
    color: var(--rh-white);
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--rh-transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.hero-section__actions .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: var(--rh-primary-dark);
    color: var(--rh-white);
}

.hero-section__actions .btn-hero-secondary {
    background: transparent;
    color: var(--rh-gray-700);
    border: 2px solid var(--rh-gray-300);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--rh-transition);
}

.hero-section__actions .btn-hero-secondary:hover {
    border-color: var(--rh-primary);
    color: var(--rh-primary);
    transform: translateY(-2px);
}

/* Mockups flotantes debajo del hero */
.hero-section__showcase {
    margin-top: 3.5rem;
}

.hero-showcase__card {
    background: var(--rh-white);
    border-radius: var(--rh-radius-lg);
    box-shadow: var(--rh-shadow-lg);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--rh-gray-100);
    transition: var(--rh-transition);
}

.hero-showcase__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-showcase__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.hero-showcase__icon--green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.hero-showcase__icon--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.hero-showcase__icon--purple {
    background: rgba(79, 70, 229, 0.1);
    color: var(--rh-primary);
}

.hero-showcase__icon--amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--rh-accent);
}

.hero-showcase__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rh-dark);
    margin-bottom: 0.25rem;
}

.hero-showcase__text {
    font-size: 0.8rem;
    color: var(--rh-gray-500);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Barra de confianza / logos de empresas
   Franja con logos de clientes o partners
   -------------------------------------------------------------------------- */
.trust-bar {
    background: var(--rh-white);
    border-bottom: 1px solid var(--rh-gray-100);
    padding: 2.5rem 0;
}

.trust-bar__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rh-gray-500);
    font-weight: 600;
}

.trust-bar__logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rh-gray-300);
    transition: var(--rh-transition);
}

.trust-bar__logo:hover {
    color: var(--rh-gray-500);
}

/* --------------------------------------------------------------------------
   Sección de estadísticas (contadores)
   Números destacados con animación
   -------------------------------------------------------------------------- */
.stats-section {
    background: var(--rh-white);
    padding: 5rem 0;
}

.stats-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stats-card__number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rh-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-card__label {
    font-size: 1rem;
    color: var(--rh-gray-500);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Sección de normativa / aviso legal
   Bloque informativo con fondo degradado
   -------------------------------------------------------------------------- */
.compliance-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    padding: 5rem 0;
}

.compliance-section__heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--rh-dark);
    line-height: 1.3;
}

.compliance-section__text {
    font-size: 1.1rem;
    color: var(--rh-gray-700);
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Tarjetas de características (feature cards)
   Usadas en secciones de funcionalidades
   -------------------------------------------------------------------------- */
.feature-card {
    background: var(--rh-white);
    border-radius: var(--rh-radius-lg);
    padding: 2.25rem;
    height: 100%;
    border: 1px solid var(--rh-gray-100);
    transition: var(--rh-transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rh-shadow-card);
    border-color: transparent;
}

/* Icono circular de la feature card */
.feature-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.feature-card__icon--primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--rh-primary);
}

.feature-card__icon--secondary {
    background: rgba(6, 182, 212, 0.1);
    color: var(--rh-secondary);
}

.feature-card__icon--accent {
    background: rgba(245, 158, 11, 0.1);
    color: var(--rh-accent);
}

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rh-dark);
    margin-bottom: 0.75rem;
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--rh-gray-500);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Secciones genéricas de contenido
   Bloques reutilizables con título h2 y contenido
   -------------------------------------------------------------------------- */
.content-section {
    padding: 6rem 0;
}

.content-section--gray {
    background: var(--rh-gray-100);
}

.content-section--white {
    background: var(--rh-white);
}

.content-section__heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--rh-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.content-section__subheading {
    font-size: 1.1rem;
    color: var(--rh-gray-500);
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   Sección de funcionalidades con iconos (feature list)
   Lista de características con check marks
   -------------------------------------------------------------------------- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.feature-list__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    color: var(--rh-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 2px;
}

.feature-list__text {
    font-size: 1.05rem;
    color: var(--rh-gray-700);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Mockup visual de funcionalidad
   Placeholder visual para capturas de pantalla
   -------------------------------------------------------------------------- */
.feature-visual {
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    border-radius: var(--rh-radius-lg);
    padding: 3rem 2rem;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-visual__placeholder {
    text-align: center;
    color: var(--rh-primary);
}

.feature-visual__placeholder i {
    font-size: 4rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

.feature-visual__placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Sección de testimonios
   Carousel o grid de opiniones de clientes
   -------------------------------------------------------------------------- */
.testimonials-section {
    background: var(--rh-white);
    padding: 6rem 0;
}

.testimonial-card {
    background: var(--rh-gray-100);
    border-radius: var(--rh-radius-lg);
    padding: 2.25rem;
    height: 100%;
    border: 1px solid transparent;
    transition: var(--rh-transition);
}

.testimonial-card:hover {
    border-color: var(--rh-primary-light);
    box-shadow: var(--rh-shadow-card);
}

/* Estrellas de valoración del testimonio */
.testimonial-card__stars {
    color: var(--rh-accent);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.testimonial-card__quote {
    font-size: 1rem;
    color: var(--rh-gray-700);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--rh-gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rh-white);
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-card__name {
    font-weight: 700;
    color: var(--rh-dark);
    font-size: 0.95rem;
}

.testimonial-card__role {
    font-size: 0.85rem;
    color: var(--rh-gray-500);
}

/* --------------------------------------------------------------------------
   Sección de Contacto
   Formulario de contacto con info lateral (estilo controllaboral)
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 6rem 0;
    background: var(--rh-gray-100);
    position: relative;
}

.contact-section__heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rh-dark);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.contact-section__text {
    font-size: 1.1rem;
    color: var(--rh-gray-500);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-section__checks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-section__checks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rh-dark);
    margin-bottom: 0.85rem;
}

.contact-section__checks li i {
    color: #22c55e;
    font-size: 1.25rem;
}

.contact-form-card {
    background: var(--rh-white);
    border-radius: var(--rh-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--rh-shadow-md);
    border: 1px solid var(--rh-gray-300);
}

.contact-form-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rh-gray-500);
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rh-gray-100);
}

.contact-form-card__input {
    border: 1px solid var(--rh-gray-300);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--rh-transition);
}

.contact-form-card__input:focus {
    border-color: var(--rh-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-form-card__input::placeholder {
    color: var(--rh-gray-500);
}

.contact-form-card__check-label {
    font-size: 0.9rem;
    color: var(--rh-gray-700);
}

.contact-form-card__check-label a {
    color: var(--rh-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-form-card__check-label a:hover {
    text-decoration: underline;
}

.contact-section__normativa {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--rh-white);
    border-left: 4px solid var(--rh-primary);
    border-radius: 0 var(--rh-radius) var(--rh-radius) 0;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--rh-shadow-sm);
}

.contact-section__normativa > i {
    font-size: 1.5rem;
    color: var(--rh-primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-section__normativa strong {
    display: block;
    font-size: 0.95rem;
    color: var(--rh-dark);
    margin-bottom: 0.4rem;
}

.contact-section__normativa p {
    font-size: 0.85rem;
    color: var(--rh-gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Sección de precios
   Cards de planes con destaque en el plan recomendado
   -------------------------------------------------------------------------- */
.pricing-section {
    padding: 6rem 0;
    background: var(--rh-white);
}

.pricing-card {
    background: var(--rh-white);
    border-radius: var(--rh-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid var(--rh-gray-100);
    transition: var(--rh-transition);
    height: 100%;
}

.pricing-card:hover {
    border-color: var(--rh-primary-light);
    box-shadow: var(--rh-shadow-lg);
}

/* Plan destacado/recomendado */
.pricing-card--featured {
    border-color: var(--rh-primary);
    transform: scale(1.03);
    box-shadow: var(--rh-shadow-lg);
}

.pricing-card__badge {
    display: inline-block;
    background: var(--rh-gradient-cta);
    color: var(--rh-white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rh-dark);
    margin-bottom: 0.5rem;
}

.pricing-card__price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rh-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--rh-gray-500);
    margin-bottom: 2rem;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-card__features li {
    padding: 0.5rem 0;
    color: var(--rh-gray-700);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card__features li i {
    color: var(--rh-primary);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Footer
   Pie de página con columnas de enlaces e info legal
   -------------------------------------------------------------------------- */
.footer-rehojo {
    background: var(--rh-gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 0;
}

.footer-rehojo__brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rh-white);
    margin-bottom: 1rem;
}

.footer-rehojo__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

.footer-rehojo__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rh-white);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.footer-rehojo__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-rehojo__links li {
    margin-bottom: 0.6rem;
}

.footer-rehojo__links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--rh-transition);
}

.footer-rehojo__links a:hover {
    color: var(--rh-white);
}

/* Barra inferior del footer con copyright */
.footer-rehojo__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
}

.footer-rehojo__copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-rehojo__legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--rh-transition);
}

.footer-rehojo__legal a:hover {
    color: var(--rh-white);
}

/* --------------------------------------------------------------------------
   Botones reutilizables
   Estilos de botones globales del proyecto
   -------------------------------------------------------------------------- */
.btn-primary-rehojo {
    background: var(--rh-gradient-cta);
    color: var(--rh-white);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--rh-transition);
}

.btn-primary-rehojo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    color: var(--rh-white);
}

.btn-outline-rehojo {
    background: transparent;
    color: var(--rh-primary);
    border: 2px solid var(--rh-primary);
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    transition: var(--rh-transition);
}

.btn-outline-rehojo:hover {
    background: var(--rh-primary);
    color: var(--rh-white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Encabezados de sección (reutilizable)
   Títulos centrados con línea decorativa
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header__tag {
    display: inline-block;
    background: rgba(79, 70, 229, 0.08);
    color: var(--rh-primary);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Precio en el Hero
   Bloque de precio destacado dentro del hero centrado
   -------------------------------------------------------------------------- */
.hero-section__price {
    margin-bottom: 2rem;
}

.hero-section__price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rh-primary);
}

.hero-section__price-detail {
    display: block;
    font-size: 0.95rem;
    color: var(--rh-gray-500);
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Tabs de funcionalidades (estilo pills personalizadas)
   Pestañas tipo relojlaboral para secciones de detalle
   -------------------------------------------------------------------------- */
.tabs-rehojo {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tabs-rehojo .nav-link {
    background: var(--rh-gray-100);
    color: var(--rh-gray-700);
    border-radius: var(--rh-radius) !important;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--rh-transition);
    border: 1px solid transparent;
    text-align: center;
    min-width: 130px;
}

.tabs-rehojo .nav-link:hover {
    background: var(--rh-white);
    border-color: var(--rh-primary-light);
    color: var(--rh-primary);
}

.tabs-rehojo .nav-link.active {
    background: var(--rh-gradient-cta);
    color: var(--rh-white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.tabs-rehojo .nav-link i {
    font-size: 1.2rem;
}

/* Contenido dentro de cada panel de tab */
.tab-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rh-dark);
    margin-bottom: 1rem;
}

.tab-panel__text {
    font-size: 1.05rem;
    color: var(--rh-gray-700);
    line-height: 1.7;
}

/* Mini-cards dentro de los paneles de tabs */
.tab-panel__mini-card {
    background: var(--rh-gray-100);
    border-radius: var(--rh-radius);
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.tab-panel__mini-card i {
    font-size: 1.5rem;
    color: var(--rh-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.tab-panel__mini-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--rh-dark);
    margin-bottom: 0.25rem;
}

.tab-panel__mini-card span {
    font-size: 0.8rem;
    color: var(--rh-gray-500);
}

/* --------------------------------------------------------------------------
   Bloques de detalle (dentro de secciones zigzag)
   Sub-bloques con icono + titulo + texto
   -------------------------------------------------------------------------- */
.detail-block {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rh-gray-300);
}

.detail-block:last-child {
    border-bottom: none;
}

.detail-block__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rh-dark);
    margin-bottom: 0.5rem;
}

.detail-block__title i {
    color: var(--rh-primary);
}

.detail-block__text {
    font-size: 0.95rem;
    color: var(--rh-gray-500);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Modales de Login y Registro
   Ventanas modales con formularios de acceso y alta
   -------------------------------------------------------------------------- */
.modal-rehojo {
    border: none;
    border-radius: var(--rh-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-rehojo__header {
    border-bottom: none;
    padding: 1.5rem 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-rehojo__brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rh-primary);
}

.modal-rehojo__body {
    padding: 1.5rem 2rem 2rem;
}

.modal-rehojo__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rh-dark);
    margin-bottom: 0.35rem;
}

.modal-rehojo__subtitle {
    font-size: 0.95rem;
    color: var(--rh-gray-500);
    margin-bottom: 1.75rem;
}

.modal-rehojo__input {
    border: 1px solid var(--rh-gray-300);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--rh-transition);
}

.modal-rehojo__input:focus {
    border-color: var(--rh-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-rehojo__input::placeholder {
    color: var(--rh-gray-500);
}

.modal-rehojo__check-label {
    font-size: 0.9rem;
    color: var(--rh-gray-700);
}

.modal-rehojo__check-label a {
    color: var(--rh-primary);
    text-decoration: none;
    font-weight: 500;
}

.modal-rehojo__check-label a:hover {
    text-decoration: underline;
}

.modal-rehojo__disclaimer {
    font-size: 0.8rem;
    color: var(--rh-gray-500);
    text-align: center;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.modal-rehojo__footer-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--rh-gray-500);
}

.modal-rehojo__footer-links a {
    color: var(--rh-primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-rehojo__footer-links a:hover {
    text-decoration: underline;
}

.modal-rehojo__separator {
    margin: 0 0.5rem;
    color: var(--rh-gray-300);
}

/* Icono de confirmación en modal de recuperación de contraseña */
.modal-rehojo__success-icon {
    font-size: 3rem;
    color: var(--rh-primary);
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-section__title {
        font-size: 2.75rem;
    }

    .hero-section__mockup {
        min-height: 300px;
        margin-top: 3rem;
    }

    .content-section__heading,
    .compliance-section__heading {
        font-size: 1.85rem;
    }

    .contact-section__heading {
        font-size: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive: Móvil (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }

    .hero-section__title {
        font-size: 2rem;
    }

    .hero-section__subtitle {
        font-size: 1rem;
    }

    .hero-section__actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .stats-card__number {
        font-size: 2.25rem;
    }

    .content-section {
        padding: 4rem 0;
    }

    .content-section__heading,
    .compliance-section__heading {
        font-size: 1.65rem;
    }

    .contact-section__heading {
        font-size: 1.75rem;
    }

    .pricing-card--featured {
        transform: none;
    }

    /* En móvil el menú colapsado necesita fondo */
    .navbar-rehojo .navbar-collapse {
        background: var(--rh-white);
        border-radius: var(--rh-radius);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--rh-shadow-md);
    }
}

/* --------------------------------------------------------------------------
   Validación de formularios
   Estados visuales, errores, toggle contraseña, indicador de fuerza, honeypot
   -------------------------------------------------------------------------- */

/* Mensaje de error por campo */
.rh-field__error {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
    line-height: 1.3;
    transition: var(--rh-transition);
}

.rh-field__error:empty {
    display: none;
}

/* Borde verde/rojo en inputs al validar */
.rh-field .form-control.is-valid,
.rh-field .form-select.is-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.rh-field .form-control.is-invalid,
.rh-field .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.rh-field .form-check-input.is-invalid {
    border-color: #dc3545;
}

.rh-field .form-check-input.is-valid {
    border-color: #22c55e;
}

/* Wrapper para input + botón toggle contraseña */
.rh-password-wrapper {
    position: relative;
}

.rh-password-wrapper .form-control {
    padding-right: 3rem;
    background-position: right 3rem center;
}

.rh-password-wrapper .form-control.is-valid,
.rh-password-wrapper .form-control.is-invalid {
    background-image: none;
}

.rh-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--rh-gray-500);
    font-size: 1.15rem;
    line-height: 1;
    transition: var(--rh-transition);
}

.rh-password-toggle:hover {
    color: var(--rh-primary);
}

.rh-password-toggle:focus-visible {
    outline: 2px solid var(--rh-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Indicador de fuerza de contraseña */
.rh-strength {
    margin-top: 0.5rem;
}

.rh-strength__bar {
    height: 4px;
    border-radius: 2px;
    background: var(--rh-gray-300);
    overflow: hidden;
}

.rh-strength__fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.rh-strength__fill[data-level="1"] { width: 25%; background: #dc3545; }
.rh-strength__fill[data-level="2"] { width: 50%; background: #f59e0b; }
.rh-strength__fill[data-level="3"] { width: 75%; background: #06b6d4; }
.rh-strength__fill[data-level="4"] { width: 100%; background: #22c55e; }

.rh-strength__label {
    font-size: 0.75rem;
    margin-top: 0.2rem;
    color: var(--rh-gray-500);
}

.rh-strength__label[data-level="1"] { color: #dc3545; }
.rh-strength__label[data-level="2"] { color: #f59e0b; }
.rh-strength__label[data-level="3"] { color: #06b6d4; }
.rh-strength__label[data-level="4"] { color: #22c55e; }

/* Honeypot: invisible para humanos, visible para bots */
.rh-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
