﻿/* Variables basadas en el logo de MARVIG */
:root {
    --primary-color: #0B6B5D; /* Verde azulado / Teal del fondo del logo */
    --primary-dark: #074e43;
    --secondary-color: #F7C025; /* Amarillo / Dorado del logo */
    --secondary-hover: #e0ac1a;
    --text-dark: #2c3e50;
    --text-light: #f8f9fa;
    --bg-light: #f4f7f6;
}

/* TipografÃ­a */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.text-yellow {
    color: var(--secondary-color) !important;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 0.7rem 0;
}

.navbar-brand {
    color: white !important;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo-m {
    color: var(--secondary-color);
    font-size: 2.2rem;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin: 0 12px;
    position: relative;
    font-size: 1.05rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

/* AnimaciÃ³n de subrayado en hover para links */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.custom-toggler {
    border-color: rgba(255,255,255,0.5);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-color: var(--primary-color);
    background: linear-gradient(135deg, #0B6B5D 0%, #053b33 100%);
    position: relative;
    overflow: hidden;
}

/* CÃ­rculo decorativo en el fondo */
.hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,192,37,0.15) 0%, rgba(247,192,37,0) 70%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.03)"/></svg>');
    z-index: 0;
}

.hero-chica-img {
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
    z-index: 2;
}

/* Botones */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11, 107, 93, 0.3) !important;
}

.btn-yellow {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-yellow:hover {
    background-color: var(--secondary-hover);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 192, 37, 0.3) !important;
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-light:hover {
    color: var(--primary-color);
    background-color: white;
    transform: translateY(-3px);
}

/* TÃ­tulos de secciÃ³n */
.section-title {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Tarjetas de Servicios */
.bg-light {
    background-color: var(--bg-light) !important;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(11, 107, 93, 0.1) !important;
}

.service-icon {
    width: 90px;
    height: 90px;
    background-color: rgba(11, 107, 93, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1) rotate(5deg);
}

/* CTA Section / Nosotros */
.cta-section {
    background: linear-gradient(rgba(11, 107, 93, 0.95), rgba(11, 107, 93, 0.95)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

/* Contacto */
.contact-info-box {
    transition: all 0.3s ease;
    background: white;
}
.contact-info-box:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background-color: rgba(247, 192, 37, 0.15);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.form-control, .form-select {
    padding: 14px 18px;
    border-radius: 12px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(11, 107, 93, 0.15);
    background-color: #fff !important;
}

/* Footer */
.footer-section {
    background-color: #042922;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animaciones */
.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-anim {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0px); }
}

/* Reveal en scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividad extra */
@media (max-width: 991px) {
    .navbar {
        background-color: var(--primary-color);
        padding: 0.5rem 0;
    }
    .hero-section {
        text-align: center !important;
    }
    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================
   PORTAFOLIO STYLES
   ========================================= */

.portfolio-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #053b33 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid #ddd;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-wrap {
    height: 250px;
}

.portfolio-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.portfolio-wrap:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 107, 93, 0.85); /* primary color with opacity */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-wrap:hover .portfolio-info {
    opacity: 1;
}

/* =========================================
   LOGOS & WHATSAPP BUTTON
   ========================================= */

.brand-logo {
    max-height: 55px;
    width: auto;
    border-radius: 4px;
}

.footer-logo {
    max-height: 80px;
    width: auto;
    border-radius: 4px;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Ajuste mÃ³vil para WhatsApp */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/* =========================================
   TECH TICKER (INFINITE SCROLL)
   ========================================= */

.tech-ticker { max-width: 100vw; width: 100%; box-sizing: border-box;
    background-color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: scrollTicker 25s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-content {
    display: flex;
    justify-content: space-around;
    min-width: 100vw;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 50px;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: default;
}

.ticker-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ticker-item i {
    font-size: 1.8rem;
}

.text-purple {
    color: #7952B3 !important;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Se desplaza la mitad (exactamente el tamaÃ±o del primer bloque) */
    }
}

/* =========================================
   TEAM SECTION
   ========================================= */

.team-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    background-color: #fff;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(11, 107, 93, 0.1) !important;
}

.team-img-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: all 0.4s ease;
}

.team-card:hover .team-img-wrap {
    transform: scale(1.05) rotate(5deg);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid white;
}

.team-social a {
    transition: all 0.3s ease;
    font-size: 1.3rem;
    display: inline-block;
}

.team-social a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px) scale(1.1);
}

/* =========================================
   STORE / TIENDA SECTION
   ========================================= */

.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1) !important;
}

.product-img-wrap {
    height: 180px;
    background-color: #f8f9fa;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    transform: rotate(45deg);
    padding: 5px 40px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out;
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}


/* Filtros m?viles en Portafolio */

/* Filtros moviles en Portafolio */


/* Filtros moviles en Portafolio */
@media (max-width: 768px) {
    .filter-wrapper {
        width: 100%;
        position: relative;
    }
    .filter-group {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: 10px; /* Espacio extra para scrollbar nativo */
        /* Desplazamiento suave para touch */
        -webkit-overflow-scrolling: touch;
        /* Ocultar barra de scroll visualmente en algunos navegadores si se desea */
        scrollbar-width: none; 
    }
    .filter-group::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}
.bg-primary-custom { background-color: var(--primary-color) !important; }

html, body { overflow-x: hidden; width: 100%; position: relative; } 
.navbar { width: 100%; max-width: 100vw; }
