:root {
    --port-primary: #ffffff;
    --port-secondary: #000000;
    --port-tertiary: #808080;
    --port-light-gray: #f5f5f5;
    --port-dark-gray: #333333;
    --port-accent: #000000;
    --port-success: #28a745;
}

.port-section {
    position: relative;
    background: var(--port-primary);
    background-image: 
        linear-gradient(rgba(128, 128, 128, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 128, 128, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    font-family: 'Source Code Pro', monospace;
    overflow-x: hidden;
    min-height: 100vh;
}

.port-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--port-secondary), transparent);
    animation: port-scan 3s ease-in-out infinite;
}

@keyframes port-scan {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.port-orbitron {
    font-family: 'Orbitron', monospace;
}

.port-source-code {
    font-family: 'Source Code Pro', monospace;
}

.port-hero {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.port-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--port-secondary);
    letter-spacing: -2px;
    animation: port-fade-up 1s ease-out;
    position: relative;
}

.port-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--port-secondary);
    animation: port-underline 1.5s ease-out 0.5s forwards;
}

@keyframes port-underline {
    to { width: min(200px, 50vw); }
}

.port-hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--port-tertiary);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: port-fade-up 1s ease-out 0.2s both;
}

.port-typing-text {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--port-secondary);
    margin: 2rem 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.port-typing-cursor {
    animation: port-blink 1s infinite;
}

@keyframes port-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.port-hero-tag {
    display: inline-block;
    padding: 12px 30px;
    background: var(--port-secondary);
    color: var(--port-primary);
    border-radius: 25px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    animation: port-fade-up 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.port-hero-tag:hover::before {
    left: 100%;
}

.port-metrics {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 5vw, 3rem);
    margin-top: 3rem;
    animation: port-fade-up 1s ease-out 0.6s both;
    flex-wrap: wrap;
}

.port-metric {
    text-align: center;
    min-width: 120px;
}

.port-metric-number {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--port-secondary);
    display: block;
    animation: port-count-up 2s ease-out 1s both;
}

.port-metric-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--port-tertiary);
    margin-top: 0.5rem;
}

@keyframes port-count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes port-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.port-overview-cards {
    margin: 80px 0;
}

.port-card {
    background: var(--port-primary);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.port-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--port-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.port-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.port-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.port-card:hover::before {
    transform: scaleX(1);
}

.port-card:hover::after {
    opacity: 1;
}

.port-card h5 {
    color: var(--port-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.port-card p {
    color: var(--port-tertiary);
    margin: 0;
    font-size: 0.95rem;
    position: relative;
}

.port-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.port-progress-fill {
    height: 100%;
    background: var(--port-secondary);
    width: 0%;
    transition: width 1.5s ease-out 0.5s;
    border-radius: 2px;
}

.port-card:hover .port-progress-fill {
    width: 100%;
}

.port-challenge-section {
    padding: 80px 0;
    background: var(--port-primary);
}

.port-challenge-card {
    background: var(--port-primary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.4s ease;
}

.port-challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.port-challenge-number {
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--port-secondary);
    color: var(--port-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.port-showcase {
    padding: 100px 0;
    text-align: center;
}

.port-device-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.port-device-btn {
    padding: 10px 20px;
    border: 2px solid var(--port-tertiary);
    background: transparent;
    color: var(--port-tertiary);
    border-radius: 25px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.port-device-btn.active,
.port-device-btn:hover {
    border-color: var(--port-secondary);
    background: var(--port-secondary);
    color: var(--port-primary);
}

.port-mockup-container {
    position: relative;
    margin: 60px auto;
    animation: port-float 6s ease-in-out infinite;
    max-width: 100%;
}

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

.port-mockup-desktop {
    width: min(800px, 90vw);
    height: min(500px, 60vw);
    background: #000;
    border-radius: 1rem;
    position: relative;
    box-shadow: 3px 5px 8px 3px rgba(255, 255, 255, 0.1), 5px 3px 8px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    transition: all 0.5s ease;
}

.port-mockup-desktop::before {
    content: "";
    width: 100%;
    height: clamp(30px, 10vw, 50px);
    background: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.port-mockup-screen {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: clamp(40px, 12vw, 60px);
    background: var(--port-primary);
    border-radius: 0.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.port-apple-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(5px, 3vw, 10px);
    color: #000;
    font-size: clamp(16px, 4vw, 24px);
}

.port-monitor-stand {
    position: absolute;
    width: min(180px, 40vw);
    height: clamp(50px, 12vw, 80px);
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), #ccc, #919196);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 3px 5px 8px 3px rgba(255, 255, 255, 0.1), 5px 3px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

.port-monitor-stand::before {
    content: "";
    position: absolute;
    width: 100%;
    height: clamp(60px, 15vw, 100px);
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), #919196);
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotateX(85deg);
    transform-origin: top;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 3px 5px 8px 3px rgba(255, 255, 255, 0.2), 5px 3px 8px rgba(0, 0, 0, 0.3);
}

.port-mockup-mobile {
    background: var(--port-dark-gray);
    border-radius: 25px;
    padding: 20px 10px;
    width: min(280px, 90vw);
    margin: 2rem auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    display: none;
    transition: all 0.5s ease;
}

.port-mockup-mobile.active {
    display: block;
    animation: port-device-slide-in 0.5s ease-out;
}

.port-mockup-desktop.active {
    display: block;
    animation: port-device-slide-in 0.5s ease-out;
}

@keyframes port-device-slide-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.port-mobile-screen {
    background: var(--port-primary);
    border-radius: 20px;
    height: min(500px, 70vh);
    border: 2px solid var(--port-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.port-mockup-placeholder {
    color: var(--port-tertiary);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-align: center;
    padding: 1rem;
}

.port-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.port-mockup-image-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.port-mockup-image:hover,
.port-mockup-image-mobile:hover {
    transform: scale(1.02);
}

.port-visit-btn {
    background: var(--port-accent);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(88, 91, 95, 0.3);
}

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

.port-visit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(87, 90, 93, 0.4);
    background: black;
}

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

.port-process-timeline {
    padding: 100px 0;
    background: var(--port-primary);
    position: relative;
}

.port-timeline-line {
    position: absolute;
    left: 50%;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: rgba(128, 128, 128, 0.2);
    transform: translateX(-50%);
}

.port-timeline-progress {
    position: absolute;
    left: 50%;
    top: 20%;
    width: 3px;
    height: 0%;
    background: var(--port-secondary);
    transform: translateX(-50%);
    transition: height 0.8s ease-out;
}

.port-timeline-item {
    display: flex;
    align-items: center;
    margin: 4rem 0;
    position: relative;
    opacity: 0;
    animation: port-timeline-appear 0.8s ease-out forwards;
}

.port-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

@keyframes port-timeline-appear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.port-timeline-number {
    background: var(--port-secondary);
    color: var(--port-primary);
    width: clamp(60px, 12vw, 70px);
    height: clamp(60px, 12vw, 70px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin: 0 clamp(1.5rem, 5vw, 3rem);
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.port-timeline-number:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.port-timeline-content {
    background: var(--port-primary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: min(400px, 80vw);
    position: relative;
    border: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.3s ease;
}

.port-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.port-timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.port-timeline-item:nth-child(odd) .port-timeline-content::before {
    right: -30px;
    border-left-color: var(--port-primary);
}

.port-timeline-item:nth-child(even) .port-timeline-content::before {
    left: -30px;
    border-right-color: var(--port-primary);
}

.port-tech-grid {
    padding: 80px 0;
}

.port-tech-item {
    background: var(--port-primary);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.port-tech-item:hover {
    background: var(--port-secondary);
    color: var(--port-primary);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.port-tech-item:hover::before {
    left: 100%;
}

.port-cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--port-secondary) 0%, var(--port-dark-gray) 100%);
    color: var(--port-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.port-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: port-pulse 4s ease-in-out infinite;
}

@keyframes port-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.port-cta-content {
    position: relative;
}

.port-cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--port-primary);
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.port-cta-button {
    background: var(--port-primary);
    color: var(--port-secondary);
    border: none;
    padding: 18px 45px;
    border-radius: 35px;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.port-cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
    background: var(--port-light-gray);
}

.port-cta-button:hover::before {
    left: 100%;
}

.port-animated-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.port-animated-element.port-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries Responsivas */
@media (max-width: 768px) {
    .port-hero {
        padding: 80px 0;
    }
    
    .port-metrics {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .port-timeline-line,
    .port-timeline-progress {
        display: none;
    }
    
    .port-timeline-item {
        flex-direction: column !important;
        text-align: center;
        margin: 2.5rem 0;
    }
    
    .port-timeline-number {
        margin: 0 0 1rem 0;
    }
    
    .port-timeline-content::before {
        display: none;
    }
    
    .port-mockup-container {
        margin: 40px auto;
    }

    .port-device-switcher {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .port-challenge-card {
        padding: 2rem 1.5rem;
    }
    
    .port-challenge-number {
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .port-hero {
        padding: 60px 0;
    }
    
    .port-overview-cards,
    .port-challenge-section,
    .port-process-timeline,
    .port-tech-grid {
        padding: 60px 0;
    }
    
    .port-cta-section {
        padding: 80px 0;
    }
    
    .port-card,
    .port-challenge-card,
    .port-timeline-content {
        padding: 1.5rem;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .port-hero {
        padding: 40px 0;
    }
    
    .port-mockup-desktop {
        height: min(300px, 50vh);
    }
    
    .port-mobile-screen {
        height: min(350px, 45vh);
    }
}