/* 
   CTvaluación - Premium Design System 
   Colors: Navy (Trust), Gold (Premium), White/Light (Clean)
*/

:root {
    --primary-color: #004d99;
    /* Corporate Blue */
    --accent-color: #e60050;
    /* Tasvaluo-like Red/Pink accent */
    --secondary-color: #004d99;
    /* Keeping it consistent */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f4f6f9;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    color: var(--white);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.text-gradient {
    background: linear-gradient(135deg, #bfa15f, #fef3c7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    /* Square/Sharp */
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    /* Clean */
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #cc0044;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    /* Reduced from 10px for even more compact vertical feel */
    background-color: var(--white);
    /* White Nav */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 125px;
    /* Reduced by ~15% from 150px */
    width: auto;
    max-width: none;
    object-fit: contain;
    transition: var(--transition);
    /* Removed drop-shadow to fix white box issue */
    filter: none;
}

.nav-menu {
    display: flex;
    gap: 10px;
    /* Ultra-tight gap for maximum horizontal fit */
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    /* Dark text for white nav */
    font-weight: 500;
    font-size: 0.75rem;
    /* Ultra-slim font size */
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #003366;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    /* Fallback background if image fails */
    background-color: var(--primary-color);
}

/* We will inject the background image dynamically or assume 'hero-bg.jpg' */
.hero {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Blue Glass Corporate Building */
    position: relative;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

/* Services */
.bg-light {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* About Me */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.visual-box {
    width: 100%;
    height: 400px;
    background-color: var(--light-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #cbd5e1;
}

/* Methodology */
.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-dark h2 {
    color: var(--white);
}

.bg-dark p {
    color: #94a3b8;
}

.methodology-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--secondary-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    right: 20px;
}

/* Contact / CTA */
.cta-section {
    background: linear-gradient(135deg, var(--white) 0%, #f1f5f9 100%);
}

.highlight-gold {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.contact-container {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-box h3 {
    color: var(--white);
    /* White title */
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--white);
    /* Ensure text is white */
}

.contact-item i {
    color: var(--accent-color);
    /* Keep icon accented or make white if preferred? User asked for letters to be white. Keeping accent might be nice usually, but let's stick to user request or keep contrast. Accent on dark blue is okay. User only said 'letters'. */
    margin-right: 15px;
    font-size: 1.4rem;
}

.contact-item a {
    color: var(--white);
    /* Ensure links are white */
    text-decoration: none;
}

.contact-item a:hover {
    color: #cbd5e1;
    /* Light gray on hover */
    text-decoration: underline;
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.1);
}

.form-note {
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #020617;
    color: #64748b;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: #94a3b8;
    margin-left: 20px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Animations */
.fade-in,
.slide-up,
.slide-left,
.slide-right {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.slide-left {
    transform: translateX(30px);
}

.slide-right {
    transform: translateX(-30px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .visual-box {
        height: 300px;
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: calc(100vh - 70px);
        /* Adjust based on navbar height */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 50px;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}