/* ===================================
   MANLAR Estudio Contable - Styles
   =================================== */

/* === CSS VARIABLES === */
:root {
    /* Colors */
    --color-primary: #4265F4;
    --color-primary-dark: #2847D1;
    --color-primary-light: #6B88F7;
    --color-white: #FFFFFF;
    --color-navy: #0B1B3A;
    --color-navy-light: #1A2F5A;
    --color-text-dark: #1F2937;
    --color-text-gray: #4B5563;
    --color-text-light: #6B7280;
    --color-border: #E5E7EB;
    --color-bg-light: #F9FAFB;
    --color-success: #10B981;
    --color-error: #EF4444;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows - Enhanced for depth */
    --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
    --shadow-2xl: 0 32px 64px -12px rgba(0, 0, 0, 0.14), 0 12px 24px -6px rgba(0, 0, 0, 0.06);

    /* Transitions - Smooth and professional */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slowest: 900ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max-width: 1200px;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === UTILITIES === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* === ANIMATIONS - SUBTLE & PROFESSIONAL === */

/* Base animation classes */
.fade-in {
    animation: fadeIn var(--transition-slowest) ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp var(--transition-slowest) ease-out forwards;
}

.fade-in-slow {
    animation: fadeIn 1.2s ease-out forwards;
}

.scale-in {
    animation: scaleIn var(--transition-slow) ease-out forwards;
}

/* Keyframe definitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animation setup */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slowest) ease-out,
        transform var(--transition-slowest) ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow) ease-out,
        transform var(--transition-slow) ease-out;
}

.stagger-children.animate-in>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.animate-in>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.animate-in>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.animate-in>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.animate-in>*:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.animate-in>*:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effects with shadows */
.card-hover {
    transition: transform var(--transition-base) ease-out,
        box-shadow var(--transition-base) ease-out;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 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 {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* === HEADER - TRANSPARENT OVERLAY WITH SCROLL BEHAVIOR === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Header scrolled state - solid white background */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 27, 58, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h2 {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: var(--color-navy);
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-gray);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-list {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #2C3E50;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}

/* Underline indicator - VISIBLE */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Show underline on hover */
.nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

/* Active state - full underline VISIBLE */
.nav-link.active {
    color: var(--color-navy);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    opacity: 1;
    background-color: var(--color-primary);
}

.btn-header {
    display: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(66, 101, 244, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 101, 244, 0.35);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === HEADER BUTTON === */
.btn-header-whatsapp {
    background-color: #2563EB;
    /* Royal Blue */
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-header-whatsapp:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .btn-header-whatsapp {
        display: none;
    }

    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
    }

    .nav.mobile-active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-header {
        display: inline-flex;
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (min-width: 969px) {
    .btn-header {
        display: inline-flex;
    }
}

.nav-link.active {
    color: var(--color-navy);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primary);
}

.btn-header {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.nav.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
}

.nav.mobile-active .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.nav.mobile-active .nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.nav.mobile-active .nav-link.active::after {
    display: none;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav {
        display: block;
    }

    .btn-header {
        display: inline-flex;
    }
}

/* === HERO SECTION - GUARANTEED TEXT VISIBILITY === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url('hero.png');
    background-size: cover;
    background-position: 65% center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Solid white overlay on left - GUARANTEED visibility */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgb(255, 255, 255) 0%,
            rgb(255, 255, 255) 35%,
            rgba(255, 255, 255, 0.95) 45%,
            rgba(255, 255, 255, 0.75) 55%,
            rgba(255, 255, 255, 0.30) 70%,
            rgba(255, 255, 255, 0.00) 85%);
    z-index: 1;
    pointer-events: none;
}

/* Text content - ALWAYS VISIBLE */
.hero-content {
    position: relative;
    z-index: 100;
    max-width: 650px;
    width: 100%;
    padding: 140px 3rem 70px 3rem;
    margin: 0;
}

.hero-content * {
    position: relative;
    z-index: 101;
}

/* Headline - MAXIMUM VISIBILITY */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0B1B3A;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    text-align: left;
    display: block;
}

/* Supporting paragraph - CLEAR AND READABLE */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.65;
    color: #2D3748;
    margin: 0;
    max-width: 550px;
    text-align: left;
    display: block;
}

/* Mobile optimization */
@media (max-width: 968px) {
    .hero {
        background-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(to right,
                rgba(255, 255, 255, 0.99) 0%,
                rgba(255, 255, 255, 0.97) 40%,
                rgba(255, 255, 255, 0.92) 60%,
                rgba(255, 255, 255, 0.70) 80%,
                rgba(255, 255, 255, 0.20) 95%);
    }

    .hero-content {
        padding: 100px 1.5rem 50px;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.05rem);
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 90px 1.25rem 40px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
    }
}

/* Reduced motion support - Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-content {
        opacity: 1 !important;
        transform: none !important;
        transition: opacity 100ms linear !important;
    }
}

/* === TRUST SECTION === */
.trust-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

.trust-card {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-xl);
    color: var(--color-white);
}

.trust-title {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.trust-description {
    color: var(--color-text-gray);
    line-height: 1.7;
}

/* === SERVICES SECTION === */
.services-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.section-title {
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-lg);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.service-title {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.service-features {
    margin-bottom: var(--spacing-md);
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.service-benefits {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.service-benefits h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.service-benefits p {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin: 0;
}

/* === ABOUT SECTION === */
.about-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
}

.about-text strong {
    color: var(--color-navy);
    font-weight: 600;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

@media (min-width: 640px) {
    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.value-icon {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

/* === PROCESS SECTION === */
.process-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: var(--color-white);
}

.process-section .section-title,
.process-section .section-subtitle {
    color: var(--color-white);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

@media (min-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-step {
    position: relative;
    padding: var(--spacing-xl);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.process-step:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.step-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* === FAQ SECTION === */
.faq-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-navy);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--color-primary);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    color: var(--color-text-gray);
    line-height: 1.7;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-weight: 500;
    color: var(--color-navy);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 101, 244, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    margin-top: var(--spacing-sm);
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.form-message.error {
    display: block;
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* === FLOATING WHATSAPP BUTTON REMOVED === */
.whatsapp-float {
    display: none !important;
}

/* === FOOTER === */
/* === FOOTER - CLEAN & PROFESSIONAL === */
.footer {
    background-color: #f8f9fa;
    /* Light, clean background */
    color: var(--color-text-gray);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        /* Logo wide, then columns */
        gap: 4rem;
    }
}

.footer-col h3 {
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-about {
    line-height: 1.6;
    color: var(--color-text-gray);
    max-width: 350px;
}

.footer-col h4 {
    color: var(--color-navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact strong {
    color: var(--color-navy);
    display: block;
    margin-bottom: 0.2rem;
}

.footer-contact a {
    color: var(--color-text-gray);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: #9CA3AF;
}

.footer-bottom a {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 767px) {
    .hero {
        padding: calc(80px + 2rem) 0 var(--spacing-2xl);
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-large {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ================================================
   MULTI-PAGE STYLES
   ================================================ */

/* === HEADER SOLID (for non-home pages) === */
.header.header-solid {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.header.header-solid .logo h2 {
    color: var(--color-navy);
}

.header.header-solid .logo-subtitle {
    color: var(--color-text-gray);
}

.header.header-solid .nav-link {
    color: var(--color-text-gray);
}

.header.header-solid .nav-link:hover {
    color: var(--color-primary);
    text-shadow: none;
}

.header.header-solid .nav-link.active {
    color: var(--color-primary);
}

.header.header-solid .mobile-menu-toggle span {
    background-color: #000000;
}

/* === PAGE HEADER === */
.page-header {
    padding: calc(80px + 3rem) 0 var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-white) 100%);
    text-align: center;
}

.page-title {
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* === SERVICES PREVIEW (Home) === */
.services-preview-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* === CTA SECTION === */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* === SERVICES DETAIL PAGE === */
.services-detail-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.service-detail {
    margin-bottom: var(--spacing-3xl);
}

.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.service-detail-title {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.service-detail-intro {
    font-size: 1.05rem;
    color: var(--color-text-gray);
    line-height: 1.7;
}

.service-detail-content {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.service-detail-block {
    margin-bottom: var(--spacing-xl);
}

.service-detail-block:last-child {
    margin-bottom: 0;
}

.service-detail-block h3 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.service-features-list,
.service-problems-list,
.service-benefits-list {
    list-style: none;
    padding: 0;
}

.service-features-list li,
.service-problems-list li,
.service-benefits-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-gray);
    line-height: 1.7;
}

.service-features-list li::before,
.service-benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.service-problems-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #EF4444;
    font-weight: 700;
    font-size: 1.3rem;
}

.service-benefits-list li strong {
    color: var(--color-navy);
    font-weight: 600;
}

.service-detail-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .service-detail-cta {
        flex-direction: row;
    }
}

.service-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: var(--spacing-3xl) 0;
}

/* === ABOUT US PAGE === */
.about-content-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.about-main-content {
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
}

.about-main-content h2 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-lg);
}

.about-main-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
}

.about-main-content strong {
    color: var(--color-navy);
    font-weight: 600;
}

.about-values-section {
    margin-bottom: var(--spacing-3xl);
}

.about-values-section h2 {
    color: var(--color-navy);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card .value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-xl);
    color: var(--color-white);
}

.value-card h3 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--color-text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-approach-section {
    margin-bottom: var(--spacing-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-approach-section h2 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-lg);
}

.approach-content>p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-xl);
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.approach-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.approach-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.approach-text h3 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.approach-text p {
    color: var(--color-text-gray);
    line-height: 1.7;
}

.about-commitment-section {
    max-width: 900px;
    margin: 0 auto;
}

.about-commitment-section h2 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-lg);
}

.about-commitment-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
}

.commitment-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

@media (min-width: 640px) {
    .commitment-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.commitment-icon {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

/* === CONTACT PAGE === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-info h2 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.contact-info>p {
    color: var(--color-text-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-method {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
}

.contact-method-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-md);
    color: var(--color-white);
}

.contact-method h3 {
    color: var(--color-navy);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.contact-method p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    margin: 0;
}

.contact-hours {
    font-weight: 600;
    color: var(--color-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.contact-services-list {
    background-color: var(--color-bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.contact-services-list h3 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.contact-services-list ul {
    list-style: none;
    padding: 0;
}

.contact-services-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-gray);
}

.contact-services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.contact-form-container h2 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.form-intro {
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-xl);
}

.form-row {
    margin-bottom: var(--spacing-md);
}

.form-note {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: center;
}

/* === FOOTER NAVIGATION === */
.footer-nav {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-white);
}

/* === LOGO LINK === */
.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    opacity: 0.9;
}

/* ================================================
   PREMIUM HOME SECTIONS
   ================================================ */

/* === VALUE SECTION (Navy Background) === */
.value-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #0B1B3A 0%, #1a2f5a 100%);
    text-align: center;
}

.value-intro {
    margin-bottom: var(--spacing-xl);
}

.value-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.value-grid-simple {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .value-grid-simple {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
}

.value-item-simple {
    text-align: center;
}

.value-icon-simple {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-white);
}

.value-item-simple h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 500;
}

/* === FOCUS SECTION === */
.focus-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .focus-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3xl);
    }
}

.focus-title {
    color: var(--color-navy);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

.focus-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
    margin-bottom: var(--spacing-lg);
}

.focus-text p {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.focus-image-placeholder {
    width: 100%;
    padding-top: 75%;
    /* 4:3 aspect ratio */
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #E0E7FF 100%);
    border-radius: var(--radius-lg);
    position: relative;
}

.focus-image-placeholder::after {
    content: 'Imagen profesional';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-light);
    font-style: italic;
}

/* === WHY SECTION (Background Image Overlay) === */
.why-section {
    position: relative;
    padding: var(--spacing-3xl) 0 0;
    background: linear-gradient(135deg, #0B1B3A 0%, #1a2f5a 100%);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.why-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 27, 58, 0.85);
    z-index: 1;
}

.why-section .container {
    position: relative;
    z-index: 2;
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: var(--spacing-2xl);
}

.why-logo h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
}

.why-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.why-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.why-quote-section {
    background-color: var(--color-white);
    padding: var(--spacing-2xl) 0;
    position: relative;
    z-index: 2;
}

.why-quote {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc, var(--color-bg-light));
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.why-quote p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-navy);
    font-style: italic;
    margin: 0;
}

/* === SERVICES HOME SECTION === */
.services-home-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

/* === PROCESS SECTION === */
.process-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
}

.process-step {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.process-number {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.process-title {
    color: var(--color-navy);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.process-description {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === AUTOMATIC PAGE LOAD ANIMATIONS ===

/* Page header animation */
.page-header {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Service detail cards */
.service-detail {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.service-detail:nth-child(1) {
    animation-delay: 0.3s;
}

.service-detail:nth-child(3) {
    animation-delay: 0.5s;
}

.service-detail:nth-child(5) {
    animation-delay: 0.7s;
}

/* CTA Section */
.cta-section {
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.4s forwards;
}

/* About page values */
.value-item {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}

.value-item:nth-child(1) {
    animation-delay: 0.2s;
}

.value-item:nth-child(2) {
    animation-delay: 0.3s;
}

.value-item:nth-child(3) {
    animation-delay: 0.4s;
}

.value-item:nth-child(4) {
    animation-delay: 0.5s;
}

/* Contact info cards */
.contact-info-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-info-card:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.4s;
}

/* Form container */
.form-container {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Service detail blocks */
.service-detail-block {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-detail-block:nth-child(1) {
    animation-delay: 0.4s;
}

.service-detail-block:nth-child(2) {
    animation-delay: 0.5s;
}

.service-detail-block:nth-child(3) {
    animation-delay: 0.6s;
}

.service-detail-block:nth-child(4) {
    animation-delay: 0.7s;
}



/* === WAVE TEXT ANIMATION ===
.wave-text {
    display: inline-block;
}

.wave-text .word {
    display: inline-block;
    opacity: 0;
    animation: waveWordIn 1.2s ease-out forwards;
}

@keyframes waveWordIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Wave delays - smooth and slow */
.wave-text .word:nth-child(1) {
    animation-delay: 0.1s;
}

.wave-text .word:nth-child(2) {
    animation-delay: 0.2s;
}

.wave-text .word:nth-child(3) {
    animation-delay: 0.3s;
}

.wave-text .word:nth-child(4) {
    animation-delay: 0.4s;
}

.wave-text .word:nth-child(5) {
    animation-delay: 0.5s;
}

.wave-text .word:nth-child(6) {
    animation-delay: 0.6s;
}

.wave-text .word:nth-child(7) {
    animation-delay: 0.7s;
}

.wave-text .word:nth-child(8) {
    animation-delay: 0.8s;
}

.wave-text .word:nth-child(9) {
    animation-delay: 0.9s;
}

.wave-text .word:nth-child(10) {
    animation-delay: 1.0s;
}

.wave-text .word:nth-child(11) {
    animation-delay: 1.1s;
}

.wave-text .word:nth-child(12) {
    animation-delay: 1.2s;
}

.wave-text .word:nth-child(13) {
    animation-delay: 1.3s;
}

.wave-text .word:nth-child(14) {
    animation-delay: 1.4s;
}

.wave-text .word:nth-child(15) {
    animation-delay: 1.5s;
}

.wave-text .word:nth-child(16) {
    animation-delay: 1.6s;
}

.wave-text .word:nth-child(17) {
    animation-delay: 1.7s;
}

.wave-text .word:nth-child(18) {
    animation-delay: 1.8s;
}

.wave-text .word:nth-child(19) {
    animation-delay: 1.9s;
}

.wave-text .word:nth-child(20) {
    animation-delay: 2.0s;
}


/* === MASKED TEXT REVEAL ANIMATION - PREMIUM === */
.reveal-text {
    display: block;
}

.reveal-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.reveal-word-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Revealed state - triggered by IntersectionObserver - SLOWER & SMOOTHER */
.reveal-text.revealed .reveal-word-inner {
    animation: revealWord 1200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--word-index) * 100ms);
}

@keyframes revealWord {
    0% {
        opacity: 0;
        transform: translateY(12px);
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-word-inner {
        opacity: 1 !important;
        transform: none !important;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%) !important;
        animation: none !important;
    }
}

/* === MOBILE MENU FORCED OVERRIDES === */
/* Hamburger menu lines - ALWAYS BLACK */
.header .mobile-menu-toggle span,
.mobile-menu-toggle span,
body .mobile-menu-toggle span {
    background-color: #000000 !important;
    height: 3px !important;
}

/* Active nav link - ALWAYS DARK (not white) */
.header .nav-link.active,
.nav-link.active,
body .nav-link.active,
a.nav-link.active {
    color: #0B1B3A !important;
}

/* Make sure menu text is visible in mobile drawer */
.nav.mobile-active .nav-link,
body .nav.mobile-active .nav-link {
    color: #0B1B3A !important;
}

.nav.mobile-active .nav-link.active,
body .nav.mobile-active .nav-link.active {
    color: #1e3a8a !important;
    font-weight: 700 !important;
}

/* === MOBILE OPTIMIZATION FOR SERVICES PAGE === */
@media (max-width: 768px) {

    /* Services Page - Explicit Mobile Styles */
    .services-detail-section {
        padding: 40px 0;
        background-color: #ffffff;
    }

    .service-detail {
        margin-bottom: 48px;
    }

    .service-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 24px;
    }

    .service-icon-large {
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, #3b82f6, #1e3a8a);
        border-radius: 12px;
    }

    .service-icon-large svg {
        width: 32px;
        height: 32px;
    }

    .service-detail-title {
        color: #1e3a8a;
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .service-detail-intro {
        font-size: 0.95rem;
        color: #64748b;
        line-height: 1.6;
    }

    .service-detail-content {
        background-color: #f8fafc;
        padding: 24px 16px;
        border-radius: 12px;
    }

    .service-detail-block {
        margin-bottom: 24px;
    }

    .service-detail-block h3 {
        color: #1e3a8a;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .service-features-list li,
    .service-problems-list li,
    .service-benefits-list li {
        padding-left: 24px;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: #475569;
        line-height: 1.6;
    }

    .service-detail-cta {
        flex-direction: column;
        gap: 12px;
        padding-top: 24px;
    }

    .service-detail-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .service-divider {
        margin: 32px 0;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 100px 16px 40px;
        background: #f8fafc;
    }

    .page-title {
        color: #1e3a8a;
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .page-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        color: #64748b;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 48px 16px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}