/* ===== RESET Y VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tst-green: #1F6F63;
    --tst-green-light: #3FAE9A;
    --tst-dark: #0E2E2A;
    --tst-white: #FFFFFF;
    --tst-gray: #E6ECEB;
    --tst-accent: #00D4AA;
    --gradient-primary: linear-gradient(135deg, #1F6F63, #3FAE9A);
    --gradient-secondary: linear-gradient(135deg, #3FAE9A, #00D4AA);
    --shadow-primary: 0 15px 40px rgba(31, 111, 99, 0.3);
    --shadow-hover: 0 25px 60px rgba(31, 111, 99, 0.4);
    --card-bg: rgba(14, 46, 42, 0.6);
    --card-border: rgba(63, 174, 154, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--tst-green);
    color: var(--tst-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.splash-active {
    overflow: hidden;
}

/* ===== HEADER PROFESSIONAL (EXACTO COMO QUIERES) ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.35s ease;
    transform-origin: center;
}

/* ZOOM COMPLETO */
.logo-container:hover {
    transform: scale(1.15);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: logoPulse 3s infinite ease-in-out;
}

.hero-logo::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(63, 174, 154, 0.6),
            transparent 70%);
    filter: blur(15px);
    opacity: 0.8;
}

.hero-logo img {
    width: 70%;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tst-green);
    margin: 0;
    line-height: 1;
}

.brand-text p {
    font-size: 0.75rem;
    color: var(--tst-green-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(14,46,42,0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--tst-green);
    background: rgba(63,174,154,0.08);
}

.nav-links a.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(63,174,154,0.3);
}

.nav-links a.active:hover {
    box-shadow: 0 6px 20px rgba(63,174,154,0.4);
    transform: translateY(-1px);
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(63,174,154,0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(63,174,154,0.35);
}

/* ===== MOBILE MENU (EXACTO) ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--tst-green);
    font-size: 1.8rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--tst-gray);
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: white;
    padding: 6rem 2rem 2rem;
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    color: var(--tst-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    background: var(--tst-gray);
    transform: translateX(10px);
}

/* ===== HERO SECTION (EXACTO COMO QUIERES) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 4rem 4rem;
    background: var(--tst-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(63, 174, 154, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(31, 111, 99, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

.hero-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-logo img {
    width: 90px;
    height: auto;
    flex-shrink: 0;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--tst-white);
}

.hero-text .subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.7;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(63, 174, 154, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tst-green-light);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--tst-gray);
    transform: translateY(-5px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-ring 4s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 111, 99, 0.7);
    }

    70% {
        box-shadow: 0 0 0 60px rgba(31, 111, 99, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(31, 111, 99, 0);
    }
}

.visual-circle::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: white;
}

.visual-circle i {
    font-size: 12rem;
    color: var(--tst-green);
    position: relative;
    z-index: 1;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float-badge 6s ease-in-out infinite;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.badge-1 {
    top: 20px;
    right: -50px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 50px;
    left: -50px;
    animation-delay: 2s;
}

.badge-3 {
    bottom: -20px;
    right: 30px;
    animation-delay: 4s;
}

.floating-badge i {
    font-size: 2rem;
    color: var(--tst-green);
    margin-bottom: 0.5rem;
}

.floating-badge strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--tst-dark);
}

.floating-badge p {
    font-size: 0.85rem;
    color: #5a7974;
    margin: 0;
}

/* ===== CLIENTES GRID (EXACTO COMO QUIERES) ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    align-items: stretch;
}

.client-logo {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(63, 174, 154, 0.25);
    border-radius: 18px;
    padding: 2.5rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo img {
    max-width: 200px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.client-logo:hover img {
    transform: scale(1.1);
}

/* ===== LAYOUT GENERAL ===== */
section {
    padding: 8rem 4rem;
    width: 100%;
}

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

/* ===== SECCIONES GENERALES ===== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--tst-gray);
    color: var(--tst-green);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--tst-white);
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
#servicios {
    background: var(--tst-green);
}

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

.service-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--tst-green-light);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--tst-green-light);
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--tst-white);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 0.8rem 1rem;
    padding-left: 3rem;
    position: relative;
    color: white;
    /* Cambiado a blanco puro */
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(63, 174, 154, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.service-features li:hover {
    background: rgba(63, 174, 154, 0.15);
    transform: translateX(10px) scale(1.02);
    border-color: var(--tst-green-light);
    box-shadow: 0 5px 15px rgba(31, 111, 99, 0.2);
    color: var(--tst-white);
    /* Asegura que siga blanco */
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--tst-green-light);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.service-features li:hover::before {
    transform: scale(1.3);
    color: var(--tst-white);
}

/* ===== WHY TST SECTION ===== */
.why-tst {
    background: var(--tst-dark);
    padding: 8rem 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: rgba(63, 174, 154, 0.15);
    border: 2px solid var(--tst-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon i {
    font-size: 3rem;
    color: var(--tst-green-light);
}

.feature-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--tst-white);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
    background: var(--tst-dark);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: calc(50% - 40px);
    padding: 0 4rem;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: calc(50% + 40px);
}

.timeline-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--tst-green-light);
}

.timeline-year {
    position: absolute;
    top: -40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tst-green-light);
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -60px;
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--tst-white);
}

.timeline-content ul {
    list-style: none;
    margin-top: 1rem;
}

.timeline-content li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--tst-green-light);
}

/* ===== PROYECTOS SECTION ===== */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.proyecto-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--tst-green-light);
}

.proyecto-header {
    padding: 2rem;
    background: rgba(31, 111, 99, 0.2);
    text-align: center;
    border-bottom: 2px solid var(--tst-green-light);
}

.proyecto-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: var(--tst-white);
}

.proyecto-body {
    padding: 2rem;
}

.proyecto-body p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.proyecto-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: rgba(63, 174, 154, 0.25);
    color: white;
    /* Cambiado a blanco */
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(63, 174, 154, 0.3);
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    transform-origin: center;
}

.tech-tag:hover {
    background: rgba(63, 174, 154, 0.4);
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 111, 99, 0.3);
    border-color: var(--tst-green-light);
    color: white;
}

/* ===== CONTACTO SECTION ===== */
#contacto {
    background: var(--tst-green);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-grid a {
    text-decoration: none !important;
    color: inherit;
}

.contact-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-origin: center;
    will-change: transform;
}

/* Efecto de fondo brillante al hover */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Efecto principal de agrandamiento */
.contact-card:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 25px 60px rgba(31, 111, 99, 0.5);
    border-color: var(--tst-green-light);
}

.contact-card:hover::before {
    opacity: 0.1;
}

/* Animación del icono */
.contact-card:hover .contact-icon {
    transform: scale(1.15);
    background: var(--gradient-secondary);
}

/* Estilos del icono */
.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.contact-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon i {
    transform: scale(1.1);
}

/* Texto de la tarjeta */
.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--tst-white);
    transition: all 0.3s ease;
}

.contact-card:hover h3 {
    color: var(--tst-white);
    transform: translateY(-2px);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover p {
    color: var(--tst-white);
}

.contact-link {
    color: var(--tst-green-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-card:hover .contact-link {
    color: var(--tst-white);
    transform: translateY(-2px);
}

/* Formulario de Contacto */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(63, 174, 154, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--tst-green-light);
    background: rgba(255, 255, 255, 0.15);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(31, 111, 99, 0.4);
}

/* ===== SOFTWARE / SISTEMAS GRID ===== */
.software-category-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.software-category-header:first-of-type {
    margin-top: 4rem;
}

.software-category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(31, 111, 99, 0.3);
}

.software-category-icon i {
    font-size: 1.5rem;
    color: white;
}

.software-category-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tst-white);
    margin-bottom: 0.5rem;
}

.software-category-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Mobile apps grid - phone aspect ratio */
.software-grid-mobile {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.software-card-mobile {
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    min-height: 380px;
}

.software-card-mobile:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--tst-green-light);
}

.software-img-mobile-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--tst-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.software-img-mobile {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-img-mobile img {
    width: auto;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.software-card-mobile:hover .software-img-mobile img {
    transform: scale(1.04);
}

.software-img-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(63,174,154,0.12), transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.software-info-mobile {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}

.software-info-mobile .software-tech {
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.software-info-mobile h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tst-white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.software-info-mobile p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.software-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tst-green-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.software-card-mobile:hover .software-cta {
    gap: 1rem;
}

.software-cta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.software-card-mobile:hover .software-cta i {
    transform: translateX(4px);
}

/* Web apps grid - wider landscape */
.software-grid-web {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.software-card-web {
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.software-card-web:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--tst-green-light);
}

.software-img-web {
    position: relative;
    overflow: hidden;
    background: var(--tst-dark);
    aspect-ratio: 16 / 9;
}

.software-img-web img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.software-card-web:hover .software-img-web img {
    transform: scale(1.08);
}

.software-img-web::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 46, 42, 0.3) 0%, transparent 50%);
}

.software-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.software-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--tst-green-light);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.software-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.2rem;
}

.software-tech {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(63, 174, 154, 0.15);
    color: var(--tst-green-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
}

/* ===== SOFTWARE A LA MEDIDA ===== */
#software-medida {
    padding: 8rem 4rem;
}

.medida-content {
    max-width: 1200px;
    margin: 0 auto;
}

.medida-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.medida-lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tst-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.medida-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
}

.medida-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.medida-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.medida-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.medida-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.medida-card:hover .medida-icon {
    background: var(--tst-green-light);
    transform: scale(1.1);
}

.medida-icon i {
    font-size: 2rem;
    color: white;
}

.medida-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--tst-white);
    margin-bottom: 1rem;
}

.medida-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.medida-cta {
    text-align: center;
}

.medida-cta .btn-primary {
    background: #0E2E2A;
    box-shadow: 0 15px 40px rgba(14, 46, 42, 0.4);
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--tst-dark);
    color: white;
    padding: 4rem 4rem 2rem;
    text-align: center;
}

.footer-content {
    width: 100%;
    padding: 0 2rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--tst-green-light);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--tst-green-light);
    transform: translateY(-5px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== COMPONENTES FLOTANTES ===== */
/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s ease;
}


/* ===== FLOATING CONTACTS HOVER PRO ===== */
.float-btn {
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
    will-change: transform;
}

/* Hover: crece + se eleva */
.float-btn:hover {
    transform: scale(1.35) translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    animation-play-state: paused;
    /* pausa el bounce */
}

/* Micro animación del ícono */
.float-btn i {
    transition: transform 0.3s ease;
}

.float-btn:hover i {
    transform: scale(1.15) rotate(-6deg);
}

/* Floating Contact Buttons */
.floating-contacts {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-contacts a {
    text-decoration: none;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

.float-telegram {
    background: #0088cc;
}

.float-email {
    background: var(--tst-green);
}

/* ===== BOTONES REUTILIZABLES ===== */
.btn-white {
    background: white;
    color: var(--tst-green);
    padding: 1.3rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ===== GRADIENTES Y EFECTOS ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ANIMACIONES FADE-IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-play-state: paused;
}

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

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

.stagger-7 {
    animation-delay: 0.7s;
}

.stagger-8 {
    animation-delay: 0.8s;
}

/* ===== RECONOCIMIENTOS ===== */
.reconocimientos-section {
    padding: 8rem 4rem;
    background: var(--tst-dark);
    position: relative;
}

.reconocimientos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63,174,154,0.2), transparent);
}

.reconocimientos-content {
    max-width: 1200px;
    margin: 0 auto;
}

.reconocimiento-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.reconocimiento-badge-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(63,174,154,0.2), rgba(63,174,154,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(63,174,154,0.3);
}

.reconocimiento-badge-icon i {
    font-size: 2rem;
    color: var(--tst-green-light);
    filter: drop-shadow(0 0 20px rgba(63,174,154,0.3));
}

.reconocimiento-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.reconocimiento-lead .highlight {
    color: var(--tst-green-light);
    font-weight: 700;
}

.reconocimiento-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.reconocimientos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.reconocimiento-item {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(63,174,154,0.1);
    background: rgba(14,46,42,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.reconocimiento-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(63,174,154,0.4);
    box-shadow:
        0 25px 60px rgba(0,0,0,0.5),
        0 0 40px rgba(63,174,154,0.1);
}

.reconocimiento-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0a0a0a;
}

.reconocimiento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

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

.reconocimiento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(14,46,42,0.85) 0%,
        rgba(14,46,42,0.2) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

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

.reconocimiento-overlay i {
    font-size: 2rem;
    color: white;
    transform: scale(0.5) translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    opacity: 0;
}

.reconocimiento-overlay span {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    background: rgba(63,174,154,0.2);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(63,174,154,0.2);
}

.reconocimiento-item:hover .reconocimiento-overlay i {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.reconocimiento-item:hover .reconocimiento-overlay span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.15s;
}

/* Lightbox for reconocimientos */
.pd-lightbox-rec {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-lightbox-rec.active {
    opacity: 1;
    pointer-events: auto;
}

.pd-lightbox-rec-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.pd-lightbox-rec-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    animation: lightbox-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-lightbox-rec-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 120px rgba(0,0,0,0.8);
    display: block;
}

@keyframes lightbox-enter {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .reconocimientos-section {
        padding: 5rem 1.5rem;
    }
    .reconocimientos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .reconocimiento-lead {
        font-size: 1rem;
    }
}