/* TOTO CORDOBA - Portfolio Optimizado */

/* Reset y configuración base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* Variables CSS */
:root {
    --font-primary: "Roboto Condensed", system-ui, -apple-system, sans-serif;
    --font-secondary: "Inter", system-ui, -apple-system, sans-serif;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #999999;
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* Estilos base */
body {
    font-family: var(--font-secondary);
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}

/* Layout principal */
.main-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Título principal */
.title-container {
    width: 100vw;
    text-align: center;
    padding: 0px 2px 30px;
    margin-left: calc(-10vw + 10%);
}

.main-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(2.5rem, 12vw, 10rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Navegación */
.navigation-container {
    position: sticky;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    padding: 0 40px;
    margin-bottom: 40px;
}

.navigation {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 12px 24px;
}

.nav-items-container {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-gray);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--color-white); }

.nav-text {
    font-size: 14px;
    font-weight: 400;
}

.mobile-nav { display: none; }

/* Contenido */
.content-wrapper {
    position: relative;
    width: 100%;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    min-height: 100vh;
}

/* Sección home */
.home-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

/* Sección video pantalla completa */
.video-fullscreen-section {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    width: 100%;
    padding: 0 40px;
    pointer-events: none;
}

.video-overlay-content img {
    max-width: 400px;
    width: 60%;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5)) brightness(1.2);
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-subtitle {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 16px;
}

.video-description {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
}

/* Secciones generales */
.about-section, .portfolio-section { padding: 120px 0px 10px ; }
.services-section { padding: 80px 0 40px; }
.logos-section, .stats-section { padding: 80px 0; }
.contact-section { padding: 120px 0 50px; }

.section-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-subtitle {
    font-size: 12px;
    color: var(--color-gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-description {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.5;
    margin-bottom: 32px;
}

/* About section específico */
.text-wrapper { max-width: 500px; }

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.copy-email-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.copy-email-btn:hover { transform: translateY(-2px); }

.social-links { display: flex; gap: 24px; }

.social-link {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.social-link:hover { color: var(--color-white); }

.image-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 400px;
}

/* Logos section */
.logos-section { overflow: hidden; }

.logos-scroll {
    display: flex;
    gap: 80px;
    animation: scrollLogos 50s linear infinite;
}

.logo-item {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    height: 60px;
    transition: all 0.3s ease;
}

.logo-img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* SVG de Trip más grande */
.logo-img[src*="trip.svg"] {
    max-height: 120px;
    max-width: 360px;
    transform: scale(3);
}

.logo-item:hover .logo-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Hover específico para Trip manteniendo su tamaño */
.logo-item:hover .logo-img[src*="trip.svg"] {
    opacity: 1;
    transform: scale(3.15);
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Stats section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 150px;
    font-weight: 700;
}
.stat-number {
    font-family: var(--font-primary);
    font-size: 150px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Services section */
.services-container {
    max-width: 600px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.services-gif {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio section */
.portfolio-header {
    text-align: center;
    margin-bottom: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-image {
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.project-img,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.project-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-category {
    font-size: 12px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
}

.project-year {
    font-size: 14px;
    color: var(--color-gray);
}

.project-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.project-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.project-link:hover .project-img {
    transform: scale(1.05);
}

.project-link:hover .project-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

/* Contact section */
.contact-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.contact-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.contact-description {
    font-size: 18px;
    color: var(--color-gray);
    line-height: 1.5;
    margin-bottom: 40px;
}

.contact-email {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.email-text {
    font-size: 24px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.copy-feedback {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    color: var(--color-black);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.copy-feedback.show { opacity: 1; }

/* Responsive Design */
@media (max-width: 1200px) {
    .navigation-container { padding: 0 30px; }
    .content-container { padding: 0 30px; }
    .section-layout { gap: 60px; }
    .video-description { font-size: 36px; }
    .section-title { font-size: 32px; }
}

@media (max-width: 810px) {
    .title-container { padding: 40px 5px 20px; }
    .navigation-container { top: 10px; padding: 0 20px; }
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .main-title { font-size: clamp(2rem, 10vw, 6rem); line-height: 0.8; }
    .content-container { padding: 0 20px; }
    .section-layout { grid-template-columns: 1fr; gap: 40px; }
    .video-description { font-size: 32px; }
    .section-title { font-size: 28px; }
    .contact-title { font-size: 36px; }
    .stats-container, .portfolio-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav-items-container { gap: 20px; }
    .nav-text { font-size: 12px; }
    .logos-scroll { gap: 60px; }
    .logo-item { 
        font-size: 20px;
        height: 50px;
    }
    
    .logo-img {
        max-height: 30px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .title-container { padding: 30px 2px 15px; }
    .main-title { font-size: clamp(1.8rem, 8vw, 4rem); line-height: 0.75; }
    .video-description { font-size: 24px; }
    .contact-title { font-size: 28px; }
    .email-text { font-size: 18px; }
    .nav-items-container { gap: 16px; }
    .navigation { padding: 8px 16px; }
    .project-title { font-size: 20px; }
    .services-gif { max-width: 100%; }
    .services-gif-container { padding: 0 20px; }
}

/* Utilidades */
::selection { background: var(--color-white); color: var(--color-black); }

/* Animaciones smooth */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.2s; }
.fade-in-delay-2 { transition-delay: 0.4s; }
.fade-in-delay-3 { transition-delay: 0.6s; }

/* Botón back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}