@font-face {
    font-family: 'Boring Sans';
    src: url('assets/fonts/BoringSansA-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Boring Sans';
    src: url('assets/fonts/BoringSansA-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #3b82f6; /* A professional blue */
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-alt: #f3f4f6;
    --font-heading: 'Gotham', sans-serif;
    --font-body: 'Boring Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Layout Utils */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.8);
    transition: var(--transition-smooth);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.cta-hero {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-hero:hover {
    background: white;
    color: var(--text-main);
    border-color: white;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.page-header-title {
    font-size: 4rem; 
    margin-bottom: 1rem;
}

.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.newsletter-form {
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    max-width: 600px; 
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header-title {
        font-size: 2.5rem;
    }
    
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input {
        min-width: auto !important;
    }
}

/* Hero Section Redesign */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('assets/img/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 35, 64, 0.85) 0%, rgba(10, 25, 47, 0.75) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-grid {
    display: block; /* We simplify for full-width look, or keep grid if we want text-only side */
    max-width: 900px;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    line-height: 1;
    color: white;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 4rem;
    }
    .hero-content h1 {
        font-size: 5rem;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

.hero-content p {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.hero-image img {
    width: 100%;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-alt);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.service-card:hover {
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.05);
    transform: translateY(-10px);
}

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.service-card-footer {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid rgba(0,0,0,0.1); 
    padding-top: 1.5rem;
}

@media (max-width: 480px) {
    .service-card-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

.service-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.login-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: white;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
    .hero-content h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 1024px) {
    section {
        padding: 6rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image-container {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease-in-out;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }
    
    .desktop-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col p {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom div {
        justify-content: center;
    }
    
    .hero {
        padding-top: 120px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Client Carousel */
.client-carousel-section {
    padding: 6rem 0;
    overflow: hidden;
    background: var(--bg-main);
    text-align: center;
}

.client-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.client-track-container::before,
.client-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
}

.client-track-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.client-track-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.client-track {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    align-items: center;
    animation: marquee 40s linear infinite;
}

.client-track:hover {
    animation-play-state: paused;
}

.client-logo {
    width: 150px; /* Tamaño cuadrado solicitado */
    height: 150px;
    object-fit: cover; /* Asegura que la imagen sea perfectamente cuadrada */
    border-radius: 20px;
    margin: 0 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: white;
}

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

/* Tabbed Interface for Departments */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.service-card[data-category] {
    transition: all 0.4s ease;
}

.service-card.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .tabs-nav {
        gap: 0.5rem;
    }
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.75rem;
    }
}