:root {
    --primary: #0a2351; /* Navy Blue */
    --secondary: #00a8e8; /* Sky Blue */
    --accent: #ffcc00; /* Gold/Yellow for CTA if needed */
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, .logo span {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo img {
    height: 80px; /* Refined size for better fit */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white background */
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo img {
        height: 60px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 35, 81, 0.9), rgba(0, 168, 232, 0.6));
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

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

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

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* About */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.strategic-base {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.base-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-left: 4px solid var(--secondary);
}

.image-box {
    position: relative;
    height: 400px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--secondary);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px; /* Aplica aquí para no cortar la medalla */
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 10; /* Asegura que esté al frente */
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

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

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(10, 35, 81, 0.9));
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Clients Section Redesign */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    align-items: center;
    justify-items: center;
    margin-top: 60px;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
}

/* Mobile Ticker Integration */
.ticker-wrapper {
    overflow: hidden;
    padding: 30px 0;
    margin-top: 50px;
}

.ticker {
    display: flex;
    gap: 60px;
    width: fit-content;
    animation: sticker 25s linear infinite;
}

.ticker img {
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
}

@keyframes sticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive Utilities */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

/* Hero Logo Enhancement */
.hero-logo {
    margin-bottom: 25px;
}

.hero-logo img {
    height: 140px; /* Balanced Hero Logo */
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white background */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    animation: fadeInDown 1s ease-out;
}

/* Footer & Form */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
}

.footer .section-title {
    color: var(--white);
}

.footer .section-title::after {
    left: 0;
    transform: none;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-form form {
    display: grid;
    gap: 20px;
}

.footer-form input, .footer-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1rem;
}

.footer-form input::placeholder, .footer-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
}

@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
