/* =====================================================
   CHRISTIAN MENDOZA
   VIDEO EDITOR & AI CONTENT CREATOR (MODIFICADO)
   ===================================================== */

:root {
    --bg: #080808;
    --bg-soft: #101010;
    --card: #131313;
    --card-hover: #181818;

    --text: #f5f5f5;
    --text-soft: #a5a5a5;
    --text-muted: #666;

    --accent: #ffffff;
    --border: rgba(255,255,255,0.10);

    --max-width: 1200px;

    --font-main: "Inter", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
}

/* ================= RESET Y FONDO TRANSPARENTE ================= */

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

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

body {
    background: transparent; /* Permite ver el canvas de fondo */
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

::selection {
    background: white;
    color: black;
}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080808;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ================= CANVAS FIJO Y CAPAS ================= */

.header, main, footer {
    position: relative;
    z-index: 1;
}

.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    object-fit: cover;
    opacity: 0.25; 
    pointer-events: none;
}

.load-progress {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-size: 11px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(8,8,8,0.82);
    backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
}

.navbar {
    width: min(var(--max-width), calc(100% - 50px));
    height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span { color: #777; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    color: var(--text-soft);
    transition: color 0.25s ease;
}

.nav-links a:hover { color: white; }

.nav-button {
    padding: 11px 19px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-button:hover {
    background: white;
    color: black;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 1px;
    background: white;
    margin: 5px auto;
    transition: all 0.3s ease;
}

/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 150px 25px 100px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 35%, rgba(255,255,255,0.08), transparent 28%), radial-gradient(circle at 15% 80%, rgba(255,255,255,0.035), transparent 30%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-content {
    width: min(var(--max-width), 100%);
    margin: auto;
    position: relative;
    z-index: 2;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease both;
}

.availability-dot {
    width: 7px;
    height: 7px;
    background: #8cff9b;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(140,255,155,0.5);
}

.hero-small, .section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-muted);
}

.hero-small {
    margin-bottom: 17px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 {
    max-width: 900px;
    font-family: var(--font-display);
    font-size: clamp(52px, 7.5vw, 104px);
    line-height: 0.96;
    letter-spacing: -5px;
    font-weight: 600;
    animation: fadeUp 0.8s 0.15s ease both;
}

.hero h1 span {
    display: block;
    color: #777;
    background: linear-gradient(90deg, #777, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 620px;
    margin-top: 35px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
    animation: fadeUp 0.8s 0.25s ease both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    animation: fadeUp 0.8s 0.35s ease both;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 170px;
    padding: 15px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button:hover { transform: translateY(-3px); }

.button-primary { background: white; color: black; }
.button-primary:hover { background: #ddd; }

.button-secondary { border: 1px solid var(--border); color: white; }
.button-secondary:hover { background: white; color: black; }

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    animation: fadeUp 0.8s 0.45s ease both;
}

.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 27px; font-weight: 600; }
.stat span { margin-top: 3px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; }

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.scroll-indicator span { width: 25px; height: 1px; background: #444; }

/* ================= MARQUEE ================= */

.marquee-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 22px 0;
    background: rgba(8,8,8,0.65);
    backdrop-filter: blur(8px);
}

.marquee { overflow: hidden; white-space: nowrap; }

.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #777;
}

.marquee-content i { color: #444; font-style: normal; }

/* ================= SECTIONS Y BLUR PARA LEER BIEN ================= */

.section {
    width: min(var(--max-width), calc(100% - 50px));
    margin: auto;
    padding: 140px 0;
}

/* Filtro para que las secciones se vean bien por encima del canvas */
.services, .about, .skills, .results, .portfolio-section, .cta {
    background: rgba(8, 8, 8, 0.7) !important;
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin: 40px auto;
    padding: 80px 40px !important;
    width: min(var(--max-width), calc(100% - 40px)) !important;
}

.section-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    margin-bottom: 70px;
}

.section-header h2, .about-content h2, .portfolio-content h2, .cta h2 {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 600;
}

.section-header h2 span, .about-content h2 span, .portfolio-content h2 span, .cta h2 span { color: #777; }
.section-intro { align-self: end; color: var(--text-soft); font-size: 15px; line-height: 1.8; }

/* ================= SERVICES ================= */

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

.service-card {
    position: relative;
    min-height: 350px;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
    overflow: hidden;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.2);
}

.service-number { position: absolute; top: 25px; right: 30px; color: #444; font-size: 11px; }
.service-icon { width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; margin-bottom: 35px; border: 1px solid var(--border); border-radius: 50%; font-size: 16px; font-weight: 600; }
.service-card h3 { font-family: var(--font-display); font-size: 29px; margin-bottom: 14px; }
.service-card p { max-width: 480px; color: var(--text-soft); font-size: 14px; line-height: 1.8; }

.service-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 28px; }
.service-tags span { padding: 6px 10px; border: 1px solid var(--border); color: #777; font-size: 10px; border-radius: 100px; }

/* ================= COLLAGE DE RESULTADOS CON LINKS ================= */
.results-collage {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.collage-text strong {
    font-size: 80px;
    font-family: var(--font-display);
    background: linear-gradient(90deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.collage-text p {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    margin-top: 10px;
}

.collage-text span {
    color: var(--text-soft);
    display: block;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* La cuadrícula que fusiona las 4 imágenes */
.collage-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 200px 140px;
    gap: 15px;
}

.img-main {
    grid-column: 1 / span 3; /* La imagen principal ocupa toda la parte superior */
}

/* Diseño de los enlaces interactivos */
.collage-images a.video-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: #000;
}

.collage-images a.video-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Botón de Play flotante que aparece al pasar el mouse */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    padding-left: 4px; /* Centra visualmente el triángulo */
    opacity: 0; /* Oculto por defecto */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* Efectos Hover (Cuando el mouse pasa por encima) */
.collage-images a.video-link:hover img {
    transform: scale(1.05);
    opacity: 0.6; /* Oscurece un poco la imagen de fondo */
}

.collage-images a.video-link:hover .play-overlay {
    opacity: 1; /* Muestra el botón de play */
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px) {
    .results-collage {
        grid-template-columns: 1fr;
    }
    .collage-text strong {
        font-size: 60px;
    }
    .collage-images {
        grid-template-rows: 150px 100px;
    }
}
/* ================= ABOUT ================= */

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: center; }

.visual-card {
    aspect-ratio: 0.8;
    position: relative;
    background: radial-gradient(circle at center, #252525, #0d0d0d 65%);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    border-radius: 15px;
}

.visual-card::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}

.visual-top, .visual-bottom { display: flex; justify-content: space-between; color: #666; font-size: 9px; letter-spacing: 1px; }
.visual-center { display: flex; justify-content: center; align-items: center; flex: 1; }
.visual-center span { font-family: var(--font-display); font-size: clamp(100px, 15vw, 190px); font-weight: 700; letter-spacing: -15px; color: #151515; -webkit-text-stroke: 1px #333; }
.about-content > p:not(.section-label) { max-width: 600px; margin-top: 23px; color: var(--text-soft); font-size: 15px; line-height: 1.9; }

.about-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--border); }
.about-info div { display: flex; flex-direction: column; }
.about-info span { color: #555; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.about-info strong { margin-top: 7px; font-size: 12px; font-weight: 500; }

/* ================= SKILLS ================= */

.skills-list { border-top: 1px solid var(--border); }

.skill-item {
    display: grid;
    grid-template-columns: 70px 1fr 150px;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

.skill-item:hover { padding-left: 15px; }
.skill-item > span { color: #555; font-size: 11px; }
.skill-item strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.skill-item small { text-align: right; color: #555; font-size: 9px; letter-spacing: 1px; }

.ai-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 45px; }
.ai-tools p { width: 100%; color: #555; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 5px; }
.ai-tools span { padding: 9px 13px; border: 1px solid var(--border); color: #999; font-size: 11px; border-radius: 100px; }

/* ================= PORTFOLIO & CTA ================= */

.portfolio-section {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.portfolio-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.portfolio-content > p:not(.section-label) {
    max-width: 560px;
    margin-top: 28px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.portfolio-button {
    display: inline-flex;
    align-items: center;
    gap: 45px;
    margin-top: 38px;
    padding: 17px 20px 17px 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-button strong {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: black;
    font-size: 15px;
}

.portfolio-button:hover {
    background: white;
    color: black;
}

.portfolio-decoration {
    position: absolute;
    right: 9%;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
}

.portfolio-decoration::before,
.portfolio-decoration::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.portfolio-decoration::before {
    width: 280px;
    height: 280px;
}

.portfolio-decoration::after {
    width: 180px;
    height: 180px;
}

.play-circle {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: black;
    font-size: 18px;
    padding-left: 3px;
}

.portfolio-decoration > span {
    position: absolute;
    bottom: 30px;
    color: #555;
    font-size: 9px;
    letter-spacing: 2px;
}

.cta {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-inner {
    max-width: 850px;
}

.cta h2 {
    margin-top: 20px;
}

.cta > .cta-inner > p:not(.section-label) {
    max-width: 550px;
    margin: 30px auto 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}

/* ================= FOOTER Y WHATSAPP ================= */

footer {
    padding: 60px max(25px, calc((100vw - 1200px) / 2)) 25px;
    background: var(--bg);
}

.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding-bottom: 55px; }
.footer-brand p { margin-top: 12px; color: #555; font-size: 12px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { color: #777; font-size: 12px; transition: color 0.2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 25px; border-top: 1px solid var(--border); color: #444; font-size: 9px; text-transform: uppercase; letter-spacing: 0.7px; }

.whatsapp-button {
    position: fixed; right: 25px; bottom: 25px; z-index: 999; display: flex; align-items: center; gap: 10px; padding: 10px 15px 10px 10px; border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; background: rgba(15,15,15,0.9); backdrop-filter: blur(15px); box-shadow: 0 10px 40px rgba(0,0,0,0.4); transition: transform 0.3s ease;
}
.whatsapp-button:hover { transform: translateY(-4px); }
.whatsapp-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #25D366; color: white; font-size: 12px; }
.whatsapp-text { font-size: 11px; font-weight: 600; }

/* ================= ANIMATIONS ================= */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .nav-links { position: fixed; top: 82px; left: 0; right: 0; padding: 30px; background: rgba(8,8,8,0.97); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; gap: 22px; transform: translateY(-120%); transition: transform 0.4s ease; }
    .nav-links.active { transform: translateY(0); }
    .nav-button { display: none; }
    .menu-button { display: block; }
    .section-header { grid-template-columns: 1fr; gap: 30px; }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .portfolio-decoration { opacity: 0.35; right: -100px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .results-grid { grid-template-columns: 1fr; }
    .services, .about, .skills, .results, .portfolio-section, .cta { padding: 50px 20px !important; }
}

@media (max-width: 650px) {
    .hero { padding-top: 125px; padding-bottom: 100px; }
    .hero h1 { font-size: clamp(48px, 14vw, 72px); letter-spacing: -3px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .about-info { grid-template-columns: 1fr; gap: 18px; }
    .skill-item { grid-template-columns: 40px 1fr; gap: 10px; }
    .skill-item small { display: none; }
    .cta-buttons { flex-direction: column; }
    .footer-main { grid-template-columns: 1fr; gap: 35px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .whatsapp-text { display: none; }
}

/* ================= FOTO DE PERFIL ================= */
.perfil-img {
    width: 100%;
    max-width: 220px; 
    height: auto;
    border-radius: 20px; 
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.1); 
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.perfil-img:hover {
    transform: scale(1.05); 
    border-color: rgba(255,255,255,0.3);
}

@media (max-width: 900px) {
    .perfil-img {
        max-width: 180px; 
    }
} 
/* ================= FOTO DE PERFIL TAMAÑO COMPLETO ================= */

.visual-card {
    overflow: hidden; /* Corta la foto para que respete los bordes curvos de la tarjeta */
    position: relative;
    border: none; /* Quitamos el borde para que se vea más limpio */
}

/* Agregamos un degradado oscuro arriba y abajo para que el texto blanco se lea perfecto */
.visual-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Mantenemos la línea decorativa de adentro por encima de la foto */
.visual-card::before {
    z-index: 2; 
}

/* Hacemos el texto blanco y lo ponemos por encima de la foto */
.visual-top, .visual-bottom {
    position: relative;
    z-index: 2; 
    color: #ffffff; 
    font-weight: 600;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.9);
}

.visual-center {
    position: static; 
}

/* Estiramos la foto a todo el cuadrado */
.perfil-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%; 
    border-radius: 0; 
    object-fit: cover; /* Asegura que la foto no se deforme */
    z-index: 0; /* La enviamos al fondo */
    box-shadow: none;
    transform: scale(1);
    transition: transform 0.5s ease;
}

/* Efecto premium: La foto hace un ligero zoom al pasar el mouse por la tarjeta */
.visual-card:hover .perfil-img {
    transform: scale(1.05); 
}
