/* ================================================================
   Tu Guía Web — Frontend CSS
   ================================================================ */

:root {
    --w-primary:      #1e40af;
    --w-primary-dark: #1e3a8a;
    --w-accent:       #f59e0b;
    --w-accent-dark:  #d97706;
    --w-text:         #1e293b;
    --w-muted:        #64748b;
    --w-light:        #94a3b8;
    --w-bg:           #f1f5f9;
    --w-white:        #ffffff;
    --w-border:       #e2e8f0;
    --w-radius-sm:    8px;
    --w-radius:       12px;
    --w-radius-lg:    20px;
    --w-shadow:       0 2px 12px rgba(0,0,0,0.07);
    --w-shadow-md:    0 4px 20px rgba(0,0,0,0.11);
    --w-shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
    --w-container:    1320px;
}

/* ── Reset básico ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    color: var(--w-text);
    background: var(--w-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Contenedor ───────────────────────────────────────────────── */
.w-container {
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── HEADER ───────────────────────────────────────────────────── */
.w-header {
    background: var(--w-white);
    border-bottom: 1px solid var(--w-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

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

.w-logo img {
    height: 44px;
    width: auto;
}

.w-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.w-nav a {
    padding: 0.45rem 0.9rem;
    border-radius: var(--w-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--w-muted);
    transition: background 0.15s, color 0.15s;
}

.w-nav a:hover {
    background: var(--w-bg);
    color: var(--w-primary);
}

.w-nav .w-nav-cta {
    background: var(--w-primary);
    color: var(--w-white);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
}

.w-nav .w-nav-cta:hover {
    background: var(--w-primary-dark);
    color: var(--w-white);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.w-hero {
    background: linear-gradient(140deg, #1e3a8a 0%, #1e40af 40%, #1d4ed8 70%, #2563eb 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.w-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.w-hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.w-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--w-white);
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.w-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 2rem;
}

/* Buscador */
.w-buscador {
    display: flex;
    background: var(--w-white);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.w-buscador input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    color: var(--w-text);
    background: transparent;
}

.w-buscador input::placeholder {
    color: var(--w-light);
}

.w-buscador button {
    background: var(--w-accent);
    border: none;
    padding: 0 1.6rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--w-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
    white-space: nowrap;
}

.w-buscador button:hover {
    background: var(--w-accent-dark);
}

/* Ola decorativa */
.w-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.w-hero-wave svg {
    display: block;
    width: 100%;
    height: 48px;
}

/* ── SECCIONES ────────────────────────────────────────────────── */
.w-section {
    padding: 3.5rem 0;
}

.w-section-alt {
    background: var(--w-white);
}

.w-section-header {
    margin-bottom: 2rem;
}

.w-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--w-text);
    margin-bottom: 0.3rem;
}

.w-section-sub {
    font-size: 0.88rem;
    color: var(--w-muted);
}

/* ── RUBROS ───────────────────────────────────────────────────── */
.w-rubros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.75rem;
}

.w-rubro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 0.75rem 1rem;
    background: var(--w-white);
    border: 1.5px solid var(--w-border);
    border-radius: var(--w-radius);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    text-align: center;
}

.w-rubro-card:hover {
    border-color: var(--w-primary);
    box-shadow: var(--w-shadow-md);
    transform: translateY(-2px);
}

.w-rubro-card i {
    font-size: 1.5rem;
    color: var(--w-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
}

.w-rubro-card span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--w-text);
    line-height: 1.3;
}

.w-rubro-card.activo {
    border-color: var(--w-primary);
    background: #eff6ff;
    box-shadow: var(--w-shadow-md);
    transform: translateY(-2px);
}

.w-rubro-card.activo i {
    background: var(--w-primary);
    color: var(--w-white);
}

.w-rubro-card.activo span {
    color: var(--w-primary);
}

/* Banner de filtro activo */
.w-filtro-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: var(--w-radius-sm);
    font-size: 0.84rem;
    color: var(--w-primary);
    margin-bottom: 1.25rem;
}

.w-filtro-banner strong {
    font-weight: 700;
}

.w-filtro-limpiar {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--w-muted);
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--w-border);
    border-radius: 999px;
    background: var(--w-white);
    transition: color 0.12s, border-color 0.12s;
}

.w-filtro-limpiar:hover {
    color: var(--w-primary);
    border-color: var(--w-primary);
}

/* ── EMPRESA CARDS ────────────────────────────────────────────── */
.w-empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.w-empresa-card {
    background: var(--w-white);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s, transform 0.15s;
}

.w-empresa-card:hover {
    box-shadow: var(--w-shadow-hover);
    transform: translateY(-3px);
}

.w-empresa-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1rem 0.6rem;
}

.w-empresa-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid var(--w-border);
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--w-primary);
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 4px;
}

.w-empresa-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.w-empresa-info {
    flex: 1;
    min-width: 0;
}

.w-empresa-nombre {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--w-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-empresa-slogan {
    font-size: 0.77rem;
    color: var(--w-muted);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.w-empresa-body {
    padding: 0 1rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.w-empresa-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--w-primary);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    width: fit-content;
}

.w-empresa-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.w-empresa-contacto a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--w-muted);
    background: var(--w-bg);
    border: 1px solid var(--w-border);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    transition: background 0.12s, color 0.12s;
}

.w-empresa-contacto a.w-wa {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.w-empresa-contacto a:hover {
    border-color: var(--w-primary);
    color: var(--w-primary);
    background: #eff6ff;
}

.w-empresa-contacto a.w-wa:hover {
    border-color: #16a34a;
    color: #15803d;
    background: #dcfce7;
}

.w-empresa-footer {
    padding: 0.6rem 1rem 1rem;
    border-top: 1px solid var(--w-border);
}

.w-btn-ver {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.55rem;
    border: 1.5px solid var(--w-primary);
    border-radius: var(--w-radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--w-primary);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.w-btn-ver:hover {
    background: var(--w-primary);
    color: var(--w-white);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.w-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.65);
    padding: 2.5rem 0 1.5rem;
}

.w-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.w-footer-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.w-footer-brand p {
    font-size: 0.78rem;
    max-width: 240px;
    line-height: 1.5;
}

.w-footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.w-footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.w-footer-col a {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.35rem;
    transition: color 0.12s;
}

.w-footer-col a:hover {
    color: rgba(255,255,255,0.9);
}

.w-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── MODAL ────────────────────────────────────────────────────── */
.w-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.w-modal-overlay.w-modal-hidden { display: none; }

@keyframes w-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes w-slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.w-modal-overlay:not(.w-modal-hidden) { animation: w-fade-in 0.2s ease; }

.w-modal-box {
    background: var(--w-white);
    border-radius: var(--w-radius-lg);
    max-width: 840px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    animation: w-slide-up 0.25s ease;
}

.w-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    font-size: 0.95rem;
    color: #334155;
    transition: background 0.15s, color 0.15s;
}

.w-modal-close:hover { background: #fee2e2; color: #dc2626; }

/* Loading spinner */
.w-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--w-muted);
    gap: 0.75rem;
    font-size: 0.88rem;
}

.w-modal-loading i { font-size: 1.8rem; color: var(--w-primary); opacity: 0.6; }

/* ── MODAL INTERNA — empresa-modal.blade.php ──────────────────── */
.wm-portada {
    height: 140px;
    border-radius: var(--w-radius-lg) var(--w-radius-lg) 0 0;
    overflow: hidden;
}

.wm-portada img { width: 100%; height: 100%; object-fit: cover; }

.wm-portada-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #38bdf8 100%);
}

.wm-identidad {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
    margin-top: 0;
}

.wm-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 3px solid var(--w-white);
    background: #eff6ff;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--w-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.wm-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Logo completo en modal (sin contenedor rígido) */
.wm-logo-completo {
    max-height: 72px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
}

.wm-nombre-wrap { padding-top: 0.5rem; flex: 1; min-width: 0; }

.wm-nombre {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--w-text);
    line-height: 1.2;
}

.wm-slogan {
    font-size: 0.83rem;
    color: var(--w-muted);
    margin-top: 0.2rem;
}

.wm-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.wm-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--w-bg);
    color: var(--w-muted);
    border: 1px solid var(--w-border);
}

.wm-cat-principal {
    background: #eff6ff;
    color: var(--w-primary);
    border-color: #bfdbfe;
}

.wm-body {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wm-section {}

.wm-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--w-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.wm-descripcion {
    font-size: 0.88rem;
    color: var(--w-text);
    line-height: 1.65;
}

.wm-contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.wm-contacto-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius-sm);
    transition: box-shadow 0.12s, border-color 0.12s;
    text-decoration: none;
}

.wm-contacto-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.wm-contacto-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.wm-contacto-label {
    font-size: 0.68rem;
    color: var(--w-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wm-contacto-valor {
    font-size: 0.83rem;
    color: var(--w-text);
    font-weight: 500;
    margin-top: 1px;
}

.wm-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wm-red-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--w-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--w-text);
    background: var(--w-white);
    transition: box-shadow 0.12s, border-color 0.12s;
}

.wm-red-btn:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wm-ubicacion {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--w-text);
}

/* ── NUEVOS SOCIOS ────────────────────────────────────────────── */
.w-nuevos-wrap {
    margin-bottom: 2rem;
}

.w-nuevos-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.w-nuevos-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--w-text);
    margin-bottom: 0.2rem;
}

.w-nuevos-label i {
    color: var(--w-accent);
    font-size: 0.9rem;
}

.w-nuevos-sub {
    font-size: 0.82rem;
    color: var(--w-muted);
}

.w-nuevos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.w-nuevo-card {
    background: var(--w-white);
    border: 1px solid #fde68a;
    border-top: 3px solid var(--w-accent);
    border-radius: var(--w-radius);
    box-shadow: 0 2px 12px rgba(245,158,11,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.18s, transform 0.15s;
}

.w-nuevo-card:hover {
    box-shadow: 0 8px 28px rgba(245,158,11,0.18);
    transform: translateY(-3px);
}

.w-empresa-card.destacada {
    border-color: #fbbf24;
    box-shadow: 0 2px 16px rgba(245,158,11,0.18);
}

.w-medal {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245,158,11,0.45);
    font-size: 0.8rem;
    color: #fff;
    z-index: 1;
}

.w-nuevo-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background: var(--w-accent);
    color: var(--w-white);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.6;
}

.w-nuevos-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--w-light);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.w-nuevos-divider::before,
.w-nuevos-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--w-border);
}

/* ── PUBLICIDAD ───────────────────────────────────────────────── */
.w-pub-seccion {
    padding: 1.5rem 0;
}

.w-pub {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--w-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #b0bec5;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    user-select: none;
}

.w-pub i { font-size: 1.1rem; opacity: 0.45; }

.w-pub-principal { height: 300px; }
.w-pub-cierre    { height: 280px; }
.w-pub-media     { height: 240px; }

.w-pub-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* ── EMPTY STATE ──────────────────────────────────────────────── */
.w-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--w-muted);
}

.w-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* ── FORMULARIO PÚBLICO ───────────────────────────────────────── */
.wf-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
    padding: 2.5rem 0;
}

.wf-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.wf-hero-titulo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--w-white);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.wf-hero-sub {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.75);
}

.wf-hero-pasos {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.wf-paso {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.wf-paso span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.wf-paso.activo { color: var(--w-white); }
.wf-paso.activo span { background: var(--w-accent); color: var(--w-white); }

/* Layout --*/
.wf-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.25rem;
    align-items: start;
}

.wf-main { display: flex; flex-direction: column; gap: 1.25rem; }
.wf-aside { display: flex; flex-direction: column; gap: 1.25rem; }

/* Cards */
.wf-card {
    background: var(--w-white);
    border: 1px solid var(--w-border);
    border-radius: var(--w-radius);
    padding: 1.4rem;
    box-shadow: var(--w-shadow);
}

.wf-card-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--w-text);
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--w-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wf-card-titulo i { color: var(--w-primary); font-size: 0.9rem; }

.wf-card-submit { background: #f8faff; border-color: #bfdbfe; }

/* Grid */
.wf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wf-col-full { grid-column: 1 / -1; }

/* Campos */
.wf-field { display: flex; flex-direction: column; gap: 0.3rem; }

.wf-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--w-text);
}

.wf-req { color: #dc2626; }
.wf-opcional { font-size: 0.75rem; font-weight: 400; color: var(--w-light); }
.wf-hint { font-size: 0.75rem; color: var(--w-light); line-height: 1.4; }

.wf-input,
.wf-textarea,
.wf-select {
    width: 100%;
    border: 1.5px solid var(--w-border);
    border-radius: var(--w-radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.87rem;
    font-family: inherit;
    color: var(--w-text);
    background: var(--w-white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.wf-input:focus,
.wf-textarea:focus,
.wf-select:focus {
    border-color: var(--w-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.wf-input-error { border-color: #dc2626 !important; }
.wf-error-msg { font-size: 0.75rem; color: #dc2626; }

.wf-textarea { resize: vertical; min-height: 90px; }
.wf-select { cursor: pointer; }

/* Input con ícono */
.wf-input-icon { position: relative; }

.wf-input-icon i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--w-light);
    pointer-events: none;
}

.wf-input-icon .wf-input { padding-left: 2.2rem; }

/* Upload de imágenes */
.wf-file-input { display: none; }

.wf-file-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border: 1.5px dashed var(--w-border);
    border-radius: var(--w-radius-sm);
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--w-muted);
    transition: border-color 0.15s, background 0.15s;
    margin-top: 0.25rem;
}

.wf-file-label:hover {
    border-color: var(--w-primary);
    background: #eff6ff;
    color: var(--w-primary);
}

.wf-img-preview {
    margin-top: 0.5rem;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--w-border);
}

.wf-img-preview-wide {
    width: 100%;
    height: 80px;
    border-radius: var(--w-radius-sm);
}

/* Link "sugerir rubro" */
.wf-link-sugerir {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--w-primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.wf-link-sugerir:hover { opacity: 0.7; }

/* Botón submit */
.wf-btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: var(--w-white);
    border: none;
    border-radius: var(--w-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.15s, transform 0.12s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.wf-btn-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.wf-btn-submit:active { transform: translateY(0); }

/* Alerta de errores */
.wf-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--w-radius-sm);
    font-size: 0.85rem;
}

.wf-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wf-alert-error i { color: #dc2626; margin-top: 2px; flex-shrink: 0; }

/* ── PLANES / PRICING ────────────────────────────────────────── */
.w-planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.w-plan-card {
    background: var(--w-white);
    border: 1.5px solid var(--w-border);
    border-radius: var(--w-radius-lg);
    box-shadow: var(--w-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

.w-plan-card:hover {
    box-shadow: var(--w-shadow-hover);
    transform: translateY(-4px);
}

.w-plan-card.destacado {
    border-color: var(--w-primary);
    box-shadow: 0 4px 24px rgba(37,99,235,0.18);
}

.w-plan-badge-destacado {
    background: var(--w-primary);
    color: var(--w-white);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 0.35rem 1rem;
}

.w-plan-header {
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--w-border);
}

.w-plan-nombre {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--w-text);
    margin-bottom: 0.3rem;
}

.w-plan-descripcion {
    font-size: 0.82rem;
    color: var(--w-muted);
    line-height: 1.5;
}

.w-plan-precio-wrap {
    margin-top: 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.w-plan-precio-simbolo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--w-text);
}

.w-plan-precio {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--w-primary);
    line-height: 1;
}

.w-plan-precio-gratis {
    font-size: 2rem;
    font-weight: 800;
    color: #16a34a;
    line-height: 1;
}

.w-plan-precio-periodo {
    font-size: 0.8rem;
    color: var(--w-light);
}

.w-plan-features {
    padding: 1.25rem 1.5rem;
    flex: 1;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.w-plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--w-text);
    line-height: 1.4;
}

.w-plan-feature i {
    color: #16a34a;
    font-size: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.w-plan-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--w-border);
}

.w-plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--w-radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
    text-decoration: none;
}

.w-plan-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.w-plan-cta-primario {
    background: var(--w-primary);
    color: var(--w-white);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.w-plan-cta-secundario {
    background: transparent;
    color: var(--w-primary);
    border: 1.5px solid var(--w-primary);
}

/* ── Formulario multi-paso: Stepper ──────────────────────────── */
.wf-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.wf-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.wf-stepper-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 17px;
    transition: background 0.3s;
}
.wf-stepper-line.completado { background: #16a34a; }
.wf-stepper-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}
.wf-stepper-item.activo .wf-stepper-num {
    background: var(--w-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.wf-stepper-item.completado .wf-stepper-num {
    background: #16a34a;
    color: #fff;
}
.wf-stepper-label {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.4rem;
    text-align: center;
    font-weight: 500;
    max-width: 72px;
    line-height: 1.3;
}
.wf-stepper-item.activo .wf-stepper-label,
.wf-stepper-item.completado .wf-stepper-label { color: var(--w-text); font-weight: 600; }

/* Pasos: sólo el activo visible */
.wf-step { display: none; }
.wf-step.activo { display: block; }

/* Navegación inferior */
.wf-nav-pasos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.wf-btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.wf-btn-nav:hover { opacity: 0.88; }
.wf-btn-gris { background: #f1f5f9; color: #334155; }
.wf-btn-primario { background: var(--w-primary); color: #fff; }
.wf-btn-exito { background: #16a34a; color: #fff; }

/* Alert info */
.wf-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 3px solid #2563eb;
    color: #1e40af;
}

/* Plan radio cards */
.wf-planes-radio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.wf-plan-radio-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.wf-plan-radio-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.wf-plan-radio-card:hover { border-color: var(--w-primary); }
.wf-plan-radio-card.seleccionado {
    border-color: var(--w-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.wf-plan-radio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
}
.wf-plan-radio-nombre { font-weight: 700; font-size: 0.9rem; color: var(--w-text); }
.wf-plan-radio-precio { font-size: 1.1rem; font-weight: 800; color: var(--w-primary); text-align: right; white-space: nowrap; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .w-hero { padding: 2.5rem 0 3.5rem; }
    .w-hero h1 { font-size: 1.7rem; }
    .w-buscador { flex-direction: column; border-radius: var(--w-radius); }
    .w-buscador button { border-radius: 0 0 var(--w-radius) var(--w-radius); padding: 0.8rem; justify-content: center; }
    .w-footer-inner { flex-direction: column; }
    .w-footer-links { gap: 1.5rem; }
    .w-nav a:not(.w-nav-cta) { display: none; }
    .wf-layout { grid-template-columns: 1fr; }
    .wf-grid-2 { grid-template-columns: 1fr; }
    .wf-col-full { grid-column: auto; }
    .wf-hero-inner { flex-direction: column; }
    .wf-hero-pasos { display: none; }
    .wm-contacto-grid { grid-template-columns: 1fr; }
    .w-nuevos-grid { grid-template-columns: 1fr; }
    .w-pub-doble { grid-template-columns: 1fr; }
}
