/* ==========================================================================
   DPOSmart - Professional Web Portal stylesheet
   Primary Brand Color: #2596be
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Variables */
:root {
    --primary: #2596be;
    --primary-rgb: 37, 150, 190;
    --primary-hover: #1c7ba1;
    --primary-dark: #125570;
    --primary-light: #eef8fc;
    --primary-accent: #38bdf8;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 20px -3px rgba(37, 150, 190, 0.25);
    --shadow-glow: 0 0 20px rgba(37, 150, 190, 0.15);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate-700);
    background-color: var(--slate-50);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-dark { background-color: var(--slate-900); color: white; }

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

/* Section Title Styling */
.section-title {
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.section-title .badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 150, 190, 0.2);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--slate-500);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--slate-100);
}
::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header & Navigation Menu */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1.25rem 0;
    border-bottom: 1px solid transparent;
}

.navbar-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo structure */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    color: white;
}

.logo-text span {
    color: var(--primary);
}

/* Desktop Menu Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.937rem;
    font-weight: 550;
    color: var(--slate-600);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--slate-950);
}

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

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}

/* Primary Button CTA */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.937rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(37, 150, 190, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

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

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

/* Mobile Toggle Hamburger */
.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--slate-900);
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

/* Active hamburger transition */
.burger-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-toggle.open span:nth-child(2) {
    opacity: 0;
}

.burger-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 7rem;
    background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, rgba(248, 250, 252, 0) 60%),
                radial-gradient(circle at 10% 70%, rgba(37, 150, 190, 0.05) 0%, rgba(248, 250, 252, 0) 50%);
    overflow: hidden;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-800);
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-badge i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

/* Video Wrapper Element */
.video-section-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-950) 100%);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
    border: 4px solid white;
    overflow: hidden;
}

.video-glow {
    position: absolute;
    top: -5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: var(--transition-slow);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    z-index: 10;
    transition: var(--transition-normal);
}

.video-play-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-primary), 0 0 0 0 rgba(37, 150, 190, 0.4);
    transition: var(--transition-normal);
    animation: ripple 2s infinite;
    margin-bottom: 1.5rem;
}

.video-play-btn i {
    transform: translateX(3px);
}

.video-play-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.08);
}

.video-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-overlay p {
    font-size: 0.937rem;
    color: var(--slate-300);
}

.video-container:hover .video-placeholder {
    transform: scale(1.02);
}

/* Countdown Law Section */
.countdown-section {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-950) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.countdown-section .glow-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.countdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

@media (min-width: 992px) {
    .countdown-grid {
        grid-template-columns: 5fr 7fr;
    }
}

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

.countdown-info .alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(239, 68, 110, 0.15);
    color: #f87171;
    border-radius: var(--radius-full);
    border: 1px solid rgba(239, 68, 110, 0.3);
    margin-bottom: 1.5rem;
}

.countdown-info h2 {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.countdown-info p {
    color: var(--slate-300);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.countdown-info .law-highlight {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 1.5rem;
}

.countdown-info .law-highlight h4 {
    color: var(--primary-accent);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.countdown-info .law-highlight p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--slate-200);
}

.countdown-clock {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.clock-item {
    flex: 1;
    max-width: 140px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.clock-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-accent) 100%);
}

.clock-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.clock-label {
    font-size: 0.812rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Circular progress under countdown details */
.countdown-progress-container {
    margin-top: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-400);
    font-weight: 550;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-accent) 100%);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(37, 150, 190, 0.5);
}

/* Strategic Section (Excel vs platform) */
.strategic-section {
    background-color: white;
    position: relative;
}

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

@media (min-width: 992px) {
    .strategic-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.strategic-left h3 {
    font-size: 2rem;
    font-weight: 850;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.strategic-left p {
    color: var(--slate-600);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

/* Risk card overlay multas */
.multas-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.multas-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.multas-content h4 {
    color: var(--slate-900);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.multas-content p {
    margin-bottom: 0;
    font-size: 0.937rem;
    color: var(--slate-600);
}

.multas-content span {
    font-weight: 700;
    color: var(--danger);
}

.strategic-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.comparison-card {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
}

.comparison-card.positive {
    border-color: rgba(16, 185, 129, 0.3);
    background-color: rgba(16, 185, 129, 0.01);
}

.comparison-card.positive:hover {
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.comparison-card.negative {
    border-color: rgba(239, 68, 68, 0.2);
    background-color: rgba(239, 68, 68, 0.01);
}

.comparison-card.negative:hover {
    box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.comparison-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.comparison-card .header h4 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-card.positive .header h4 { color: var(--success); }
.comparison-card.negative .header h4 { color: var(--danger); }

.comparison-card .badge-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.comparison-card.positive .badge-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.comparison-card.negative .badge-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.comparison-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.937rem;
    color: var(--slate-600);
}

.comparison-list li:last-child {
    margin-bottom: 0;
}

.comparison-list li::before {
    font-family: "Font Awesome 6 Free", "Lucide", sans-serif;
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: 900;
    font-size: 0.875rem;
}

.comparison-card.positive .comparison-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
}

.comparison-card.negative .comparison-list li::before {
    content: "✗";
    color: var(--danger);
    font-weight: 700;
}

/* Modules Grid (Capacidades Técnicas) */
.modules-section {
    background-color: var(--slate-50);
}

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

@media (min-width: 576px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .modules-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.module-card {
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 150, 190, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(37, 150, 190, 0.08);
}

.module-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.5;
    flex-grow: 1;
}

.module-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--slate-100);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    align-self: flex-start;
    color: var(--slate-600);
}

.module-tag.highlight {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Strategic Benefits Section */
.benefits-section {
    background-color: white;
}

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

@media (min-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-item {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.benefit-item:hover {
    background-color: var(--slate-50);
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.benefit-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.benefit-item p {
    color: var(--slate-500);
    font-size: 0.95rem;
}

/* Metric Display in benefits */
.metrics-banner {
    background: radial-gradient(circle at 10% 10%, rgba(37, 150, 190, 0.08) 0%, rgba(255, 255, 255, 0) 55%),
                linear-gradient(135deg, var(--slate-100) 0%, var(--slate-200) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin-top: 5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    border: 1px solid var(--slate-300);
}

@media (min-width: 768px) {
    .metrics-banner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-card h4 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.metric-card p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech Stack Section (Showcase) */
.tech-section {
    background-color: var(--slate-900);
    color: white;
    position: relative;
    overflow: hidden;
}

.tech-section .section-title h2,
.tech-section .section-title p {
    color: white;
}

.tech-section .section-title .badge {
    background-color: rgba(37, 150, 190, 0.15);
    border-color: rgba(37, 150, 190, 0.3);
    color: var(--primary-accent);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-left h3 {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.tech-left p {
    color: var(--slate-300);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.tech-spec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tech-spec-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.tech-spec-item h5 {
    color: var(--primary-accent);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-spec-item p {
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.tech-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-visual-container {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    position: relative;
}

.tech-circle {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 2px dashed rgba(37, 150, 190, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 60s linear infinite;
}

.tech-circle-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: var(--radius-full);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    animation: rotate-reverse 30s linear infinite;
}

.tech-node-center {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 0 40px rgba(37, 150, 190, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.tech-node-center span {
    font-size: 0.75rem;
    font-weight: 550;
    color: var(--primary-light);
}

.tech-node {
    position: absolute;
    width: 64px;
    height: 64px;
    background-color: var(--slate-800);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.tech-node:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    box-shadow: 0 0 20px rgba(37, 150, 190, 0.3);
    transform: scale(1.1);
}

.tech-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.tech-node.n2 { right: 0; top: 50%; transform: translateY(-50%); }
.tech-node.n3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.tech-node.n4 { left: 0; top: 50%; transform: translateY(-50%); }

/* Methodology Sections */
.method-section {
    background-color: white;
}

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

@media (min-width: 992px) {
    .method-grid {
        grid-template-columns: 5fr 7fr;
        align-items: center;
    }
}

.method-left h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.method-left p {
    color: var(--slate-600);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.method-list-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.method-number {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.method-list-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--slate-700);
}

.method-right {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.phases-timeline {
    position: relative;
    padding-left: 2rem;
}

.phases-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: var(--slate-200);
}

.timeline-phase {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-phase:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background-color: white;
    border: 3px solid var(--primary);
    z-index: 2;
}

.timeline-phase:hover .timeline-dot {
    background-color: var(--primary);
}

.timeline-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--slate-500);
    margin-bottom: 0;
}

/* Pricing Plans Section */
.pricing-section {
    background-color: var(--slate-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.price-card {
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 150, 190, 0.3);
    box-shadow: var(--shadow-xl);
}

.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, white, var(--slate-50));
    box-shadow: var(--shadow-lg);
}

.price-card.featured::before {
    content: 'Recomendado';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.price-header {
    margin-bottom: 2rem;
}

.price-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-header p {
    font-size: 0.9rem;
    color: var(--slate-500);
}

.price-tag {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 850;
    color: var(--slate-900);
    line-height: 1;
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 1rem;
    color: var(--slate-500);
    font-weight: 550;
    margin-left: 0.5rem;
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.price-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--slate-600);
}

.price-feature-item i {
    color: var(--primary);
    font-size: 1rem;
}

.price-card .btn-cta {
    width: 100%;
}

/* Contact and Support Section */
.contact-section {
    background-color: white;
}

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

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.contact-left h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-left p {
    color: var(--slate-600);
    font-size: 1.0625rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-detail-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-detail-text p {
    margin-bottom: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--slate-900);
}

.partner-logo-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.partner-logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
}

.partner-logo-text h6 {
    font-size: 0.875rem;
    font-weight: 550;
    color: var(--slate-500);
    margin-bottom: 0.15rem;
}

.partner-logo-text p {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 750;
    color: var(--slate-900);
}

.contact-form-wrapper {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .form-group-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    background-color: white;
    color: var(--slate-900);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer Section */
.footer {
    background-color: var(--slate-950);
    color: var(--slate-400);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-brand .logo-container {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.937rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--slate-400);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.812rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* Scroll Animation Trigger Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Timing delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Keyframes animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

@keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(37, 150, 190, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 150, 190, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 150, 190, 0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Mobile responsive navigation overlay active state */
@media (max-width: 991px) {
    .burger-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2.5rem 3rem 2.5rem;
        gap: 1.5rem;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--slate-100);
    }
    
    .nav-menu .btn-cta {
        margin-top: 1.5rem;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ==========================================
   SUCCESS CASES SECTION (CASOS DE ÉXITO)
   ========================================== */
.success-section {
    background-color: white;
}

.success-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .success-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.success-card {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.success-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 150, 190, 0.3);
    box-shadow: var(--shadow-lg);
}

.success-logo-container {
    height: 120px;
    background-color: white;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.success-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.success-logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-800);
}

.success-logo-fallback .fallback-emblem {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.success-content {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.success-content h4 {
    font-size: 1.35rem;
    font-weight: 750;
    margin-bottom: 0.25rem;
    color: var(--slate-900);
}

.success-badge-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    align-self: flex-start;
}

.success-content p {
    font-size: 0.937rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.success-quote {
    background-color: white;
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.success-quote .quote-icon {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 24px;
    height: 24px;
    opacity: 0.08;
    color: var(--primary);
}

.success-quote p {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ==========================================
   BRAND LOGO & LAWYER GRAPHICS LAYOUT STYLES
   ========================================== */
.brand-logo-img {
    height: 142px; /* Much larger and more premium look */
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-normal);
}

.navbar-header.scrolled .brand-logo-img {
    height: 52px; /* Smoothly shrinks on scroll to keep navigation compact */
}

@media (max-width: 767px) {
    .brand-logo-img {
        height: 58px; /* Responsive size optimized for mobile devices */
    }
}

.logo-container:hover .brand-logo-img {
    transform: scale(1.02);
}

/* Responsive Grid and split layout for Hero */
.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.hero-lawyer-column {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    height: 100%;
    order: 2; /* On mobile, show lawyer below the phrase */
}

.hero-content {
    order: 1; /* On mobile, phrase comes first */
}

@media (min-width: 992px) {
    .hero-split {
        grid-template-columns: 1.2fr 0.8fr; /* Even wider lawyer column */
        gap: 4rem;
        align-items: flex-end;
    }
    
    .hero-lawyer-column {
        order: 1; /* On desktop, lawyer on left */
    }
    
    .hero-content {
        order: 2; /* On desktop, phrase on right */
        text-align: left;
        margin: 0;
        padding-bottom: 4rem;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .video-section-wrapper {
        margin-top: 2rem;
    }
    
    .hero-lawyer-img {
        max-height: 700px !important; /* Gigantic size to span the entire section height! */
    }
    
    .lawyer-avatar-wrapper {
        max-width: 700px !important; /* Wider avatar wrapper for desktop */
    }
}

.lawyer-avatar-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-lawyer-img {
    width: 140%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.22));
    display: block;
    transform: translateY(25px); /* Perfectly sits flush at the bottom edge overlaying countdown background */
}

.lawyer-badge-pill {
    position: absolute;
    bottom: 40px;
    background-color: white;
    border: 1px solid var(--slate-200);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-800);
    white-space: nowrap;
    animation: floating-badge 4s ease-in-out infinite;
}

@keyframes floating-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
