/* ============================================ */
/* VARIABLES & RESET             */
/* ============================================ */
:root {
    /* Colors - New Palette */
    --primary-blue: #0D0D0D; /* Negro profundo para un look premium y de poder */
    --secondary-blue: #1A1A1A; /* Gris muy oscuro, para fondos o elementos secundarios */
    --accent-green: #28A745; /* El verde de tu logo, como acento principal */
    --accent-green-hover: #249B40; /* Un verde más oscuro para efectos de hover */
    --accent-gray: #E0E0E0; /* Gris claro para un acento sutil y elegante */
    --light-bg: #F5F5F5; /* Un gris muy claro para fondos que no sean blancos */
    --white-color: #FFFFFF; /* Blanco puro para texto y fondos */
    --text-dark: #212529; /* Gris oscuro para texto en fondos claros */
    --text-light: #868E96; /* Gris más claro para texto secundario */

    /* Veridia Colors (Product Branding) */
    --veridia-primary: #28A745;      /* Verde principal */
    --veridia-dark: #1E7E34;         /* Verde oscuro */
    --veridia-light: #D4EDDA;        /* Verde claro */

    /* Additional semantic colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --background-light: #f8f9fa;
    --border-color: #dee2e6;

    /* Typography System */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Font Sizes - Modular Scale */
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem;  /* 36px */
    --font-size-5xl: 3rem;     /* 48px */
    --font-size-6xl: 3.75rem;  /* 60px */

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing System - 8px base */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */
    --space-24: 6rem;    /* 96px */
    --space-32: 8rem;    /* 128px */

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-dark);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); font-weight: 700; }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-4);
}

/* Mobile typography scaling */
@media (max-width: 768px) {
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--accent-green);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.section {
    padding: var(--space-24) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section__subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--accent-green);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--space-2) var(--space-4);
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 20px;
}

.section__title {
    font-size: var(--font-size-4xl);
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--line-height-tight);
    font-weight: 700;
}

/* ============================================ */
/* BUTTONS                    */
/* ============================================ */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: var(--line-height-normal);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Ripple effect on click */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background-color: var(--accent-green);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn--primary:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.35);
}

.btn--primary:active {
    transform: translateY(0) scale(0.98);
}

.btn--secondary {
    background-color: var(--white-color);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn--secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn--outline {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn--outline:hover {
    background-color: var(--white-color);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn--primary-dark {
    background-color: var(--primary-blue);
    color: var(--white-color);
}

.btn--primary-dark:hover {
    background-color: var(--secondary-blue);
}

/* CTA Button (Solicitar diagnóstico) */
.btn--cta {
    background: linear-gradient(135deg, var(--accent-green, #28A745) 0%, var(--accent-green-hover, #249B40) 100%);
    color: var(--white-color);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    animation: pulse-glow-subtle 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    line-height: 1.1;
}

.btn--cta__line1 {
    font-size: 0.75rem;
    font-weight: 600;
}

.btn--cta__line2 {
    font-size: 0.85rem;
    font-weight: 700;
}

.btn--cta:hover {
    background: linear-gradient(135deg, var(--accent-green-hover, #249B40) 0%, var(--veridia-dark, #1E7E34) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    animation: none;
}

/* Subtle pulse glow for header CTA */
@keyframes pulse-glow-subtle {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 6px 24px rgba(40, 167, 69, 0.5);
    }
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-option {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.lang-option:hover {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
    color: var(--accent-green);
    background-color: rgba(40, 167, 69, 0.15);
    font-weight: 700;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* ============================================ */
/* HEADER & NAV                  */
/* ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.nav__logo img {
    height: 100px;
}

.nav__list {
    display: flex;
    gap: var(--space-10);
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white-color);
    position: relative;
    transition: var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-green);
    transition: var(--transition-fast);
}

.nav__link:hover {
    color: var(--accent-green);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__toggle {
    display: none;
    color: var(--white-color);
    cursor: pointer;
}

/* ============================================ */
/* HERO                     */
/* ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white-color);
    padding: var(--space-32) 0 var(--space-16);
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero__title {
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
    color: var(--white-color);
}

.hero__description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    max-width: 500px;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: nowrap;
    justify-content: center;
}

@media screen and (max-width: 768px) {
   .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.hero__image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    border-radius: 15px;
}

/* ============================================ */
/* TRUST BAR                   */
/* ============================================ */
.trust-bar {
    background-color: var(--light-bg);
    padding: 2rem 0;
}

.trust-bar__title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.trust-bar__logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-bar__logos img {
    height: 30px;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.trust-bar__logos img:hover {
    opacity: 1;
}

/* ============================================ */
/* SOLUTIONS                   */
/* ============================================ */
.solutions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.solution-card {
    background-color: var(--white-color);
    padding: var(--space-10);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--light-bg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-green);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.solution-card:hover::before {
    left: 150%;
}

.solution-card__icon {
    position: relative;
    z-index: 2;
}

.solution-card__icon img {
    height: 80px;
    width: auto;
    margin-bottom: var(--space-4);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.solution-card:hover .solution-card__icon img {
    transform: scale(1.05);
}

.solution-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
}

.solution-card__description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-light);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
}

.solution-card__link {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
}

.solution-card__link:hover {
    color: var(--accent-green-hover);
    gap: var(--space-3);
}

/* ============================================ */
/* CASE STUDIES                 */
/* ============================================ */
.case-studies {
    background-color: var(--light-bg);
}

.case-studies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.case-study-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(40, 167, 69, 0.1);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.case-study-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--veridia-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 3;
}

.case-study-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(40, 167, 69, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.case-study-card:hover::after {
    transform: scaleX(1);
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.case-study-card:hover::before {
    left: 150%;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .case-study-card {
    background: rgba(255, 255, 255, 0.98);
  }
}

.case-study-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-fast);
}

.case-study-card:hover .case-study-card__image {
    transform: scale(1.05);
}

.case-study-card__content {
    padding: var(--space-6);
    position: relative;
    z-index: 2;
}

.case-study-card__client {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-green);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.case-study-card__title {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-4);
    color: var(--primary-blue);
}

.case-study-card__metric {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: var(--space-6);
    padding-top: var(--space-4);
    border-top: 2px solid var(--light-bg);
}

/* ============================================ */
/* BLOG / RESOURCES SECTION             */
/* ============================================ */
.light-bg {
    background-color: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.blog-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-8);
    border-radius: 16px;
    border: 1px solid rgba(40, 167, 69, 0.1);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--veridia-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(40, 167, 69, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.blog-card:hover::after {
    transform: scaleX(1);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: rgba(40, 167, 69, 0.05);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.blog-card:hover::before {
    left: 150%;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .blog-card {
    background: rgba(255, 255, 255, 0.98);
  }
}

.blog-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
    color: var(--primary-blue);
    line-height: var(--line-height-tight);
    font-weight: 700;
}

.blog-card__excerpt {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
    flex-grow: 1;
    line-height: var(--line-height-normal);
}

.blog-card__link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    transition: all 0.2s ease;
}

.blog-card__link:hover {
    color: var(--accent-green-hover);
    gap: var(--space-3);
}

/* ============================================ */
/* BLOG ARTICLE CONTENT                       */
/* ============================================ */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-family: var(--font-heading);
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: decimal;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-content a {
    color: var(--accent-green);
    text-decoration: underline;
}

.blog-content a:hover {
    color: var(--primary-blue);
}

.blog-author {
    font-weight: 500;
    color: var(--primary-blue);
}

.blog-page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media screen and (min-width: 768px) {
    .blog-page-content {
        grid-template-columns: 1fr 3fr;
    }
}

.blog-sidebar {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-block {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
}

.author-list {
    list-style: none;
    padding: 0;
}

.author-list li {
    margin-bottom: 0.8rem;
}

.author-list a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-fast);
}

.author-list a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-search-container {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.blog-search-input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--white-color);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.blog-search-input:focus {
    background-color: var(--white-color);
    color: var(--text-dark);
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white-color);
    border: 2px solid var(--light-bg);
    border-radius: 12px;
    margin-bottom: var(--space-4);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-8);
    cursor: pointer;
    background-color: var(--white-color);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-bg);
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-item.active .faq-question {
    background-color: var(--light-bg);
    border-bottom-color: var(--accent-green);
}

.faq-question h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-blue);
    margin: 0;
    flex-grow: 1;
    font-weight: 600;
    line-height: var(--line-height-normal);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230A2240' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--white-color);
}

.faq-item.active .faq-answer {
    padding: var(--space-6) var(--space-8) var(--space-8) var(--space-8);
}

.faq-answer p {
    color: var(--text-dark);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.faq-answer p {
    margin-bottom: 0;
    color: var(--text-dark);
}

.footer {
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__logo img {
    height: 100px;
    margin-bottom: var(--space-4);
}

.footer__description {
    opacity: 0.85;
    max-width: 300px;
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

.footer__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-6);
    color: var(--white-color);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--space-2);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-green);
}

.footer__link {
    color: var(--white-color);
    opacity: 0.85;
    display: block;
    margin-bottom: var(--space-3);
    transition: all 0.2s ease;
    padding-left: var(--space-2);
}

.footer__link:hover {
    opacity: 1;
    color: var(--accent-green);
    padding-left: var(--space-4);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.75;
    font-size: var(--font-size-sm);
}

.nav__item.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: var(--secondary-blue);
    padding: 1rem 0;
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
}

.submenu li {
    padding: 0 1.5rem;
}

.submenu .nav__link {
    color: var(--white-color);
    display: block;
    padding: 0.5rem 0;
}

.submenu .nav__link:hover {
    color: var(--accent-green);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav__item.has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .nav__item.has-submenu .submenu {
        position: static;
        background-color: transparent;
        box-shadow: none;
        width: auto;
        min-width: unset;
        padding: 0;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .submenu .nav__link {
        padding-left: 2.5rem;
        color: var(--white-color);
    }

    .submenu .nav__link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav__item.has-submenu > .nav__link::after {
        width: 0;
    }
}

.differentiators__list {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.differentiators__list p {
    padding: 0.8rem 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

.differentiators__list p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
    z-index: 1;
}

.differentiators__list p:hover::before {
    left: 150%;
}

.differentiators__list p:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
}

@media screen and (min-width: 768px) {
    .differentiators__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (min-width: 992px) {
    .differentiators__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nosotros-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    color: var(--text-dark);
    line-height: 1.7;
}

.nosotros-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.nosotros-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.nosotros-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.nosotros-content li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 1.1rem;
}

.nosotros-content p {
    margin-bottom: 1rem;
}

/* Veridia Highlight Section */
.veridia-highlight {
    color: var(--veridia-dark, #1E7E34) !important;
    position: relative;
    padding-left: 1.5rem;
}

.veridia-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green) 0%, var(--veridia-dark) 100%);
    border-radius: 2px;
}

.veridia-content {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(30, 126, 52, 0.08) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-green);
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
}

.veridia-content strong {
    color: var(--veridia-dark, #1E7E34);
    font-weight: 700;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

@media screen and (max-width: 768px) {
    .footer__socials {
        justify-content: center;
    }
}

.footer__social-link {
    color: var(--white-color);
    opacity: 0.8;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer__social-link:hover {
    opacity: 1;
    color: var(--accent-green);
}

/* ============================================ */
/* FOOTER SOCIALS                               */
/* ============================================ */
.footer__socials {
    display: flex;
    gap: 1.5rem; /* Un poco más de espacio entre los iconos */
    justify-content: flex-start;
}

@media screen and (max-width: 768px) {
    .footer__socials {
        justify-content: center;
    }
}

.footer__social-link {
    color: var(--white-color);
    transition: var(--transition-fast);
    /* No tiene opacity: 0.8; para que los iconos siempre sean brillantes */
    display: flex;
    align-items: center;
}

.footer__social-link svg {
    /* Forzamos el color para que no haya conflictos */
    fill: currentColor !important;
    stroke: currentColor !important;
    color: currentColor !important;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
}

.footer__social-link:hover {
    color: var(--accent-green);
}

.footer__social-link:hover svg {
    color: var(--accent-green); /* Cambia el color del icono al hacer hover */
    fill: var(--accent-green); /* Para iconos con relleno */
    stroke: var(--accent-green); /* Para iconos con contorno */
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: var(--space-12);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 2px solid var(--light-bg);
}

.form-intro {
    text-align: center;
    margin-bottom: var(--space-8);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-dark);
}

.contact-form .form-group {
    margin-bottom: var(--space-6);
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--accent-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--text-dark);
    transition: all var(--transition-fast);
    background-color: var(--white-color);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    outline: none;
    background-color: #fafffe;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .required {
    color: #dc3545;
    font-weight: bold;
}

.contact-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.contact-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0;
    cursor: pointer;
}

.contact-form .checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.contact-form .checkbox-privacy {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-form .checkbox-privacy label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.contact-form .checkbox-privacy input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.contact-form .checkbox-privacy a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-form .checkbox-privacy a:hover {
    color: var(--accent-green);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-top: var(--space-4);
}

/* Form Validation States */
.contact-form .is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.contact-form .is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-status-message {
    margin-top: var(--space-6);
    padding: var(--space-4);
    border-radius: 8px;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    display: none;
}

.form-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.form-status-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

.form-status-message {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
    font-weight: 600;
}

.form-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.coming-soon-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.coming-soon-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

@media screen and (max-width: 992px) {
   .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
   .hero__content {
        order: 2;
    }
   .hero__image {
        order: 1;
        margin-bottom: 2rem;
    }
   .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
   .hero__buttons {
        justify-content: center;
    }
   .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
   .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-fast);
        z-index: 99; /* Below toggle (101) but above backdrop (90) */
    }
   .nav__menu.show-menu {
        right: 0;
    }
   .nav__list {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4); /* More space between items */
    }
   .nav__toggle {
        display: block;
        z-index: 101; /* Always accessible */
    }
   /* Hide CTA and lang-switcher on mobile (already in menu) */
   .nav__actions .btn--cta,
   .nav__actions .lang-switcher {
        display: none;
    }
   .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
   .footer__description {
        margin: 0 auto var(--space-4);
    }
   .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
   .footer__link {
        padding-left: 0;
    }
   .footer__link:hover {
        padding-left: 0;
    }

    /* Mobile Spacing Optimizations */
    .section {
        padding: var(--space-16) 0;
    }

    .section__header {
        margin-bottom: var(--space-8);
    }

    .hero {
        padding: var(--space-20) 0 var(--space-12);
    }

    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .hero__description {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-6);
    }

    .hero__image {
        margin-bottom: var(--space-8);
    }

    .hero__buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero__buttons .btn {
        width: 100%;
        text-align: center;
    }

    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
}

/* ============================================ */
/* RESPONSIVE: Mobile Small (480px)            */
/* ============================================ */
@media screen and (max-width: 480px) {
    /* Container Adjustments */
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    /* Section Spacing */
    .section {
        padding: var(--space-12) 0;
    }

    /* Hero Section */
    .hero {
        padding: var(--space-16) 0 var(--space-8);
    }

    .hero__title {
        font-size: var(--font-size-3xl); /* ~30px */
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero__description {
        font-size: var(--font-size-base); /* ~16px */
        line-height: 1.6;
        margin-bottom: var(--space-4);
    }

    .hero__image {
        max-width: 100%;
        margin-bottom: var(--space-6);
    }

    .hero__buttons {
        gap: var(--space-3);
    }

    .hero__buttons .btn {
        width: 100%;
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-base);
    }

    /* Typography Scaling */
    h1 { font-size: var(--font-size-3xl); } /* 30px */
    h2 { font-size: var(--font-size-2xl); } /* 24px */
    h3 { font-size: var(--font-size-xl); }  /* 20px */
    h4 { font-size: var(--font-size-lg); }  /* 18px */

    /* Section Headers */
    .section__title {
        font-size: var(--font-size-2xl);
    }

    .section__subtitle {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-3);
    }
}

/* ============================================ */
/* RESPONSIVE: Mobile Extra Small (375px)      */
/* ============================================ */
@media screen and (max-width: 375px) {
    /* Hero Section - Extra Small Phones */
    .hero__title {
        font-size: 1.75rem; /* ~28px */
    }

    .hero__description {
        font-size: 0.9375rem; /* ~15px */
    }

    /* Even Tighter Container */
    .container {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }

    /* Button Adjustments */
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }

    /* Typography */
    h1 { font-size: 1.75rem; } /* ~28px */
    h2 { font-size: var(--font-size-xl); } /* 20px */
}

/* ============================================ */
/* TEXT OVERFLOW UTILITIES                     */
/* ============================================ */
.text-wrap {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Apply text wrapping to headings by default */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Buttons should wrap on mobile */
.btn {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* On desktop, prevent button text wrapping */
@media screen and (min-width: 769px) {
    .btn {
        white-space: nowrap;
    }
}

/* ============================================ */
/* SCROLL REVEAL ANIMATIONS                    */
/* ============================================ */

/* Fade Up */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Scale */
.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Fade In Left */
.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In */
.animate-fade {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade.revealed {
    opacity: 1;
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children > *.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================ */
/* GLASSMORPHISM & PREMIUM CARDS               */
/* ============================================ */

.card-glass,
.solution-card,
.blog-card,
.case-study-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism hover effect */
.card-glass:hover,
.solution-card:hover,
.blog-card:hover,
.case-study-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
}

/* Gradient overlay on hover */
.card-glass::before,
.solution-card::before,
.blog-card::before,
.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(40, 167, 69, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.card-glass:hover::before,
.solution-card:hover::before,
.blog-card:hover::before,
.case-study-card:hover::before {
    opacity: 1;
}

/* 3D Tilt Effect */
.card-3d {
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-5px);
}

/* Ripple Effect for Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================ */
/* GRADIENT BORDERS                            */
/* ============================================ */

.card-gradient-border {
    position: relative;
    background: linear-gradient(135deg, var(--accent-green), var(--veridia-dark));
    padding: 2px;
    border-radius: 16px;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--white-color);
    border-radius: 14px;
    z-index: -1;
}

/* ============================================ */
/* LOADING ANIMATION                           */
/* ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo img {
    width: 120px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--veridia-dark));
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 50%;
        margin-left: 25%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* ============================================ */
/* SECTION DIVIDERS                            */
/* ============================================ */

.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    line-height: 0;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.section-divider .shape-fill {
    fill: var(--background-light);
}

/* ============================================ */
/* PARALLAX EFFECTS                            */
/* ============================================ */

.parallax-slow {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ============================================ */
/* FALLBACKS                                   */
/* ============================================ */

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .card-glass,
    .solution-card,
    .blog-card,
    .case-study-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll,
    .animate-scale,
    .animate-left,
    .animate-right,
    .animate-fade,
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
}

/* ============================================ */
/* MOBILE & TOUCH OPTIMIZATIONS               */
/* ============================================ */

/* Minimum touch target sizes */
@media (max-width: 768px) {
    .btn,
    a.btn,
    button,
    .card-link,
    .nav__link {
        min-height: 44px;
        min-width: 44px;
        padding: 0.875rem 1.5rem;
    }

    /* Larger tap areas for small buttons */
    .btn--cta {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
}

/* Touch feedback - no hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Disable transform hover effects on cards */
    .card:hover,
    .solution-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .trust-metric:hover {
        transform: none !important;
    }

    /* Keep only shadow changes on touch */
    .card:active,
    .solution-card:active,
    .blog-card:active,
    .case-study-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Button active states for touch */
    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

/* Prevent text selection during interactions */
.btn,
.card,
button,
.nav__link {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Allow text selection in content */
.card p,
.card li,
.section p,
article {
    user-select: text;
}

/* Smooth touch scrolling */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Optimize font sizes for readability on mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    input,
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on focus */
    }
}

/* Spacing improvements for mobile */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section__header {
        margin-bottom: 2rem;
    }
}

/* Better card spacing on mobile */
@media (max-width: 768px) {
    .card,
    .solution-card,
    .blog-card,
    .case-study-card {
        margin-bottom: 1.5rem;
    }
}

/* ============================================ */
/* IMAGE OPTIMIZATION                           */
/* ============================================ */

/* Global image optimization */
img {
    /* Lazy loading hint for browser */
    loading: lazy;

    /* Async decoding for better performance */
    decoding: async;

    /* Prevent layout shift */
    max-width: 100%;
    height: auto;
    display: block;
}

/* Blog content images */
.blog-content img {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    loading: lazy;
    decoding: async;
}

/* Hero and above-the-fold images should load eagerly */
.hero img,
.section:first-of-type img {
    loading: eager;
    fetchpriority: high;
}

/* Responsive images with proper aspect ratio */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* WebP support detection */
@supports (object-fit: cover) {
    picture img {
        object-fit: cover;
        object-position: center;
    }
}