/* 
    Innovar TICS - Global Styles
    Typography: made_tommy
    Accent Color: #00d28f
*/

@font-face {
    font-family: 'Made Tommy';
    src: url('assets/made_tommy/MADE%20TOMMY%20Regular_PERSONAL%20USE.otf') format('opentype');
    font-weight: 400;
}
@font-face {
    font-family: 'Made Tommy';
    src: url('assets/made_tommy/MADE%20TOMMY%20Medium_PERSONAL%20USE.otf') format('opentype');
    font-weight: 500;
}
@font-face {
    font-family: 'Made Tommy';
    src: url('assets/made_tommy/MADE%20TOMMY%20Bold_PERSONAL%20USE.otf') format('opentype');
    font-weight: 700;
}
@font-face {
    font-family: 'Made Tommy';
    src: url('assets/made_tommy/MADE%20TOMMY%20ExtraBold_PERSONAL%20USE.otf') format('opentype');
    font-weight: 800;
}
@font-face {
    font-family: 'Made Tommy';
    src: url('assets/made_tommy/MADE%20TOMMY%20Black_PERSONAL%20USE.otf') format('opentype');
    font-weight: 900;
}

:root {
    --neon-green: #00d28f;
    --text-white: #ffffff;
    --text-light-blue: #e0f7fa;
    --bg-dark: #0d0d0d;
    --overlay-color: rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Made Tommy', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5 {
    color: var(--text-white);
    font-weight: 700;
}

p {
    color: var(--text-light-blue);
}

/* Background Videos */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.fixed-bg {
    position: fixed; /* Keeps video fixed for hero effect, or we can just stick it in hero if using sections */
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--overlay-color);
    z-index: 0;
}

/* Global Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}
.logo-container .logo { max-height: 45px; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links li a { 
    color: var(--text-white); 
    text-decoration: none; 
    font-size: 1rem;
    font-weight: 500; 
    transition: all 0.3s ease; 
    padding: 5px 10px;
}
.nav-links li a:hover { 
    color: var(--neon-green); 
    text-shadow: 0 0 8px var(--neon-green); 
}
.nav-contact {
    border: 1px solid var(--neon-green);
    padding: 8px 20px !important; 
    border-radius: 20px;
    color: var(--neon-green) !important;
}
.nav-contact:hover {
    background: var(--neon-green); 
    color: #000 !important;
    box-shadow: 0 0 15px var(--neon-green);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
/* Ensure the Fixed Video stays within section relative if needed, but fixed makes it a real background. 
   Making it act as background for section only: */
.hero-section .bg-video {
    position: absolute; 
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100vh;
    width: 100%;
    padding: 80px 5% 0;
    align-items: center;
    justify-content: space-between;
}

/* Main Content Info (Text Reveal / Glitch) */
.main-info {
    width: 45%;
    max-width: 700px;
}
.main-info h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    /* Glitch preparation */
    position: relative;
    font-weight: 700;
}
.main-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Neon Button */
.btn-neon {
    background-color: var(--neon-green);
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    padding: 15px 35px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 210, 143, 0.4);
    position: relative;
    overflow: hidden;
}
.btn-neon:hover {
    box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
    transform: scale(1.05);
}

/* Hero Carousel Area */
.slider-area {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 50px;
}
.cards-container {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 30px 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
}
.cards-container::-webkit-scrollbar { display: none; }
.cards-container > .card:first-child { margin-left: auto; }

.card {
    min-width: 160px;
    height: 240px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.03); /* Glassmorphic base for logo thumbnails */
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}
.card-logo-wrapper {
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 15px 0 15px;
    position: relative;
    z-index: 2;
}
.card-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.15));
    transition: transform 0.5s ease;
}
.card-logo-wrapper img.light-bg-logo {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 15px;
    max-width: 85%;
    max-height: 75%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
    filter: none;
}
.card-logo-wrapper i {
    font-size: 3.5rem;
    color: var(--neon-green);
    filter: drop-shadow(0 0 8px var(--neon-green));
    transition: transform 0.5s ease;
}
.card::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}
.card h5 {
    position: absolute; bottom: 20px; left: 15px; z-index: 2;
    font-size: 1.1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 0 15px var(--neon-green);
    border-color: var(--neon-green);
    background: rgba(0, 210, 143, 0.08);
}
.card:hover .card-logo-wrapper img,
.card:hover .card-logo-wrapper i { 
    transform: scale(1.1); 
}
.card.active {
    border: 2px solid var(--neon-green);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 210, 143, 0.4);
}

.controls {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
    justify-content: flex-end;
    padding-right: 20px;
}
.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer; font-size: 1.2rem;
    transition: all 0.3s ease;
}
.control-btn:hover {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: #000;
}

/* Animations (Text Reveal / Glitch) */
.animate-reveal h1 { animation: slideUpReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; opacity: 0; transform: translateY(40px); }
.animate-reveal p { animation: slideUpReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s; opacity: 0; transform: translateY(40px); }
.animate-reveal button { animation: slideUpReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.4s; opacity: 0; transform: translateY(40px); }

@keyframes slideUpReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Commmon Sections Style --- */
.scroll-section {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.section-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Intersection Observer Initial States */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section 1: Soluciones --- */
.glass-slider {
    width: 100%;
    margin-top: 40px;
    padding: 20px 0;
}
.glass-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
}
.glass-card {
    background: rgba(10, 30, 85, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 35px 25px;
    width: 340px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
}
.glass-card:hover, .glass-card.active {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: rgba(10, 30, 85, 0.6);
}
.glass-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
    color: var(--text-white);
}
.glass-card p {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 25px;
}
.card-link {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: color 0.3s;
    font-size: 1.1rem;
    margin-top: auto;
}
.card-link i { display: none; }
.glass-card:hover .card-link, .glass-card.active .card-link {
    color: var(--neon-green);
}

/* --- Section 2: Quienes Somos --- */
.icons-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.icon-box i {
    font-size: 3rem;
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
}
.icon-box span {
    font-size: 1.2rem;
    font-weight: 700;
}

.adn-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.adn-left h2 {
    font-size: 4rem;
    line-height: 1.1;
}
.text-glow h2 {
    text-shadow: 0 0 20px rgba(0, 210, 143, 0.5);
}

.adn-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pill {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 20px 40px;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}
.pill:hover {
    border-color: var(--neon-green);
    background: #0d0d0d;
    box-shadow: 0 0 20px rgba(0, 210, 143, 0.2);
    transform: translateX(10px);
}
.pill h4 {
    color: var(--neon-green);
    font-size: 1.3rem;
    margin-bottom: 5px;
}
.pill p { margin: 0; font-size: 1rem; }

/* --- Section 3: Beneficios Globales --- */
.beneficios-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 5vh;
}
.beneficios-left {
    min-width: 400px;
    margin-top: 100px;
    z-index: 2;
}
.beneficios-right {
    flex-grow: 1;
    z-index: 1;
}
.giant-title {
    font-size: 5.5rem;
    line-height: 1.1;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.neon-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.neon-list li {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
}
.neon-icon {
    font-size: 2rem;
    color: var(--neon-green);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    filter: drop-shadow(0 0 8px var(--neon-green));
}

/* Responsive Variables */
@media (max-width: 1024px) {
    .main-info h1 { font-size: 3rem; }
    .giant-title { font-size: 3.5rem; }
    .adn-layout { grid-template-columns: 1fr; }
    .beneficios-layout { flex-direction: column-reverse; align-items: center; padding-top: 0; }
    .giant-title { text-align: center; font-size: 3.5rem; white-space: normal; margin-bottom: 40px; }
    .beneficios-left { margin-top: 0; min-width: 100%; max-width: 100%; }
    .slider-area { width: 100%; align-items: flex-start; }
    .hero-content { flex-direction: column; justify-content: center; padding-top: 100px; }
    .main-info { width: 100%; text-align: center; margin-bottom: 40px; }
    .cards-container { justify-content: flex-start; }
    .cards-container > .card:first-child { margin-left: 0; }
    .controls { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .main-info h1 { font-size: 2.5rem !important; }
    h1 { font-size: 2.5rem !important; }
    h2, .section-title { font-size: 2rem !important; }
    h3 { font-size: 1.5rem !important; }
    p { font-size: 1rem !important; }
    .giant-title { font-size: 2.3rem !important; }
    .pill { border-radius: 20px; padding: 15px; }
    .scroll-section { padding: 60px 5% !important; min-height: auto; }
    .hero-content { padding-top: 120px; }
    .cards-container { gap: 10px; }
    .card { min-width: 140px; height: 200px; }
    footer div { min-width: 100% !important; }

    /* Fix tall empty cards in Soluciones */
    .glass-cards-container { gap: 15px !important; }
    .glass-card { 
        width: 100% !important; 
        max-width: 340px !important; 
        height: auto !important; 
        min-height: 160px !important; 
        padding: 20px !important; 
        border-radius: 25px !important; 
    }
    .glass-card h3 { font-size: 1.5rem !important; margin-bottom: 5px !important; }
    .glass-card p { font-size: 0.9rem !important; margin-bottom: 15px !important; line-height: 1.3 !important; }
    .card-link { font-size: 0.95rem !important; padding-top: 10px; }
}
