/* ==========================================
   DOMAIN CONSULTORÍA - MODERN CSS STYLES
   ========================================== */

/* CSS Custom Properties - Color Palette */
:root {
    /* Main Colors */
    --primary-bg: #1e1b4b;           /* Индиго фон */
    --accent-neon: #f5e050;          /* Неоново-желтый */
    --accent-mint: #3ef3c1;          /* Мятный */
    --text-light: #e4e4e4;           /* Светлый серый */
    --text-dark: #101010;            /* Глубокий черный */
    
    /* Gradients */
    --btn-gradient: linear-gradient(135deg, #3ef3c1 0%, #f5e050 100%);
    --hero-gradient: linear-gradient(135deg, #1e1b4b 0%, #2d2a5e 100%);
    --card-gradient: linear-gradient(145deg, #252250 0%, #1e1b4b 100%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-light);
    background: var(--primary-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.section {
    padding: var(--space-xxl) 0;
}

.section-alt {
    background: var(--card-gradient);
    position: relative;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

h1 {
    font-size: var(--font-size-4xl);
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--font-size-3xl);
    color: var(--accent-mint);
}

h3 {
    font-size: var(--font-size-2xl);
    color: var(--accent-neon);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
    font-size: var(--font-size-base);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 300;
    opacity: 0.9;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn-primary {
    background: var(--btn-gradient);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-mint);
    border: 2px solid var(--accent-mint);
}

.btn-secondary:hover {
    background: var(--accent-mint);
    color: var(--text-dark);
}

.btn-large {
    padding: var(--space-lg) var(--space-xxl);
    font-size: var(--font-size-lg);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--accent-mint);
}

.logo-svg {
    width: 40px;
    height: 40px;
    margin-right: var(--space-sm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-neon);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--btn-gradient);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-mint);
    margin: 3px 0;
    transition: var(--transition-base);
    border-radius: 2px;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
    margin-top: 80px;
}

/* Offset para anclas */
.content-section {
    scroll-margin-top: 100px;
}

#sobre-nosotros,
#servicios,
#contacto {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    padding: var(--space-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/jHNinJ.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-lg);
}

.hero .lead {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: var(--space-xxl) 0;
}

.content-section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid rgba(62, 243, 193, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(62, 243, 193, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--btn-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--text-dark);
}

/* Services Table */
.services-table {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: var(--space-xl) 0;
}

.services-header {
    background: var(--btn-gradient);
    color: var(--text-dark);
    padding: var(--space-lg);
    text-align: center;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    border-bottom: 1px solid rgba(62, 243, 193, 0.1);
}

.service-item {
    padding: var(--space-lg);
    text-align: center;
    border-right: 1px solid rgba(62, 243, 193, 0.1);
    transition: var(--transition-base);
}

.service-item:hover {
    background: rgba(62, 243, 193, 0.05);
}

.service-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-neon);
    margin-bottom: var(--space-sm);
}

/* Form Styles */
.form-container {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--accent-mint);
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid rgba(62, 243, 193, 0.2);
    border-radius: var(--radius-md);
    background: rgba(30, 27, 75, 0.8);
    color: var(--text-light);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-mint);
    box-shadow: 0 0 0 3px rgba(62, 243, 193, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-input {
    width: auto;
    margin-top: 4px;
}

.checkbox-label {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: #0f0d2e;
    padding: var(--space-xxl) 0 var(--space-lg);
    border-top: 1px solid rgba(62, 243, 193, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-title {
    color: var(--accent-mint);
    margin-bottom: var(--space-md);
}

.footer-subtitle {
    color: var(--accent-neon);
    margin-bottom: var(--space-md);
}

.footer-description {
    opacity: 0.8;
    font-size: var(--font-size-sm);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-mint);
    flex-shrink: 0;
}

.contact-item a:hover {
    color: var(--accent-neon);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    transition: var(--transition-base);
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-neon);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(62, 243, 193, 0.1);
}

.copyright {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    margin: 0;
}

/* ==========================================
   COOKIE BANNER
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-gradient);
    border-top: 1px solid var(--accent-mint);
    z-index: 1001;
    transition: opacity var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-lg);
}

.cookie-text h4 {
    color: var(--accent-neon);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
}

.cookie-text p {
    margin: 0;
    font-size: var(--font-size-sm);
}

.cookie-link {
    color: var(--accent-mint);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--accent-neon);
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    :root {
        --space-xxl: 2.5rem;
        --space-xl: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-bg);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-menu-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle-active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: var(--space-xl) 0;
        min-height: 70vh;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .services-row {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        border-right: none;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-sm);
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .form-container {
        padding: var(--space-lg);
    }
} 