:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --btn-bg: #333333;
    --btn-hover: #555555;
    --card-bg: #111111;
    --font-heading: 'Poppins', sans-serif;
    --font-mono: 'Inconsolata', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 600;
}

p {
    font-weight: 300;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.subtitle,
.section-label, 
.btn {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar,
section,
footer,
.footer-about,
.about-section,
.services-page,
.portfolio-page, 
.services-summary-section {
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    background-color: var(--btn-bg);
    color: var(--text-main);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1.5rem;
}

.btn:hover {
    background-color: var(--btn-hover);
}

/* --- NAVBAR (MENÚ FLOTANTE) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100 !important;
}

.menu-icon {
    display: none !important;
}

.main-nav {
    display: flex;
}

.main-nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- SECCIÓN HERO --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    padding: 0 !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 5%;
    padding-right: 5%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 52px;
    padding-bottom: 10px;
}

.hero-mockup {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
    position: relative;
}

.hero-mockup::after {
    content: "";
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 60px;
    background-color: #050505;
    border-radius: 30px;
    pointer-events: none;
    z-index: 999;
}

mockup-player {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

/* --- CARRUSEL Y MARQUEES --- */
.marquee-wrapper-logos {
    width: 100%;
    overflow: hidden;
    padding: 0 0 3rem 0;
    margin-bottom: 6rem;
    border-top: 1px solid #222;
    border-bottom: 1px solid #bcbcbc;
}

.marquee-logos {
    display: flex;
    width: max-content;
    animation: scroll-logos 40s linear infinite;
}

.marquee-logos span {
    display: inline-flex;
    align-items: center;
    padding: 0 4rem;
    white-space: nowrap;
}

.marquee-logos span img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}

.marquee-logos span img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    border-top: 1px solid #222;
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll-text 20s linear infinite;
}

.marquee-wrapper .marquee span {
    font-size: 5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    padding-right: 2rem;
    color: var(--text-main);
    white-space: nowrap;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- SECCIONES GENERALES HOME --- */
section {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.approach {
    display: flex;
    gap: 4rem;
}

.approach-left, 
.approach-right {
    flex: 1;
}

.approach-left h2 {
    font-size: 1.8rem;
    margin-top: 1rem;
    color: var(--text-main);
}

.approach-right p {
    margin-bottom: 1.5rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 3rem 2rem;
    border: 1px solid #222;
    background-image: radial-gradient(#5a5a5a 1%, transparent 1%);
    background-size: 4px 4px;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skills-section {
    display: flex;
    gap: 4rem;
}

.skills-text, 
.skills-bars {
    flex: 1;
}

.skills-text h2 {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #333;
}

.progress {
    height: 100%;
    background-color: var(--text-main);
}

/* --- PORTAFOLIO HOME Y PROYECTOS --- */
.portfolio-page {
    padding-top: 2rem;
    padding-bottom: 0;
}

.portfolio-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.portfolio-titles h1 {
    font-size: 3rem;
    line-height: 1;
}

.portfolio-titles .subtitle {
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    color: #888;
}

.portfolio-filters {
    display: flex;
    gap: 0.5rem;
    border: 1px solid #333;
    padding: 0.2rem;
    border-radius: 4px;
}

.filter-btn {
    background: transparent;
    color: #888;
    border: none;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px;
}

.filter-btn:hover {
    color: white;
}

.filter-btn.active {
    background: #222;
    color: white;
}

.portfolio-grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

a.portfolio-card {
    display: block;
    position: relative;
    background-color: #111;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

a.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    font-family: var(--font-mono);
    color: #aaa;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    transition-delay: 0.1s;
}

a.portfolio-card:hover img {
    transform: scale(1.05);
}

a.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

a.portfolio-card:hover .portfolio-overlay h3, 
a.portfolio-card:hover .portfolio-overlay p {
    transform: translateY(0);
}

.services-summary-section {
    display: flex;
    padding-top: 6rem;
    padding-bottom: 6rem;
    gap: 4rem;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
}

.summary-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    flex-grow: 1;
}

.summary-col .number {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.summary-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-col p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #999;
    line-height: 1.8;
}

/* --- SOBRE MÍ (SECCIÓN INTERNA) --- */
.about-section {
    display: flex;
    justify-content: center;
    gap: 6rem;
    padding-top: 10rem;
    padding-bottom: 2rem;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    flex-shrink: 0;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    margin-bottom: 1.5rem;
}

.profile-name {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.profile-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-social a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.btn-chat {
    background-color: #3b3f46;
    color: white;
    border: 1px solid #555;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-chat:hover {
    background-color: #555;
}

.about-content {
    flex-grow: 1;
    max-width: 700px;
}

.about-category {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.about-bio {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #b3b3b3;
    margin-bottom: 3rem;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-row {
    width: 100%;
}

.skill-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.skill-track {
    width: 100%;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: center;
}

.skill-fill {
    height: 100%;
    background-color: #fff;
    border-radius: 3px;
}

.skill-percent {
    position: absolute;
    right: 0;
    top: -20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #666;
}

/* --- PÁGINA SERVICIOS Y PRECIOS --- */
.services-page {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.services-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.services-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.services-header p {
    font-family: var(--font-mono);
    max-width: 700px;
    margin: 0 auto;
    color: #b3b3b3;
}

.pricing-section {
    margin-bottom: 2rem;
    margin-top: -8rem;
}

.category-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pricing-card {
    background-color: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 3rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.pricing-card:hover {
    border-color: #666;
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: white;
    color: black;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.sub-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2rem;
}

.card-desc {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ccc;
}

.features-list li {
    margin-bottom: 0.8rem;
}

.mt-auto {
    margin-top: auto;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid #555;
    padding: 1rem;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #222;
    border-color: white;
}

.btn-solid {
    background: white;
    color: black;
    border: 1px solid white;
    padding: 1rem;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-solid:hover {
    background: #e0e0e0;
}

.legal-note {
    text-align: center;
    margin-top: 3rem;
}

.legal-note p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* --- FAQ --- */
.faq-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.faq-main-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #222222;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
    align-items: start;
}

.faq-item {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border: 1px solid #1a1a1a;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #333333;
}

.faq-pregunta {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.faq-respuesta {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- PÁGINAS DE PROYECTO (INTERNAS) --- */
.project-header {
    padding: 10rem 5% 4rem 5%;
    display: block; 
    max-width: 1400px;
    margin: 0 auto;
}

.project-title-area {
    margin-bottom: 4rem;
    width: 100%;
}

.project-title-area h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.project-info-area {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 4rem;
    align-items: start;
    text-align: justify;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.meta-item h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-gallery {
    width: 100%;
    margin-bottom: 1rem;
}

.full-width-img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    object-fit: cover;
}

.other-projects-section {
    padding: 2rem 5%;
    border-top: 1px solid #111;
    max-width: 1400px;
    margin: 0 auto 1rem;
}

.project-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.nav-btn {
    text-decoration: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    opacity: 0.6;
}

.nav-btn.next {
    text-align: right;
    margin-left: auto;
}

.nav-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.3rem;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- FOOTER GENERAL Y ABOUT --- */
footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #222;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1rem;
}

.footer-about {
    border-top: 1px solid #222;
    padding-top: 4rem;
    padding-bottom: 2rem;
    background-color: #030303;
}

.footer-top-about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #111;
    padding-bottom: 3rem;
}

.footer-nav-about a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin: 0 0.5rem;
}

.footer-bottom-about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #888;
}

.footer-social-about {
    display: flex;
    gap: 1rem;
}

.footer-social-about a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-mono);
}


/* ========================================= */
/* --- MEDIA QUERIES (RESPONSIVE HARMONY) --- */
/* ========================================= */

/* 1. VERSIÓN TABLET (Pantallas medianas hasta 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 38px;
        line-height: 44px;
    }
    
    .hero-mockup::after {
        bottom: 50px;
        width: 220px;
        height: 55px;
    }

    .portfolio-grid-9 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. ADAPTACIÓN INTERMEDIA (Pantallas hasta 992px y 900px) */
@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .marquee-wrapper .marquee span {
        font-size: 3rem;
    }

    .approach, 
    .skills-section {
        flex-direction: column;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .about-section {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .about-sidebar {
        width: 100%;
    }

    .footer-top-about, 
    .footer-bottom-about {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .services-header h1 {
        font-size: 2rem;
    }

    .project-header { 
        padding-top: 10rem;
    }
    
    .project-title-area h1 {
        font-size: 2.5rem;
    }
    
    .project-info-area { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    .other-projects-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    
    .nav-label {
        font-size: 0.8rem; 
    }
    
    .nav-title {
        font-size: 0.9rem; 
        line-height: 1.3;
    }
    
    .project-nav-buttons {
        gap: 1rem; 
        margin-top: 1rem;
    }
}


/* 3. VERSIÓN MÓVIL (Teléfonos hasta 768px) */
@media (max-width: 768px) {
    /* Menú Hamburguesa */
    .menu-icon {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .menu-icon span {
        width: 25px;
        height: 2px;
        background: white;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 110px;
        left: 0;
        width: 100%;
        background: #050505;
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        z-index: 1000;
        border-bottom: 1px solid #222;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        margin: 1rem 0;
    }

    /* Hero a 1 Columna */
    .hero {
        background-color: #050505;
        min-height: auto;
        padding-top: 0 !important;
        padding-bottom: 4rem !important;
        flex-direction: column !important;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        flex: auto;
        min-height: auto;
        padding-top: 140px; 
        padding-bottom: 2rem;
        text-align: left; 
        align-items: left; 
    }

    .hero-content h1 {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    .hero-mockup {
        width: 100%;
        max-width: 100%;
        flex: auto;
        margin-top: 1rem;
        aspect-ratio: 1 / 1; 
    }

    .hero-mockup::after {
        bottom: 60px; 
        width: 220px;
        height: 65px;
    }

    /* Adaptaciones de Portafolio y Resumen */
    .portfolio-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .portfolio-filters {
        flex-wrap: wrap;
        border: none;
        padding: 0;
        width: 100%;
        gap: 0.5rem;
    }

    .filter-btn {
        border: 1px solid #333;
        border-radius: 4px;
        flex-grow: 1;
        text-align: center;
        padding: 0.8rem;
    }

    .portfolio-grid-9 {
        grid-template-columns: 1fr;
    }

    .services-summary-section {
        flex-direction: column;
        padding: 4rem 5%;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: left;
        margin-bottom: 2rem;
        border-bottom: 1px solid #333;
        padding-bottom: 1rem;
    }

    .summary-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Adaptaciones de FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-item {
        padding: 2rem 1.5rem;
    }
}

/* --- UNIFICACIÓN DE ANIMACIONES Y GPU ACCELERATION --- */

/* 1. Suavizado global para elementos interactivos */
a, button, .service-card, .pricing-card, .portfolio-card img {
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0); /* Fuerza el uso de la GPU */
}

/* 2. Animación uniforme de aparición (Fade In Up) */
@keyframes fadeInUpUniform {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicamos una curva de animación profesional (Ease Out suave) */
a.portfolio-card {
    animation: fadeInUpUniform 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity; /* Prepara al navegador para animar sin tirones */
}

/* 3. Retardos escalonados automáticos (Stagger effect) para las primeras tarjetas */
.portfolio-grid-9 a.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-grid-9 a.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-grid-9 a.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-grid-9 a.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-grid-9 a.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-grid-9 a.portfolio-card:nth-child(6) { animation-delay: 0.6s; }
.portfolio-grid-9 a.portfolio-card:nth-child(7) { animation-delay: 0.7s; }

/* 4. Uniformidad en los hovers de las tarjetas de servicios y portafolio */
.service-card, .pricing-card, a.portfolio-card img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                opacity 0.4s ease;
}

img {
    background-color: #111111; /* Color de relleno mientras carga */
    content-visibility: auto; /* Optimiza el renderizado del navegador */
}