/* Reset & Normalize */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Imágenes y Videos Responsivos (global) ── */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #FF9900; /* Vibrant Orange */
    --primary-dark: #E68A00;
    --secondary-color: #1A1A24; /* Deep Premium Blue/Black */
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 35px rgba(255, 153, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.btn-nav):not(.dropbtn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:not(.btn-nav):hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 12px 0;
    z-index: 1;
    transition: var(--transition);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 10px 24px;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 153, 0, 0.1);
    color: var(--primary-dark) !important;
    padding-left: 30px;
}

/* Buttons */
.btn-nav {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px auto;
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.9) 0%, rgba(26, 26, 36, 0.7) 100%), url('./img/1-Banner\ principal\ .png') no-repeat center center/cover;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #DDDDDD;
    animation: fadeInUp 1.2s ease;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

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

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

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

/* Features Grid */
.features {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    top: -50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin: 0 24px;
    max-width: calc(1200px - 48px);
    margin: -50px auto 0;
    z-index: 10;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .icon-container {
    background: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Equipos */
.equipos {
    padding: 4rem 0 6rem;
    background: var(--light-bg);
}

.equipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--hover-shadow);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.badge-360 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-product {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    background: var(--light-bg);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover .btn-product {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Services */
.services-detail {
    padding: 6rem 0;
    background: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 16px;
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--card-shadow);
    transform: translateX(10px);
}

.service-item .icon-lg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-col p {
    margin-bottom: 1rem;
    max-width: 350px;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    font-size: 0.9rem;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.float-btn {
    padding: 0 20px;
    height: 65px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
}

.float-btn.whatsapp {
    background-color: #0078FF;
    transition: background-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.float-btn.whatsapp:hover {
    background-color: #25D366;
}

.float-btn:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Pulse Animation for WhatsApp */
.pulse-anim {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 120, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 120, 255, 0);
    }
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Detail Page Styles */
.product-hero {
    background: var(--secondary-color);
    padding: 3rem 0;
    color: var(--white);
    text-align: center;
}

.product-hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.product-detail-section {
    padding: 5rem 0;
    background: var(--white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-image-gallery {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.product-image-gallery img,
.product-image-gallery video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.product-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.product-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.specs-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.specs-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list .spec-icon {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.price-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.price-box h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-box .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .features {
        margin: -30px 15px 0;
    }

    /* Galería de producto en tablet */
    .product-detail-grid {
        gap: 2rem;
    }

    .product-image-gallery {
        padding: 1rem;
    }

    /* Animación 360 en tablet */
    .animation-image {
        max-height: 60vh;
    }

    /* Cards de equipos */
    .card-img-wrapper {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        padding: 2rem 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-content {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        display: none;
        margin-top: 10px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: var(--white) !important;
        border-bottom-color: rgba(255,255,255,0.1);
    }
    
    .dropdown-content a:hover {
        color: var(--primary-color) !important;
    }

    .hero {
        height: auto;
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .features {
        margin: 20px 15px 0;
        top: 0;
    }

    .grid-2, .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* ── Imágenes y Videos en móvil ── */

    /* Cards de equipos */
    .card-img-wrapper {
        height: 200px;
        padding: 16px;
    }

    .card-img-wrapper img {
        max-height: 160px;
        width: auto;
        margin: 0 auto;
    }

    /* Galería de producto */
    .product-image-gallery {
        padding: 1rem;
        border-radius: 12px;
    }

    .product-image-gallery img,
    .product-image-gallery video {
        border-radius: 8px;
    }

    /* Galería apilada (pages de producto) */
    .gallery-stack {
        gap: 12px;
    }

    .gallery-stack img,
    .gallery-stack video {
        border-radius: 8px;
    }

    /* Animación 360 en móvil */
    .sticky-container {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .animation-image {
        max-height: 55vh;
        max-width: 95vw;
    }

    .scroll-indicator {
        font-size: 0.75rem;
        padding: 6px 12px;
        bottom: 1rem;
    }

    /* Hero imagen de fondo – sin recorte en móvil */
    .hero {
        background-position: center top;
    }

    /* Logo navbar */
    .logo-img {
        height: 32px;
    }

    /* Botón flotante – texto más corto en móvil */
    .float-btn {
        height: 54px;
        font-size: 0.95rem;
        padding: 0 14px;
    }

    /* Grid de servicios – imagen icono */
    .icon-lg svg {
        width: 32px;
        height: 32px;
    }
}

/* Linktree Style Page */
.linktree-body {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2A2A3A 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 24px;
    color: var(--white);
}

.linktree-container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease;
}

.linktree-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.linktree-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    background: var(--white);
    padding: 10px;
}

.linktree-profile h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.linktree-profile p {
    color: #DDDDDD;
    font-size: 1rem;
}

.linktree-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.linktree-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.linktree-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.linktree-btn:hover::before {
    left: 100%;
}

.linktree-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 153, 0, 0.3);
    color: var(--secondary-color);
}

.linktree-btn svg {
    margin-right: 10px;
}

.linktree-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.linktree-socials a {
    color: var(--white);
    transition: var(--transition);
}

.linktree-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

/* ================================================
   Animación 360 por Scroll (páginas de producto)
   ================================================ */
.animation-track {
    height: 300vh;
    position: relative;
    background: var(--white);
    margin-bottom: -100vh;
}

.sticky-container {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('./img/fondo.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.animation-image {
    max-height: 70vh;
    max-width: 90vw;
    object-fit: contain;
    transition: opacity 0.1s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Galería apilada en páginas de producto */
.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-stack img,
.gallery-stack video {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.gallery-stack img:hover,
.gallery-stack video:hover {
    transform: scale(1.03);
}

/* Sección de detalle con z-index elevado (para superponer animación) */
.product-detail-section.over-animation {
    position: relative;
    z-index: 10;
    padding-top: 100px;
}

/* ================================================
   Utilidades de alineación (reemplazan inline styles)
   ================================================ */

/* Logo navbar */
.logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* Iconos inline en texto (footer, hero, etc.) */
.icon-inline {
    vertical-align: middle;
    margin-right: 5px;
}

/* Icono con margen izquierdo para botones */
.icon-btn {
    margin-right: 8px;
    vertical-align: middle;
}

/* Botón a ancho completo */
.btn-full {
    width: 100%;
}

/* Margen superior en enlace "volver" */
.back-link-mt {
    margin-top: 2rem;
}