/* 
 * MYS Consultor Integral - Design System 
 * Premium Landing Page Styles
 */

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

:root {
    /* Color Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #dbeafe;
    
    --secondary: #4f46e5;
    --secondary-light: #eef2ff;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    
    --white: #ffffff;
    --black: #000000;
    
    /* Layout */
    --container-max: 1280px;
    --nav-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-blue: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

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

.btn-nav {
    background: var(--primary);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-blue);
}

.btn-nav:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-blob-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: var(--primary-light);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-blob-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: var(--secondary-light);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 3rem;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-btns {
        flex-direction: row;
    }
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-submit:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--slate-50);
}

/* Cards Grid */
.grid {
    display: grid;
    gap: 2rem;
}

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

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card-icon {
    width: 4rem;
    height: 4rem;
    background: var(--slate-50);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--slate-600);
}

/* Problem Section */
.problems {
    background: var(--slate-50);
}

/* Ecosystem Section */
.ecosystem-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .ecosystem-wrapper {
        flex-direction: row;
        align-items: center;
    }
    .ecosystem-text {
        flex: 1;
    }
    .ecosystem-grid {
        flex: 2;
    }
}

.ecosystem-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ecosystem-quote {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    font-style: italic;
    font-weight: 500;
    font-size: 1.125rem;
}

/* Validation Section */
.validation {
    background: var(--slate-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.validation-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
}

.validation .card {
    background: rgba(255, 255, 255, 0.08); /* Fallback slightly more visible */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.validation .card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.validation .card h3 {
    color: var(--white);
}

.validation .card p {
    color: var(--slate-400);
}

.cert-card {
    padding: 0 !important; /* Remove default padding for image-focused card */
    display: flex;
    flex-direction: column;
}

.cert-image-container {
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: 1.5rem 1.5rem 0 0;
}

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

.cert-card:hover .cert-image-container img {
    transform: scale(1.1);
}

.cert-info-padding {
    padding: 1.5rem;
}

/* Form Section & Steps */
.audit-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 2.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .audit-box {
        flex-direction: row;
        padding: 4rem;
    }
}

.step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.step.active {
    display: block;
}

.step-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .step-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
    
    .step-grid.calendar-split {
        grid-template-columns: 1fr 1fr;
    }
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-100);
}

.step-header h3 {
    font-size: 2rem;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

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

/* Calendar & Time Selection */
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (min-width: 640px) {
    .calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.calendar-grid::-webkit-scrollbar {
    width: 6px;
}
.calendar-grid::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 10px;
}

.date-btn, .time-btn {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-btn:hover, .time-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.date-btn.active, .time-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.time-btn {
    justify-content: center;
    font-weight: 600;
}

.time-btn.occupied {
    background: var(--slate-100);
    color: var(--slate-400);
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: var(--slate-200);
}

.time-btn.occupied i {
    color: var(--slate-400);
}

/* Indicators */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.indicator {
    flex: 1;
    text-align: center;
    position: relative;
}

.indicator span {
    width: 2rem;
    height: 2rem;
    background: var(--slate-200);
    color: var(--slate-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 auto 0.5rem;
}

.indicator.active span {
    background: var(--primary);
    color: var(--white);
}

/* Validation Styles */
.invalid-input {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.invalid-input:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2) !important;
}

/* Footer */
footer {
    background: var(--slate-50);
    padding: 4rem 0;
    border-top: 1px solid var(--slate-200);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--slate-400);
    font-style: italic;
}
/* Validation Feedback */
.invalid-input {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1), 0 10px 15px -3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
