/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --header-height: 120px;
    --header-height-scrolled: 80px;
    --header-bg-color: rgba(255, 255, 255, 0.98);
    --header-blur: 15px;
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --primary-color: #3177e3;
    --brand-primary: #3177e3;
    --cs-primary: #2EA8FF;
    --text-color: #333;
    --text-light: #6c757d;
    --text-muted: #475569;
    --hover-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

/* ===================================
   RESET Y BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: calc(var(--header-height) + 20px);
    font-family: 'Satoshi', 'Archivo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 90px;
}

/* ===================================
   HEADER — NAVBAR CERTISUR
   =================================== */
.navbar-2-certisur.w-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height, 120px);
    background: var(--header-bg-color, rgba(255, 255, 255, 0.98));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0;
    width: 100% !important;
}

.padding-global-4-certisur {
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

.container-4-certisur.w-container {
    max-width: none !important;
    width: 80%;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    box-sizing: border-box;
}

.navbar-component-2-certisur.fixed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.brand-certisur.w-nav-brand {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-certisur .image-10 {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    margin-top: -20px;
}

.nav-menu-wrap-4-certisur {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu-3-certisur.w-nav-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    align-items: center;
}

.nav-link-2-certisur {
    position: relative;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link-2-certisur:hover {
    color: var(--primary-color, #007bff);
    transform: translateY(-2px);
}

.nav-link-2-certisur::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color, #007bff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-2-certisur:hover::after,
.w--current.nav-link-2-certisur::after {
    width: calc(100% - 20px);
}

.w--current.nav-link-2-certisur {
    color: var(--primary-color, #007bff);
}

.right-navbar-content-3-certisur {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.menu-button.w-nav-button {
    display: none;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-button.w-nav-button:hover {
    transform: scale(1.1);
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
}

/* Scrolled state */
.navbar-2-certisur.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.navbar-2-certisur.scrolled .brand-certisur .image-10 {
    height: 60px;
    margin-top: 0;
}

/* Animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-2-certisur {
    animation: fadeInDown 0.5s ease-out;
}

/* ===================================
   HERO ADJUSTMENTS
   =================================== */
.hero-wrapper {
    margin-top: -20px;
    padding-top: 0;
}

.hero-component {
    margin-top: 0;
    padding-top: 0;
}

.heading-2 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    line-height: 1.15;
}

.heading-4 {
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    line-height: 1.2;
}

/* ===================================
   FEATURES SECTION SPACING
   =================================== */
.features-cards-wrapper {
    margin-top: 8rem;
}

@media (max-width: 767px) {
    .features-cards-wrapper {
        margin-top: 4rem;
    }
}

/* ===================================
   INTEGRATIONS IMAGE
   — webflow CSS handles colors, layout and sizing.
   =================================== */
.integrations-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   STEPS SECTION — IMAGE ADJUSTMENTS
   =================================== */
.steps-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   BLOG SECTION
   =================================== */
.section-blog {
    padding: 4rem 0 2rem;
    background-color: #fff;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ===================================
   THANK YOU PAGE
   =================================== */
.section-thankyou {
    padding: 120px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
}

.thankyou-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.thankyou-icon svg {
    width: 80px;
    height: 80px;
}

/* ===================================
   FOCUS VISIBLE (accesibilidad)
   =================================== */
a:focus-visible,
button:focus-visible,
.primary-button-3:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.footer-link:focus-visible,
.w-inline-block:focus-visible {
    outline: 2px solid var(--cs-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ===================================
   RESPONSIVE — TABLET (991px)
   =================================== */
@media (max-width: 991px) {
    .nav-menu-3-certisur.w-nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height, 120px);
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu-3-certisur.w-nav-menu.w--open {
        display: block;
    }

    .nav-link-2-certisur {
        display: block !important;
        width: 100%;
        padding-bottom: 10px;
        margin: 0;
        color: #333 !important;
        background-color: white;
    }

    .menu-button {
        display: flex !important;
        z-index: 1001;
    }

    .right-navbar-content-3-certisur {
        display: none;
    }

    .double-button-component {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        align-items: center;
    }
}

/* ===================================
   RESPONSIVE — MOBILE (767px)
   =================================== */
@media (max-width: 767px) {
    body {
        padding-top: calc(var(--header-height) + 30px);
    }

    .container-4-certisur.w-container {
        padding: 0 16px;
    }

    .brand-certisur .image-10 {
        height: 30px !important;
        margin-top: -15px;
    }

    .heading-2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .heading-4 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }

    .steps-card {
        flex-direction: column !important;
        text-align: center;
    }

    .right-content {
        margin-top: 1.5rem;
    }

    .blog-list {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   DESCRIPTIVE TEXT — PESO TIPOGRÁFICO
   =================================== */
.text-size-regular {
    font-weight: 600;
}

.text-size-medium {
    font-weight: 600;
}

.steps-description div,
.opacity-60 > div > div,
.opacity-70 > div > div,
.opacity-80 > div > div {
    font-weight: 600;
}

/* ===================================
   REDUCCIÓN DE MOVIMIENTO
   =================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
