/* --- ZAKONI PREMIUM LANDING STYLES --- */
:root {
    --primary-bg: #0a192f;
    --secondary-bg: #112240;
    --accent: #00d2ff;
    --text-main: #e6f1ff;
    --text-gray: #8892b0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- HEADER --- */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

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

.logo-container img {
    height: 90px; /* Aumentado */
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

header.scrolled .logo-container img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

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

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

.btn-login {
    border: 1.5px solid var(--accent);
    color: var(--accent) !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-login:hover {
    background: rgba(0, 210, 255, 0.1);
}

/* --- HERO --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.85)), url('../img/landing/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1.0); }
}

.hero-content {
    max-width: 800px;
}

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

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.btn-cta {
    background: var(--accent);
    color: var(--primary-bg);
    padding: 18px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

/* --- SERVICES --- */
#servicios {
    padding: 120px 0;
    background: var(--primary-bg);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
}

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

/* --- BRANDS MARQUEE --- */
#marcas {
    padding: 60px 0;
    background: #020c1b;
    overflow: hidden;
    position: relative;
}

.marcas-track {
    display: flex;
    width: calc(300px * 40); /* Ajustado para el nuevo ancho + gap */
    animation: scroll 40s linear infinite;
    gap: 60px;
    align-items: center;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 20)); }
}

.marca-item {
    width: 240px; /* Tamaño XL */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition);
    padding: 20px;
}

.marca-item img {
    max-width: 100%;
    max-height: 85%; /* Tamaño optimizado para que luzca la marca */
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.marca-item:hover {
    opacity: 1;
}

.marca-item:hover img {
    filter: grayscale(0%) invert(0); /* Color original al pasar el mouse */
}

.service-card {
    background: var(--secondary-bg);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.05);
    transition: var(--transition);
    min-height: 380px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(2, 12, 27, 0.7);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* --- ABOUT WITH IMAGE --- */
#nosotros {
    padding: 120px 0;
    background: var(--secondary-bg);
}

.about-flex {
    display: flex;
    gap: 80px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(2, 12, 27, 0.7);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: -1;
}

/* --- CONTACT --- */
#contacto {
    padding: 120px 0;
    text-align: center;
}

.contact-card {
    background: var(--secondary-bg);
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(2, 12, 27, 0.7);
}

.contact-card h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.mail-link {
    font-size: 1.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    background: #020c1b;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 25px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-gray);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

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

/* --- MOBILE --- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-content h1 { font-size: 3rem; }
    .about-flex { flex-direction: column; gap: 40px; }
    .nav-links { display: none; }
}

/* Feature Rows Layout (New Gallery) */
.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-item.alternate {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1.2;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-image img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: contain;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-text p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media (max-width: 992px) {
    .feature-item, .feature-item.alternate {
        flex-direction: column;
        gap: 30px;
    }
}
