/* Import Inter for Headings and Body */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Poppins:wght@300;400;500&display=swap');

/* Base Styles & Variables */
:root {
    --primary: #2563eb;
    /* Vera S2P Blue */
    --primary-dark: #1e40af;
    /* Vera S2P Blue Dark */
    --primary-light: #dbeafe;
    /* Vera S2P Blue Light */
    --secondary: #0f172a;
    /* Dark Slate Gray / Navy */
    --secondary-dark: #020617;
    /* Slate 950 */
    --background: #ffffff;
    /* White background */
    --background-alt: #f8fafc;
    /* pure white for cards and alt sections */
    --text-main: #334155;
    /* Slate 700 main text */
    --text-light: #64748b;
    /* Slate 500 secondary text */
    --success: #10b981;
    --border: #e2e8f0;
    /* Slate 200 border */
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Large soft shadow like Premium BPO */
    --shadow-md: rgba(0, 0, 0, 0.08) 0px 48px 128px -24px;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--background);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-success {
    color: var(--success);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 40px;
    /* Pill shape */
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
}

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

.btn-white {
    background-color: white;
    color: var(--primary) !important;
}

.btn-white:hover {
    background-color: transparent;
    color: white !important;
    border: 1px solid white;
}

.btn-block {
    width: 100%;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

/* Navbar */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.top-bar {
    background-color: var(--secondary);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary);
}

.nav-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

header:not(.scrolled) .nav-links a,
header:not(.scrolled) .mobile-menu-btn {
    color: white;
}

header.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary) !important;
}

header:not(.scrolled) .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

header.scrolled .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

header:not(.scrolled) .btn-primary {
    background-color: white;
    color: var(--primary) !important;
}

header:not(.scrolled) .btn-primary:hover {
    background-color: var(--primary);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid var(--border);
    padding: 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background: url('https://images.unsplash.com/photo-1541888081622-df7a696fa19b?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    min-height: 90vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vera S2P blue overlay */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.75) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 200px;
    animation: float 3s ease-in-out infinite;
}

.icon-box {
    background-color: #ecfdf5;
    color: var(--success);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.card-1 h4 {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.card-1 span {
    font-size: 0.875rem;
    color: var(--text-light);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--background-alt);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #eff6ff;
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
}

/* Why Us Section */
.why-us-section {
    padding: 6rem 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
}

.feature-list i {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-list h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature-list p {
    color: var(--text-light);
}

.why-us-image img {
    border-radius: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--background-alt);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item .icon-box {
    width: 3rem;
    height: 3rem;
    background-color: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
    font-size: 1.125rem;
    color: var(--secondary);
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    /* Make logo white */
    max-height: 40px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-buttons,
    .hero-features {
        justify-content: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        order: -1;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Nuevas clases de utilidad para la reestructuraci�n */
.bg-alt {
    background-color: var(--background-alt);
}

.bg-dark {
    background-color: var(--secondary);
    color: white;
}

.text-white {
    color: white !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-danger {
    color: #ef4444;
}

.border-card {
    border: 1px solid var(--border);
    box-shadow: none;
    background: white;
}

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

.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

.max-w-1000 {
    max-width: 1000px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.card-minimal {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.check-list li i {
    color: var(--primary);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.check-list-sm li i {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.large-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.large-list li i {
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray {
    color: #6b7280;
}

.fw-bold {
    font-weight: 600;
}

.badge-top {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius);
}

.case-metric {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trust-block {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.hover-underline:hover {
    text-decoration: underline;
}

.section-padding {
    padding: 3rem 0 3rem;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .text-center-mobile {
        text-align: center;
    }

    .hidden-mobile {
        display: none !important;
    }

    .section-padding {
        padding: 2rem 0 2rem;
    }
}

@media (min-width: 992px) {
    .section-padding {
        padding: 4rem 0 4rem;
    }
}

/* Internal Page Header */
body.internal-page header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

body.internal-page header .nav-links a,
body.internal-page header .mobile-menu-btn {
    color: var(--text-main) !important;
}

body.internal-page header .nav-links a::after {
    background-color: var(--primary) !important;
}

body.internal-page header .btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

/* White Outline Button (for dark backgrounds) */
.btn-outline.btn-white {
    border-color: white !important;
    color: white !important;
}

.btn-outline.btn-white:hover {
    background-color: white !important;
    color: var(--primary) !important;
}

/* White Solid Button (for dark backgrounds) */
.btn-white:not(.btn-outline) {
    background-color: white !important;
    color: var(--primary) !important;
    border: none;
}

.btn-white:not(.btn-outline):hover {
    background-color: var(--background) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
/* --- Mobile Responsiveness Fixes --- */
.page-header-padding {
    padding-top: 8rem;
}

.page-header-title {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .page-header-padding {
        padding-top: 6rem !important;
    }
    
    .page-header-title {
        font-size: 2.25rem !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .trust-block, .case-card {
        padding: 1.5rem;
    }
    
    .card-minimal {
        padding: 1.5rem;
    }
}

/* ===================== */
/* Blog Page Styles      */
/* ===================== */

/* Blog Filter Bar */
.blog-filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-filter-tag {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.blog-filter-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.08);
}

.blog-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}

.blog-card__content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
}

.blog-card__category {
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__category--ahorro {
    background: #ecfdf5;
    color: #059669;
}

.blog-card__category--estrategia {
    background: #eff6ff;
    color: #2563eb;
}

.blog-card__category--operaciones {
    background: #fef3c7;
    color: #d97706;
}

.blog-card__category--tendencias {
    background: #f3e8ff;
    color: #7c3aed;
}

.blog-card__date,
.blog-card__read {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
    color: var(--primary);
}

.blog-card__excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-card__link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Featured Blog Card */
.blog-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: row;
}

.blog-card--featured .blog-card__image {
    aspect-ratio: auto;
    min-height: 320px;
}

.blog-card--featured .blog-card__content {
    padding: 2.5rem;
    justify-content: center;
}

.blog-card--featured .blog-card__title {
    font-size: 1.75rem;
}

.blog-card--featured .blog-card__excerpt {
    font-size: 1.05rem;
}

/* Blog Newsletter CTA */
.blog-newsletter {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    border-radius: 16px;
    padding: 3.5rem;
    overflow: hidden;
    position: relative;
}

.blog-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.blog-newsletter__text h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-newsletter__text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.blog-newsletter__form {
    display: flex;
    gap: 0.75rem;
    min-width: 400px;
}

.blog-newsletter__form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.blog-newsletter__form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Blog Card Fade-In animation */
@keyframes blogFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Responsive */
@media (max-width: 992px) {
    .blog-card--featured {
        grid-template-columns: 1fr;
    }

    .blog-card--featured .blog-card__image {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .blog-newsletter__inner {
        flex-direction: column;
        text-align: center;
    }

    .blog-newsletter__form {
        min-width: auto;
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-newsletter {
        padding: 2rem;
    }

    .blog-newsletter__form {
        flex-direction: column;
    }

    .blog-newsletter__form input,
    .blog-newsletter__form .btn {
        width: 100%;
    }

    .blog-card--featured .blog-card__title {
        font-size: 1.35rem;
    }
}

/* ═══ Realineamiento S2P ═══════════════════════════════════ */

/* CTA secundario sobre fondo oscuro (hero) */
.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Recorrido S2P en 4 etapas */
.stage-block {
    margin-bottom: 3rem;
}

.stage-head {
    max-width: 780px;
    margin-bottom: 1.25rem;
}

.stage-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.stage-head h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    line-height: 1.35;
}

.stage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.stage-cards .service-card {
    position: relative;
    text-align: left;
}

.stage-cards .service-card h4 {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}

.stage-cards .service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.badge-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.tech-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
}

.tech-strip i,
.tech-strip svg {
    color: var(--primary-light);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.tech-strip p {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .stage-cards {
        grid-template-columns: 1fr;
    }

    .tech-strip {
        flex-direction: column;
        text-align: center;
    }
}

/* Tabla comparativa */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
    padding: 0.9rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.compare-table thead th {
    background: var(--background-alt);
    color: var(--secondary);
    font-weight: 700;
}

.compare-table .th-note {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-light);
}

.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table .col-procure {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
}

/* Fix responsive: Lucide reemplaza <i> por <svg>, las reglas de i quedan sin efecto */
.check-list li svg,
.feature-list li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Guarda contra desbordamiento horizontal en móvil */
html,
body {
    overflow-x: hidden;
}

/* Utilidades de alineacion referenciadas por el HTML pero ausentes del CSS original */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* ── Ajustes de alineacion movil ──────────────────────── */

/* Las "palabras" largas con barras (administracion/operaciones/gerencia)
   no parten en "/" y desbordaban las tarjetas en 375px */
.card-minimal,
.service-card,
.check-list li,
.compare-table td {
    overflow-wrap: break-word;
    min-width: 0;
}

.grid-2 > *,
.grid-3 > *,
.services-grid > *,
.stage-cards > * {
    min-width: 0;
}

/* Icono centrado cuando la tarjeta vive en un contenedor centrado
   (antes: texto centrado con icono pegado a la izquierda) */
.text-center .icon-wrapper {
    margin-left: auto;
    margin-right: auto;
}

/* Titulares de seccion mas contenidos en pantallas pequenas */
@media (max-width: 640px) {
    .section-title {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .stage-head h3 {
        font-size: 1.2rem;
    }
}

/* Guarda definitiva: "anywhere" si cuenta para el ancho minimo en flex/grid */
.check-list li,
.compare-table td,
.compare-table th {
    overflow-wrap: anywhere;
}

/* Pista de scroll de la tabla comparativa (solo movil) */
.table-hint {
    display: none;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .table-hint {
        display: block;
    }
}

/* Franja de tecnologia con imagen del producto */
.tech-strip-media {
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 1.5rem;
}

.tech-strip-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-strip-media img {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    display: block;
}

/* Foto de equipo en Por que Vera S2P */
.why-photo {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .tech-strip-media {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tech-strip-text {
        flex-direction: column;
    }
}

/* Enlace a la plataforma en la franja de tecnologia */
.tech-strip-link {
    display: inline-block;
    margin-left: 0.5rem;
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}

.tech-strip-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
