@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&family=Space+Grotesk:wght@400;500;700;900&display=swap');

:root {
    /* Brand Light Design Tokens */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --accent-blue: #0052ff;
    --accent-cyan: #00a8ff;
    --accent-purple: #6d28d9;
    --accent-purple-glow: rgba(109, 40, 217, 0.03);
    --accent-blue-glow: rgba(0, 82, 255, 0.04);
    --accent-yellow: #f59e0b;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Borders & Glassmorphism */
    --border-primary: rgba(0, 82, 255, 0.08);
    --border-hover: rgba(0, 82, 255, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 82, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.95);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Outfit', sans-serif;

    /* Utilities */
    --container-width: 1240px;
    --section-padding: 140px;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--accent-blue-glow), transparent 35%),
        radial-gradient(circle at 90% 70%, var(--accent-purple-glow), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(0, 82, 255, 0.02), transparent 30%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
}

p {
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding) 0;
    position: relative;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Section Badges */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 82, 255, 0.04);
    border: 1px solid var(--border-primary);
    color: var(--accent-blue);
    border-radius: 100px;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.section-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.4);
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--text-primary);
}

/* Glass Panels */
.glass-panel {
    background: #ffffff;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.03);
    transition: var(--transition-slow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 8px 24px rgba(0, 82, 255, 0.15);
}

.btn-primary:hover {
    background: #0040cc;
    border-color: #0040cc;
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-outline {
    background: rgba(0, 82, 255, 0.01);
    color: var(--accent-blue);
    border: 1px solid var(--border-primary);
}

.btn-outline:hover {
    background: rgba(0, 82, 255, 0.05);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 82, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.6rem;
    font-size: 1.05rem;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    z-index: 1000;
    transition: var(--transition-slow);
    padding: 0 1.8rem;
    height: 54px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.02);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    height: 46px;
    top: 8px;
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.06);
    border-color: rgba(0, 82, 255, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    width: 220px;
    height: 100%;
    text-decoration: none;
    line-height: 1;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 1px rgba(15, 23, 42, 0.7)) drop-shadow(0 1px 3px rgba(0, 82, 255, 0.25));
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo-img {
    height: 25px;
}

.nav-logo-img:hover {
    transform: translateY(-50%) scale(1.04);
}

@media (max-width: 768px) {
    .navbar {
        height: 46px;
        top: 8px;
    }
    .logo {
        width: 140px;
    }
    .nav-logo-img {
        height: 25px;
        transform: translateY(-50%);
    }
}

.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 1px rgba(15, 23, 42, 0.7)) drop-shadow(0 1px 3px rgba(0, 82, 255, 0.25));
    transition: var(--transition-fast);
}

.footer-logo-img:hover {
    transform: scale(1.04);
}

.footer .logo {
    height: auto;
    display: inline-flex;
}


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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--font-accent);
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem;
}

/* Hamburger & Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: var(--transition-slow);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-links {
    list-style: none;
    text-align: center;
    width: 80%;
}

.mobile-links li {
    margin: 1.8rem 0;
}

.mobile-links a:not(.btn) {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.mobile-links a:not(.btn):hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(0, 82, 255, 0.04);
    border: 1px solid var(--border-primary);
    border-radius: 100px;
    font-family: var(--font-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.2rem;
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00e676;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 850;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.highlight-container {
    position: relative;
    display: inline-block;
}

.highlight-text {
    position: relative;
    z-index: 1;
    color: var(--accent-blue);
}

.highlight-svg {
    position: absolute;
    bottom: -6px;
    left: -5%;
    width: 110%;
    height: auto;
    z-index: 0;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

/* Nosotros Section */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.nosotros-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-primary);
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -1rem;
    height: 80%;
    width: 1px;
    background: var(--border-primary);
}

.stat-item .counter {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    display: block;
}

/* Single Stat Layout overrides */
.single-stat-container {
    display: flex;
    justify-content: center;
}

.single-stat-container .stat-item {
    text-align: center;
}

.single-stat-container .stat-item .counter {
    font-size: clamp(3.2rem, 6.5vw, 5.2rem);
    margin-bottom: 0.8rem;
}

.single-stat-container .stat-item span {
    font-size: 1.05rem;
    letter-spacing: 2px;
    line-height: 1.5;
}

.nosotros-image {
    position: relative;
}

.nosotros-image .image-wrapper {
    position: relative;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    box-shadow: 0 20px 40px rgba(0, 82, 255, 0.04);
}

.nosotros-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
    opacity: 0.95;
}

.nosotros-image:hover img {
    transform: scale(1.03);
}

/* Bento Grid de Servicios */
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 4.5rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

/* Bento Card variations */
.servicio-card {
    padding: 2.8rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 300px;
    background: #ffffff;
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.02);
}

/* Bento Spans */
.servicio-card.bento-large {
    grid-column: span 2;
}

.servicio-card.bento-medium {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-secondary) 100%);
    border-color: rgba(0, 82, 255, 0.12);
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(0, 82, 255, 0.04), transparent 60%);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.servicio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 82, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 82, 255, 0.06);
    background: var(--bg-secondary);
}

.servicio-card:hover::before {
    opacity: 1;
}

.servicio-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 82, 255, 0.04);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.servicio-card:hover .servicio-icon {
    background: var(--accent-blue);
    color: #ffffff;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 15px rgba(0, 82, 255, 0.25);
    border-color: var(--accent-blue);
}

.servicio-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.servicio-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: rgba(0, 82, 255, 0.02);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 0.6rem 1.6rem;
    border-radius: 100px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--accent-blue);
    border-color: rgba(0, 82, 255, 0.2);
    background: rgba(0, 82, 255, 0.05);
}

.filter-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.25);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 440px;
    border: 1px solid var(--border-primary);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.02);
    transition: var(--transition-slow);
}

.portfolio-item:hover {
    border-color: rgba(0, 82, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 82, 255, 0.06);
}

.portfolio-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.35) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-category {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #ffffff;
}

.portfolio-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--accent-cyan);
    padding-bottom: 4px;
    transition: var(--transition-fast);
}

.portfolio-link::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    color: var(--accent-cyan);
    border-color: transparent;
}

.portfolio-link:hover::after {
    transform: translateX(4px);
}

/* Valores Section */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.valor-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.02);
    transition: var(--transition-slow);
}

.valor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 82, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 82, 255, 0.12), 0 0 30px rgba(0, 168, 255, 0.25);
}

.valor-icon {
    height: 100px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.valor-3d-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
    mix-blend-mode: multiply;
}

/* Staggered continuous floating animation */
.valores-grid > div:nth-child(1) .valor-3d-img {
    animation: float 4.5s ease-in-out infinite;
}
.valores-grid > div:nth-child(2) .valor-3d-img {
    animation: float 4.5s ease-in-out infinite 0.8s;
}
.valores-grid > div:nth-child(3) .valor-3d-img {
    animation: float 4.5s ease-in-out infinite 1.6s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.valor-card:hover .valor-3d-img {
    animation-play-state: paused;
    transform: scale(1.15) translateY(-4px) rotate(3deg);
}

.valor-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.valor-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tecnología NFC Section */
.tecnologia {
    overflow: hidden;
}

.tecnologia::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.04), transparent 70%);
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 0;
}

.nfc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nfc-features {
    list-style: none;
    margin-top: 2.2rem;
}

.nfc-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.nfc-features span {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.nfc-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfc-visual::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.08), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(10px);
}

.nfc-card-mockup {
    perspective: 1000px;
    z-index: 1;
}

.nfc-card {
    width: 240px;
    height: 380px;
    border-radius: 20px;
    /* Premium space gray multi-stop metallic linear gradient simulating brushed metal reflection */
    background: linear-gradient(135deg, 
        #525d6b 0%, 
        #3e4a59 25%, 
        #2e3a48 50%, 
        #202b37 75%, 
        #151f2a 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    /* Inset box shadow creates high-quality beveled, tactile edge highlight */
    box-shadow: 
        0 30px 60px rgba(15, 23, 42, 0.25), 
        0 0 40px rgba(0, 82, 255, 0.05), 
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 1.6rem;
    position: relative;
    transform: rotateY(-15deg) rotateX(12deg) rotateZ(-2deg);
    transition: var(--transition-slow);
    overflow: hidden;
}

.nfc-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.18) 48%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.18) 52%,
        transparent 60%,
        transparent 100%
    );
    transform: rotate(-25deg);
    transition: var(--transition-slow);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.nfc-card:hover {
    transform: rotateY(-5deg) rotateX(4deg) rotateZ(0deg) scale(1.04);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 35px 70px rgba(15, 23, 42, 0.35), 
        0 0 35px rgba(0, 82, 255, 0.15), 
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

.nfc-card:hover::before {
    left: 60%;
    opacity: 0.7;
}

/* Card Header */
.nfc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
    z-index: 2;
}

/* EMV Smart Chip */
.nfc-card-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 30%, #f1c40f 65%, #b8860b 100%);
    border-radius: 5px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.nfc-card-chip .chip-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.nfc-card-chip .chip-line {
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
}

.nfc-card-chip .chip-line.horizontal {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.nfc-card-chip .chip-line.vertical {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

.nfc-card-chip .chip-contact {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    background: transparent;
    pointer-events: none;
}

/* Card Contactless Wave Icon */
.nfc-card-contactless {
    color: #ffffff;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.nfc-card:hover .nfc-card-contactless {
    color: #ffd700; /* Subtle warm gold activation highlight */
    opacity: 0.95;
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

/* Center Logo Section */
.nfc-card-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    margin: 1.8rem 0;
    z-index: 2;
}

.nfc-card-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    /* Chrome/Silver hot-stamp foil style overlay and shadow */
    filter: 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) 
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
    transition: var(--transition-slow);
}

.nfc-card:hover .nfc-card-logo-img {
    transform: scale(1.06);
    filter: 
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)) 
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
        drop-shadow(0 0 8px rgba(0, 82, 255, 0.3));
}

/* QR Code Section */
.nfc-card-qr-section {
    z-index: 2;
    margin-bottom: 0.8rem;
}

.nfc-card-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: var(--transition-slow);
}

.nfc-card:hover .nfc-card-qr {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.nfc-card-qr svg {
    display: block;
}

/* Card Footer Details */
.nfc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.6rem;
    font-family: var(--font-accent);
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
    z-index: 2;
}

.nfc-card-tag {
    font-weight: 500;
}

.nfc-card-serial {
    font-weight: 600;
    opacity: 0.75;
}

/* Footer Section */
.footer {
    background: #f8fafc;
    padding-top: 6rem;
    position: relative;
    border-top: 1px solid var(--border-primary);
}

.footer-cta {
    text-align: center;
    padding: 5rem 4rem;
    background: #ffffff;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 82, 255, 0.03);
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.03), transparent 60%);
    pointer-events: none;
}

.footer-cta h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    font-weight: 800;
}

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

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.7;
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-accent);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 1.1rem;
}

.footer-links a, .footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent-blue);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

.footer-bottom {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    color: var(--text-secondary);
    background: rgba(0, 82, 255, 0.02);
    border: 1px solid var(--border-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 82, 255, 0.25);
}

/* Floating WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0px 8px 24px rgba(37, 211, 102, 0.25);
    z-index: 1000;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.4);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0px 12px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Dynamically triggered animations (Intersection Observer) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.highlight-svg.active {
    animation: drawHighlight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawHighlight {
    to { stroke-dashoffset: 0; }
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }
    
    .nosotros-grid, .nfc-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .servicio-card.bento-large {
        grid-column: span 2;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3.5rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar {
        top: 16px;
        padding: 0.5rem 1.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .servicio-card.bento-large {
        grid-column: span 1;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
    
    .footer-cta {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nfc-card {
        width: 200px;
        height: 320px;
        padding: 1.8rem 1.2rem;
    }
    
    .nfc-card-chip {
        width: 32px;
        height: 24px;
        border-radius: 4px;
    }
    
    .nfc-card-logo-img {
        height: 42px;
    }
    
    .nfc-card-qr-section .nfc-card-qr {
        padding: 6px;
        border-radius: 8px;
    }
    
    .nfc-card-qr svg {
        width: 46px;
        height: 46px;
    }
    
    .nfc-card-contactless svg {
        width: 16px;
        height: 16px;
    }
    
    .nfc-card-footer {
        font-size: 0.52rem;
        padding-top: 0.6rem;
    }
}
