/* Custom Properties: Colors & Styling */
:root {
    --primary: #048ABF;
    /* Azul Tech */
    --green: #86BF30;
    /* Verde Energía */
    --orange1: #F29F05;
    /* Naranja Vibrante */
    --orange2: #F28B0C;
    /* Naranja Cálido */
    --bg-light: #F8FAFC;
    /* Evitando negros o grises oscuros */
    --text-main: #1E293B;
    --text-muted: #64748B;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(4, 138, 191, 0.1);
    --radius: 12px;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default for desktop custom cursor */
}

/* Mobile Fallback Cursor */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    #cursorCanvas {
        display: none !important;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--primary);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Common Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Button Ripple Setup */
.btn.cta-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: -1;
}

.btn.cta-hover:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.btn-primary {
    background-color: var(--orange1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 159, 5, 0.4);
}

.btn-primary:active {
    transform: scale(0.95) !important;
}

.btn-primary:hover {
    background-color: var(--orange2);
    box-shadow: 0 8px 25px rgba(242, 139, 12, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(4, 138, 191, 0.3);
}

.btn-secondary:hover {
    background-color: #036b94;
    box-shadow: 0 8px 25px rgba(4, 138, 191, 0.5);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 65px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-weight: 500;
}

.nav-links a:not(.btn) {
    transition: color 0.3s;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--orange1);
    transition: width 0.3s;
}

.nav-links a:not(.btn):hover {
    color: var(--orange1);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }
}

/* Custom Canvas Cursor Container */
#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Animated Gradient Background */
    background: linear-gradient(45deg, var(--primary), #025070, var(--orange1), var(--orange2));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    mix-blend-mode: screen;
    /* Enhance tech particles over gradient */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.95;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-ctas {
        flex-direction: column;
    }
}

/* Valor Section - 3D Hover Cards */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-3d {
    position: relative;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(242, 139, 12, 0.15);
    /* Orange glow */
    border-color: rgba(242, 139, 12, 0.4);
}

.val-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.icon-wrap {
    width: 65px;
    height: 65px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
    box-shadow: 0 8px 20px rgba(4, 138, 191, 0.3);
}

.card-3d:hover .icon-wrap {
    transform: rotateY(180deg) scale(1.1);
    background: var(--orange2);
    box-shadow: 0 8px 20px rgba(242, 139, 12, 0.4);
}

.icon-wrap.green {
    background: var(--green);
    box-shadow: 0 8px 20px rgba(134, 191, 48, 0.3);
}

.card-3d:hover .icon-wrap.green {
    background: var(--orange1);
    box-shadow: 0 8px 20px rgba(242, 159, 5, 0.4);
}

/* Servicios Section */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 900px) {
    .span-2 {
        grid-column: span 2;
    }
}

.srv-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.3rem;
}

.srv-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.srv-card ul li i {
    color: var(--green);
    margin-top: 5px;
}

/* Tienda Section */
.grid-shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.shop-badge {
    position: absolute;
    top: 15px;
    left: -30px;
    background: var(--orange1);
    color: #fff;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(242, 159, 5, 0.3);
}

.icon-wrap-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.shop-card:hover .icon-wrap-large {
    transform: scale(1.1) rotate(5deg);
}

/* Brand Colors for Tienda */
.icon-wrap-large.capcut {
    background: linear-gradient(135deg, #111, #333);
}

.icon-wrap-large.canva {
    background: linear-gradient(135deg, #00C4CC, #7D2AE8);
}

.icon-wrap-large.ms365 {
    background: linear-gradient(135deg, #D83B01, #FFB900);
}

.icon-wrap-large.chatgpt {
    background: linear-gradient(135deg, #10A37F, #0E8C6D);
}

.icon-wrap-large.gemini {
    background: linear-gradient(135deg, #1A73E8, #4285F4);
}

.icon-wrap-large.autocad {
    background: linear-gradient(135deg, #D12F2F, #961A1A);
}

.shop-info h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.shop-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 45px;
}

.shop-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.btn-buy {
    margin-top: auto;
}

/* Portafolio Section */
.portfolio-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 3rem;
    scroll-snap-type: x mandatory;
}

.portfolio-slider::-webkit-scrollbar {
    height: 10px;
}

.portfolio-slider::-webkit-scrollbar-thumb {
    background: var(--orange1);
    border-radius: 5px;
}

.portfolio-slider::-webkit-scrollbar-track {
    background: var(--glass-border);
    border-radius: 5px;
}

.port-card {
    min-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0;
    overflow: hidden;
}

.port-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.port-card:hover img {
    transform: scale(1.08);
}

.port-info {
    padding: 1.8rem;
    background: var(--glass-bg);
}

.port-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.port-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-link {
    color: var(--orange2);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.btn-link:hover {
    gap: 0.8rem;
    color: var(--orange1);
}

/* Formularios */
.grid-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.form-title {
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
    font-size: 1.8rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 2px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--orange1);
    box-shadow: 0 0 10px rgba(242, 159, 5, 0.2);
    background: #fff;
}

.w-100 {
    width: 100%;
}

.quote-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-left: 6px solid var(--orange1);
}

/* WhatsApp Floating Button */
.floating-wa {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: #25D366;
    color: #fff;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.floating-wa:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

@media (max-width: 500px) {
    .floating-wa span {
        display: none;
    }

    .floating-wa {
        padding: 1rem;
        border-radius: 50%;
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    background: #fff;
    padding: 5rem 0 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.logo-img-small {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s;
}

.logo-img-small:hover {
    filter: grayscale(0%) opacity(1);
}

.socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-links p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0.5rem;
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
    padding: 0;
    font-size: 0.9rem;
}

.lang-switch button.active {
    color: var(--primary);
}

.lang-switch button:hover {
    color: var(--orange1);
}

.lang-switch span {
    color: var(--glass-border);
    user-select: none;
}