/* style.css - Mobile Optimized with Image Logo & Language Toggle support */

:root {
    /* "Trust" Palette */
    --bg-color: #050a10;         /* Deep Navy (Trust) */
    --text-color: #e0e6ed;       /* Platinum (Clarity) */
    --accent-color: #00e5ff;     /* Cyber Teal (Modern Defense) */
    --secondary-bg: #0f1724;     /* Gunmetal Blue (Stability) */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- RESET & BASICS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HEADER & NAV --- */
header {
    background-color: rgba(5, 10, 16, 0.98); /* Matches new dark navy theme */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2a36;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Image Styling */
.logo-link {
    display: block;
    line-height: 0; 
}

.logo-img {
    height: 50px; 
    width: auto;  
    display: block;
    transition: opacity 0.3s;
}

.logo-link:hover .logo-img {
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Ensures button aligns with text */
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Language Toggle Button Style */
.lang-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #fff;
    color: #000;
}

/* --- HERO SECTION (Updated from your Index Snippet) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Ensures text stacks correctly */
    height: 90vh; /* Full screen height */
    text-align: center;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
    max-width: 900px;
}

.hero p {
    font-size: 1.2rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.button-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* --- LAYOUT GRID --- */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
}

.card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border: 1px solid #1f2a36;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Link Card Styling */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover .card {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* --- FORMS --- */
.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--secondary-bg);
    padding: 30px;
    border: 1px solid #1f2a36;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
}

input, textarea {
    width: 100%;
    padding: 12px;
    background-color: #050a10;
    border: 1px solid #1f2a36;
    color: white;
    font-family: var(--font-main);
    border-radius: 4px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- VIDEO & EXTRAS --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid var(--accent-color);
    background: #000;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #0f1724;
    padding: 30px;
    border-left: 3px solid var(--accent-color);
    font-style: italic;
}

.client-name {
    display: block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.scenario-box {
    background: linear-gradient(145deg, #0f1724, #050a10);
    padding: 30px;
    border: 1px solid #1f2a36;
    margin: 40px 0;
}

.scenario-box h3 {
    color: #ff4444;
    margin-bottom: 15px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #1f2a36;
    margin-top: 80px;
    color: #666;
}

footer a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {
    
    header {
        flex-direction: column;
        padding: 10px 0; /* Minimal vertical padding */
    }

    .logo-img {
        height: 35px;
        margin-bottom: 5px;
    }

    /* NAVIGATION CONTAINER */
    nav {
        width: 100%;
        overflow-x: auto; /* Safety: allows scrolling if phone is extremely tiny */
        padding-bottom: 5px; /* Space for scrollbar if needed */
    }

    nav ul {
        display: flex;
        flex-wrap: nowrap; /* CRITICAL: Forces items to stay on one line */
        justify-content: center;
        align-items: center;
        gap: 8px; /* Tight gap */
        width: 100%;
        padding: 0 10px;
    }
    
    nav li {
        flex-shrink: 0; /* Prevents items from squishing to invisible */
    }

    nav a {
        font-size: 0.75rem; /* Smaller font to fit "Demo en Vivo" */
        white-space: nowrap; /* Keeps text chunks together */
    }

    /* BUTTON SPECIFIC FIXES */
    .lang-btn {
        margin-left: 0;
        padding: 2px 6px; /* Very tight padding */
        font-size: 0.7rem; /* Slightly smaller than text */
        border: 1px solid rgba(255,255,255,0.5); /* Thinner border for cleaner look */
        margin-top: 0;
    }

    /* HIDE SCROLLBAR (Optional Clean-up) */
    nav::-webkit-scrollbar {
        display: none; 
    }
    nav {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    /* Hero & Layout Adjustments */
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .card { padding: 20px; }
    .btn { width: auto; min-width: 120px; margin: 5px; }
    .section-title { font-size: 1.6rem; }
}