:root{ --corporate-primary: #032A53; } body{ font-family: Montserrat !important; } button{ padding: 0 !important; } input{ height: auto !important; font-size: auto !important; } h3{ margin: 0 !important; padding: 0 !important; } p{ margin: 0 !important; padding: 0 !important; } /* Hero Section */ .hero-section { background-image: url('https://cdn.inspenet.com/bg-waves-bd.webp'); background-size: cover; background-position: center; margin-left: 8%; margin-right: 8%; padding: 50px; border-radius: 20px; color: white; text-align: left; } .hero h1 { font-size: 3.5rem; font-weight: bold; line-height: 1.2; color: white; } .changing-word { color: #ffffff; color: black; /* Change to match your brand colors */ transition: color 0.5s ease; } /* Animation for Changing Word */ @keyframes fadeInOut { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } } .changing-word { display: inline-block; color: white; animation: fadeInOut 2s infinite; } /* cbs-container for Main Content */ .cbs-container { width: 80%; margin: 0 auto; padding: 20px; background-color: #fff; margin-top: 20px; } /* Header Section */ .header { text-align: center; margin-bottom: 40px; } .header h1 { font-size: 36px; margin: 0; } .header .subtitle { font-size: 18px; color: #555; } /* Main Content Layout */ .content { display: flex; gap: 20px; flex-wrap: wrap; } /* Left Column (Filters) */ .left-column { flex: 1; min-width: 300px; } .filters { background-color: #f9f9f9; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .filters h2 { font-size: 24px; margin-bottom: 20px; color: #333; } .filters label { font-size: 16px; color: #333; margin-bottom: 8px; display: block; } .filters select, .filters input { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; } .filters button { background-color: #007bff; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; width: 100%; } .filters button:hover { background-color: #0056b3; } .multi-select-dropdown { position: relative; height: 100%; font-family: Montserrat;; } .dropdown-toggle { padding: 10px; background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 4px 0 0 4px; cursor: pointer; display: flex; height: 100%; justify-content: space-between; align-items: center; } .dropdown-toggle::after { content: '▼'; font-size: 12px; } .dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; background-color: #fff; border: 1px solid #ccc; border-top: none; border-radius: 0 0 4px 4px; overflow-y: auto; display: none; } .dropdown-menu.show { display: flex; flex-wrap: wrap; min-width: 150px; } .dropdown-item { padding: 10px; cursor: pointer; width: 100%; text-transform: capitalize; z-index: 2; background: white; } .dropdown-item:hover { background-color: #f0f0f0; } .dropdown-item input[type="checkbox"] { margin-right: 10px; } .selected-items { margin-top: 10px; } .selected-item { display: inline-block; background-color: #e0e0e0; padding: 5px 10px; margin-right: 5px; margin-bottom: 5px; border-radius: 3px; } .selected-item button { background: none; border: none; cursor: pointer; font-weight: bold; margin-left: 5px; } /* Right Column (Boxes) */ .right-column { flex: 1; min-width: 300px; } .box { background-color: #f9f9f9; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .box h3 { font-size: 22px; color: #333; margin-bottom: 10px; } .box p { font-size: 16px; color: #777; line-height: 1.6; } .hero-cbs-container { max-width: 1200px; width: 100%; display: flex; margin: 1rem auto; justify-content: center; align-items: center; } .hero { width: 100%; border-radius: 10px; background-image: url('https://cdn.inspenet.com/bg-waves-bd.webp'); background-position: center; background-size: cover; color: white; padding: 3rem 2rem; text-align: center; } .hero h1 { font-size: 2.5rem; max-width: 700px; margin: 0 auto; line-height: 1.2; } .hero-metainfo { display: none; } @media screen and (max-width: 820px) { .dropdown-field-text{ display: none; } .hero { background-image: url(https://cdn.inspenet.com/cropped-bg-waves-bd-phone-2.webp); padding: 2rem 1rem; text-align: center; margin: 0 auto; width: 90vw; } .hero h1 { font-size: 2rem; max-width: 600px; } .hero-metainfo { display: flex; flex-direction: column; align-items: center; gap: 1rem; } .hero-metainfo p { color: #ffffff77; margin: 1rem 0 auto 0; } .hero-metainfo button { width: auto; } } @media screen and (max-width: 320px) { .hero h1 { font-size: 1.5rem; max-width: 600px; } } /* search seaction */ .search-cbs-container { display: flex; justify-content: center; align-items: center; flex-direction: column; margin: 0 auto; max-width: 1200px; padding: 10px 15px; transition: all 0.4s ease-in-out; /* Smooth transition for animations */ } .search-bar { display: grid; width: 100%; grid-template-columns: calc(210px + 1rem) 72% minmax(40px, 1fr); margin: .5rem 0; } .search-cbs-container.full-size { justify-content: center; align-items: center; flex-direction: column; margin: 0 auto; display: flex; } .search-cbs-container.full-size .search-bar { width: 100%; display: flex; } .search-bar input { flex: 1; padding: 0.5rem; border: 1px solid #ddd; border-radius: 0; } .search-bar button { padding: 0.5rem 1rem; color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; background: var(--corporate-primary); } .main-content { display: grid; grid-template-columns: 210px 1fr; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: 1rem 0; align-items: start; /* Align grid items at the top */ } /* Sticky Sidebar */ .cbs-sidebar.sticky { position: sticky; top: 20px; /* Add some space from top */ height: fit-content; /* Prevent height overflow */ z-index: 2; /* Ensure sidebar stays above other content */ align-self: start; /* Align within grid cell */ } .cbs-sidebar { display: none; flex-direction: column; flex-shrink: 0; height: 100%; } @media screen and (min-width: 920px) { .search-cbs-container{ padding: 0; } .cbs-sidebar { display: flex; } } @media screen and (max-width: 320px) { .search-bar { width: 90%; } } @media screen and (max-width: 320px) { .search-bar { display: grid; grid-template-columns: 120px 65% 1fr; } } /* Buisness Directory principal */ .BD-principal p { font-size: 12px; color: #888888; } .BD-principal h1 { margin: .5rem 0; } .view-toggle { display: flex; gap: 0.5rem; margin-bottom: 1rem; } .view-toggle button { padding: 0.5rem 1rem; border: 1px solid #ddd; background: white; border-radius: 18px; cursor: pointer; } .view-toggle button.active { background: var(--bb-primary-color); color: white; } /* alphabet */ .grid-container { background: white; padding: 1rem; border-radius: 1rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); text-align: center; } .grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-bottom: 1rem; font-size: 1rem; } .grid span { display: flex; align-items: center; justify-content: center; padding: .4rem; } .separator { color: #ddd; font-weight: 300; } .reset-btn { padding: 1rem; background: none; border: none; color: gray; font-size: 1rem; cursor: pointer; padding: 0.5rem 1rem; transition: color 0.3s ease; } .reset-btn:hover { color: #333; background: none; } .reset-btn:active, .reset-btn:focus { background: none; color: black; } .letter { cursor: pointer; transition: opacity 0.3s ease; } .letter.hidden { opacity: 0.2; } /* ally section */ /* Modified CSS */ .ally-cbs-container { background-color: #F5F9FF; border-radius: 12px; max-width: 500px; margin: 5px auto; position: sticky; top: 20px; /* Changed from 0 to 20px to match margin */ padding: 16px; z-index: 1; /* Ensures it stays above other content */ } .ally-heading { display: flex; align-items: center; gap: 8px; color: #1C2024; font-size: 18px; font-weight: 700; margin: 0 0 16px 0; overflow-wrap: break-word; /* Allows text to break and wrap */ max-width: 100%; /* Ensures heading doesn't exceed container width */ } .ally-info-icon { color: #3B82F6; font-size: 20px; flex-shrink: 0; /* Prevents icon from shrinking */ } .ally-cta-button { align-items: center; background-image: linear-gradient(144deg, #032A53, #163e9d 50%, #6896db); border: 0; border-radius: 8px; box-shadow: rgba(37, 99, 235, 0.2) 0 15px 30px -5px; box-sizing: border-box; color: #ffffff; display: flex; font-size: 15px; justify-content: center; line-height: 1em; max-width: 100%; min-width: 160px; width: 100%; /* Full width to fit container */ text-decoration: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; white-space: nowrap; cursor: pointer; transition: all 0.3s; } .ally-cta-button:active, .ally-cta-button:hover { outline: 0; color:white; } .ally-cta-button span { background-color: var(--corporate-primary); /* Dark blue background */ padding: 12px 5px; border-radius: 6px; width: 100%; height: 100%; transition: 300ms; display: flex; justify-content: center; } .ally-cta-button:hover span { background: none; } .ally-cta-button:active { transform: scale(0.9); } .categories { background: white; padding: 1rem; border-radius: 8px; box-shadow: var(--shadow); } .categories h2 { margin-bottom: 1rem; } .category-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; } .business-area { display: flex; flex-direction: column; gap: 1rem; } .business-card { display: flex; flex-direction: column; background: white; border-radius: 8px; padding: 1rem; box-shadow: var(--shadow); } .business-info p{ padding: .5rem 1rem; } .icon { width: 16px; height: 16px; vertical-align: middle; } @media (min-width: 640px) { .business-card { display: grid; grid-template-columns: 30% 70%; gap: 1rem; } } .business-cover { margin: 0 auto; overflow: hidden; /* Ensure the image doesn’t overflow */ border-radius: 12px; /* Add rounded corners to the cbs-container */ } .business-cover img{ margin: 0 auto; } .business-logo { width: 100%; height: 100%; object-fit: cover; margin-bottom: 1rem; } .business-tags { display: flex; gap: 0.5rem; margin: 0.5rem 0; } @media screen and (min-width: 320px) { .business-logo { object-fit: contain; } } @media screen and (max-width: 920px) { .main-content{ grid-template-columns: 1fr; } .search-bar{ grid-template-columns: 120px 70% 1fr; } .cbs-sidebar.sticky { position: static; /* Disable sticky on mobile */ } } @media screen and (max-width: 640px) { .search-cbs-container{ padding: 0; } .search-bar{ width: 100%; grid-template-columns: 15% 1fr 10%; } } .tag { background: var(--corporate-primary); color: white; padding: 0.5rem 0.75rem; border-radius: 32px; font-size: 0.875rem; font-weight: bold; text-transform: capitalize; } .business-location { color: #666; margin: 0.5rem 0; } .business-location p { font-size: smaller; } .business-description { margin: 0.5rem 0; font-size: 0.875rem; color: var(--text-color); } .business-actions { display: flex; gap: 0.5rem; margin-top: 1rem; } .btn { padding: 0.5rem 1rem; border-radius: 32px; cursor: pointer; font-size: 0.875rem; } .btn-outline { border: 1px solid #192EEC; color: #192EEC; background: white; } .btn-primary:hover{ color: white; text-decoration: auto; } form label { margin: 25px 0 10px; font-weight: 500; color: #474b50; } #load-more-btn { margin: 2rem auto; padding: 1rem 2rem; background: var(--corporate-primary); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 2rem; display: block; height: 50px; width: 50px; } #load-more-btn:hover { background: #0f4987; } #load-more-btn[disabled] { background: #cccccc; cursor: not-allowed; } .spin-button { transition: transform 0.2s, background 0.2s; } .spinner-icon { display: inline-block; animation: spin 1.5s linear infinite; will-change: transform; /* Optimize animation performance */ font-size: 1.2em; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* =========================== Corporate Directory – Fix Pack Scope recomendado: .corporate-archive =========================== */ /* 0) Tokens / variables (faltaban) */ :root{ --corporate-primary: #032A53; /* ya lo tenías, lo reitero como fallback global */ --bb-primary-color: #032A53; /* usado por .view-toggle button.active */ --text-color: #1C2024; --muted: #5F6B7A; --surface: #ffffff; --bg: #F8FAFC; --line: #E5E7EB; --radius: 12px; --shadow: 0 10px 18px rgba(3,42,83,.06), 0 2px 4px rgba(3,42,83,.04); } /* 1) Ámbito: aplica todo sólo en la página Corporate */ body.corporate-archive{ background: var(--bg); color: var(--text-color); font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans'; } /* 2) Deshacer resets globales sólo aquí */ body.corporate-archive p{ margin: .5rem 0 0; line-height: 1.6; color: var(--muted); } body.corporate-archive h3{ margin: 0 0 .25rem; color: var(--text-color); font-weight: 700; font-size: 1.125rem; } /* Enlaces: evitar el azul “default” */ body.corporate-archive a{ color: var(--corporate-primary); text-decoration: none; } body.corporate-archive a:hover{ text-decoration: underline; } /* 3) Contenedores y layout */ body.corporate-archive .cbs-container{ max-width: 1200px; margin-inline: auto; padding-inline: 16px; } body.corporate-archive .main-content{ display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; } @media (max-width: 920px){ body.corporate-archive .main-content{ grid-template-columns: 1fr; } body.corporate-archive .cbs-sidebar.sticky{ position: static; } } /* Sidebar (A‑Z y CTA aliado) */ body.corporate-archive .cbs-sidebar{ display: flex; flex-direction: column; gap: 16px; } body.corporate-archive .cbs-sidebar.sticky{ top: 96px; z-index: 3; } body.corporate-archive .grid-container{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); } /* 4) Cards de empresas */ body.corporate-archive .business-area{ display: grid; gap: 16px; } body.corporate-archive .business-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; } @media (min-width: 640px){ body.corporate-archive .business-card{ grid-template-columns: 200px 1fr; } } body.corporate-archive .business-cover{ margin: 0; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; aspect-ratio: 1 / 1; } body.corporate-archive .business-cover img{ width: 100%; height: 100%; object-fit: contain; } body.corporate-archive .business-info h3 a{ color: var(--text-color); text-decoration: none; } body.corporate-archive .business-info h3 a:hover{ color: var(--corporate-primary); } body.corporate-archive .business-location p{ font-size: .9rem; color: var(--muted); } body.corporate-archive .business-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } body.corporate-archive .tag{ background: rgba(3,42,83,.08); color: var(--corporate-primary); padding: .35rem .65rem; border-radius: 999px; font-weight: 600; font-size: .85rem; } /* 5) Botonería dentro de las cards */ body.corporate-archive .business-actions{ display: flex; gap: 10px; margin-top: 12px; } body.corporate-archive .btn, body.corporate-archive button.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; border: 1px solid var(--corporate-primary); color: var(--corporate-primary); background: transparent; } body.corporate-archive .btn:hover{ background: var(--corporate-primary); color: #fff; } body.corporate-archive .btn-primary{ background: var(--corporate-primary); color: #fff; border-color: transparent; } body.corporate-archive .btn-outline{ border-color: #192EEC; color: #192EEC; } /* si mantienes esa variante */ /* 6) Search bar y dropdown */ body.corporate-archive .search-cbs-container{ max-width: 1200px; margin-inline: auto; padding: 10px 15px; } body.corporate-archive .search-bar{ display: grid; grid-template-columns: 250px 1fr 56px; gap: 12px; } body.corporate-archive .search-bar input{ min-height: 44px; border: 1px solid var(--line); border-radius: 8px; } body.corporate-archive .search-bar button{ min-height: 44px; border-radius: 8px; background: var(--corporate-primary); color: #fff; } /* Dropdown múltiple */ body.corporate-archive .dropdown-toggle{ min-height: 44px; border-radius: 8px; } body.corporate-archive .dropdown-menu{ z-index: 10; box-shadow: var(--shadow); } /* 7) Hero */ body.corporate-archive .hero-cbs-container{ max-width: 1200px; margin: 12px auto 0; padding-inline: 16px; } body.corporate-archive .hero{ border-radius: 16px; color: #fff; } body.corporate-archive .hero h1{ color: #fff; } /* 8) “Cargar más” – corregir forma y reset dañino */ body.corporate-archive #load-more-btn{ --size: 56px; width: var(--size); height: var(--size); display: grid; place-items: center; margin: 24px auto 64px; padding: 0; /* circular */ border-radius: 50%; border: none; background: var(--corporate-primary); color: #fff; box-shadow: 0 8px 20px rgba(3,42,83,.24); transition: transform .2s ease, background .2s ease; } body.corporate-archive #load-more-btn:hover{ transform: translateY(-1px); } body.corporate-archive #load-more-btn[disabled]{ background: #CBD5E1; color:#475569; box-shadow:none; cursor:not-allowed; } /* Restituir padding a botones afectados por button{padding:0!important} */ body.corporate-archive .btn, body.corporate-archive .search-bar button{ padding: .55rem 1rem !important; } /* =========================== Corporate Directory – Hotfix V2 =========================== */ /* Tokens y contenedor base */ :root{ --container: 1200px; --gutter: 16px; --corporate-primary: #032A53; --text-color: #1C2024; --muted: #5F6B7A; --line: #E5E7EB; --radius: 12px; --shadow: 0 10px 18px rgba(3,42,83,.06), 0 2px 4px rgba(3,42,83,.04); } /* Ámbito: solo en el archivo archive de Corporate */ .post-type-archive-corporate{ color: var(--text-color); } /* Asegurar ancho máximo y padding uniforme en secciones principales */ .post-type-archive-corporate .hero-cbs-container, .post-type-archive-corporate .search-cbs-container, .post-type-archive-corporate .main-content{ width: min(100%, var(--container)); margin-inline: auto; padding-inline: var(--gutter); } /* Layout principal */ .post-type-archive-corporate .main-content{ display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; } @media (max-width: 920px){ .post-type-archive-corporate .main-content{ grid-template-columns: 1fr; } .post-type-archive-corporate .cbs-sidebar.sticky{ position: static; } } /* Listado de empresas */ .post-type-archive-corporate .business-area{ display: grid; gap: 16px; } /* Tarjeta: impedir que su contenido la “estire” */ .post-type-archive-corporate .business-card{ width: 100%; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: minmax(120px, 180px) 1fr; /* móvil/tables */ align-items: center; gap: 16px; } @media (min-width: 640px){ .post-type-archive-corporate .business-card{ grid-template-columns: minmax(160px, 220px) 1fr; /* desktop */ } } /* 🔑 Clave: permitir encogimiento dentro del grid */ .post-type-archive-corporate .business-card > *{ min-width: 0; } /* Marco del logo */ .post-type-archive-corporate .business-cover{ width: 100%; max-width: 100%; aspect-ratio: 1 / 1; /* cuadro fijo */ border-radius: 12px; overflow: hidden; /* recorte seguro */ display: grid; place-items: center; background: #fff; } /* Imagen del logo: nunca debe forzar el ancho de la card */ .post-type-archive-corporate .business-cover img{ width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: contain; display: block; } /* Texto y enlaces */ .post-type-archive-corporate .business-info h3{ margin: 0 0 .25rem; font-weight: 700; } .post-type-archive-corporate .business-info h3 a{ color: var(--text-color); text-decoration: none; } .post-type-archive-corporate .business-info h3 a:hover{ color: var(--corporate-primary); } .post-type-archive-corporate .business-info p{ color: var(--muted); line-height: 1.6; } /* Botones dentro de la card */ .post-type-archive-corporate .business-actions{ display: flex; gap: 10px; margin-top: 12px; } .post-type-archive-corporate .btn{ display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; border: 1px solid var(--corporate-primary); color: var(--corporate-primary); background: transparent; } .post-type-archive-corporate .btn:hover{ background: var(--corporate-primary); color: #fff; } /* Search bar responsive estable (sin desbordar) */ .post-type-archive-corporate .search-bar{ display: grid; grid-template-columns: 250px 1fr 56px; gap: 12px; } @media (max-width: 640px){ .post-type-archive-corporate .search-bar{ grid-template-columns: minmax(120px, 40%) 1fr 44px; } } /* “Cargar más”: circular y centrado */ .post-type-archive-corporate #load-more-btn{ --size: 56px; width: var(--size); height: var(--size); display: grid; place-items: center; margin: 24px auto 64px; padding: 0; border-radius: 50%; border: none; background: var(--corporate-primary); color: #fff; box-shadow: 0 8px 20px rgba(3,42,83,.24); transition: transform .2s ease, background .2s ease; } .post-type-archive-corporate #load-more-btn:hover{ transform: translateY(-1px); } .post-type-archive-corporate #load-more-btn[disabled]{ background: #CBD5E1; color:#475569; box-shadow:none; cursor:not-allowed; } /* =========================== Corporate Directory – Hotfix V3 (MOBILE) Aplica sólo al archivo de archivo de Corporate =========================== */ /* Asegura contenedor fluido y centrado */ .post-type-archive-corporate .hero-cbs-container, .post-type-archive-corporate .search-cbs-container, .post-type-archive-corporate .main-content{ width: min(100%, 1200px); margin-inline: auto; padding-inline: 16px; } /* ===== 1) SEARCH BAR – columnas y tamaños en mobile ===== */ @media (max-width: 640px){ /* Forzar columnas estrechas: [categoría][input][botón] */ .post-type-archive-corporate .search-bar{ display: grid; grid-template-columns: 100px 1fr 44px !important; /* botón compacto como producción */ gap: 8px; } /* Evitar que algún hijo “ensanche” la grid */ .post-type-archive-corporate .search-bar > *{ min-width: 0; } /* Alto y radios uniformes */ .post-type-archive-corporate .search-bar select, .post-type-archive-corporate .search-bar input, .post-type-archive-corporate .search-bar .dropdown-toggle, .post-type-archive-corporate .search-bar button{ min-height: 44px; border-radius: 8px; } /* Botón de buscar: cuadrado y sin padding extra del reset global */ .post-type-archive-corporate .search-bar button{ width: 44px !important; padding: 0 !important; display: grid; place-items: center; } /* El selector de categorías no debe ocupar más que su columna */ .post-type-archive-corporate .search-bar .multi-select-dropdown, .post-type-archive-corporate .search-bar .dropdown-field, .post-type-archive-corporate .search-bar .dropdown-toggle{ width: 100%; } } /* Ajuste fino para pantallas muy estrechas (iPhone SE/Android chicos) */ @media (max-width: 380px){ .post-type-archive-corporate .search-bar{ grid-template-columns: 88px 1fr 40px !important; } .post-type-archive-corporate .search-bar button{ width: 40px !important; } } /* ===== 2) CARDS – layout vertical en mobile ===== */ @media (max-width: 640px){ /* Apilar: logo arriba, info abajo */ .post-type-archive-corporate .business-card{ grid-template-columns: 1fr !important; gap: 12px; } /* Marco del logo: ancho completo, relación 1:1 (como prod) */ .post-type-archive-corporate .business-cover{ width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; } /* Imagen: contener siempre dentro del marco */ .post-type-archive-corporate .business-cover img{ width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: contain; display: block; } /* Texto: evitar desbordes y cortes raros */ .post-type-archive-corporate .business-info{ min-width: 0; } .post-type-archive-corporate .business-info p{ overflow-wrap: anywhere; line-height: 1.55; } /* Botones con buen tap target y sin romper línea */ .post-type-archive-corporate .business-actions{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .post-type-archive-corporate .btn{ padding: .5rem .9rem !important; white-space: nowrap; } } /* ===== 3) Seguridad anti-escapes (por si algún logo trae width inline) ===== */ .post-type-archive-corporate .business-cover img[width], .post-type-archive-corporate .business-cover img[height]{ max-width: 100% !important; height: 100% !important; }

/* Capa del hero para usar <picture> como fondo sin doble request */
.hero.hero--corporate{ position: relative; isolation: isolate; background: #032A53; border-radius: 16px; overflow: clip; }
.hero.hero--corporate > *{ position: relative; z-index: 1; }
.hero.hero--corporate .hero__bg{ position: absolute; inset: 0; z-index: 0; display: block; }
.hero.hero--corporate .hero__bg img{ width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }


/* ===== FIX: tags dentro del contenedor + estilo consistente ===== */
.post-type-archive-corporate .business-info { min-width: 0; }
.post-type-archive-corporate .business-tags{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin:.5rem 0 .25rem !important;
  max-width: 100% !important;
}
.post-type-archive-corporate .business-tags .tag{
  background: rgba(3,42,83,.08);
  color: var(--corporate-primary);
  padding: .35rem .65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}

/* Fuerza que el contenido de la card nunca “estire” la grilla */
.post-type-archive-corporate .business-card { width: 100%; box-sizing: border-box; }
.post-type-archive-corporate .business-card > * { min-width: 0; }

/* El marco del logo no podrá empujar ancho */
.post-type-archive-corporate .business-cover{
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.post-type-archive-corporate .business-cover img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  display: block;
}

/* ===== FIX: botón "Cargar más" circular y centrado ===== */
.post-type-archive-corporate #load-more-btn{
  --size: 56px;
  width: var(--size);
  height: var(--size);
  display: grid !important;
  place-items: center !important;
  margin: 24px auto 64px;
  padding: 0 !important;
  border-radius: 50%;
  border: none;
  background: var(--corporate-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(3,42,83,.24);
  transition: transform .2s ease, background .2s ease;
  font-size: 22px; /* tamaño del ícono/flecha */
  line-height: 1;
}
.post-type-archive-corporate #load-more-btn:hover{ transform: translateY(-1px); }
.post-type-archive-corporate #load-more-btn[disabled]{
  background: #CBD5E1; color:#475569; box-shadow:none; cursor:not-allowed;
}

/* Contenido interno del botón: sólo el icono, centrado */
.post-type-archive-corporate #load-more-btn #rotate-icon{
  display:inline-block; line-height:1; font-weight:600;
}
.post-type-archive-corporate #load-more-btn .spinner-icon{
  animation: spin 1.5s linear infinite;
}
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* IMPORTANTE: evita que resets globales arruinen estos controles en corporate */
.post-type-archive-corporate .search-bar button,
.post-type-archive-corporate .btn{
  padding: .55rem 1rem !important;
}


/* ===== Chips de categorías estilo Noticias/Artículos (scope: corporate) ===== */

/* Contenedor: que envuelva y guarde spacing */
.post-type-archive-corporate .business-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

/* Estilo base de chip (para <a.chip> Y para <span.tag> si no cambias PHP) */
.post-type-archive-corporate .chip,
.post-type-archive-corporate .business-tags .tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.40rem .75rem;
  border-radius:999px;
  font-weight:700;
  font-size:.85rem;
  line-height:1;
  background:#032A53;                /* azul Inspenet */
  color:#fff;
  border:1px solid rgba(3,42,83,.15);
  box-shadow:0 6px 14px rgba(3,42,83,.18), 0 1px 2px rgba(3,42,83,.12);
  transition:background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
  text-decoration:none;              /* quitar subrayado en <a> */
  white-space:nowrap;                /* cada chip en 1 línea */
}

/* Hover/focus consistente con el estilo de News */
.post-type-archive-corporate .chip:hover,
.post-type-archive-corporate .business-tags .tag:hover{
  background:#0f3f7a;
  color:#fff;
  text-decoration:none;
  transform:translateY(-1px);
}

.post-type-archive-corporate .chip:focus-visible,
.post-type-archive-corporate .business-tags .tag:focus-visible{
  outline:2px solid #163e9d;
  outline-offset:2px;
}

/* Seguridad: si un logo/imagen en la card trae width inline, que no rompa */
.post-type-archive-corporate .business-cover img[width],
.post-type-archive-corporate .business-cover img[height]{
  max-width:100% !important;
  height:100% !important;
}

/* (Opcional) Variantes por cantidad para aligerar visual si hay muchas */
.post-type-archive-corporate .business-tags .tag:nth-child(odd),
.post-type-archive-corporate .chip:nth-child(odd){
  box-shadow:0 4px 10px rgba(3,42,83,.14), 0 1px 2px rgba(3,42,83,.10);
}
