/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080808;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   NAVEGACIÓN
========================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    max-width: 1200px;
    margin: auto;

    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;
}


/* LOGO */

.logo {
    font-size: 35px;
    font-weight: 800;
    letter-spacing: 4px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.logo img {
    width: 80px;
    height: 300px;

    object-fit: contain;
}

.logo .azul {
    color: #16098b;
}

.logo span {
    color: #ffffff;
}


/* MENÚ */

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #b5b5b5;
    font-size: 14px;

    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}


/* =========================
   PORTADA
========================= */

.hero {
    min-height: 100vh;
    max-width: 1200px;

    margin: auto;

    padding: 150px 30px 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.hero-text {
    max-width: 600px;
}

.small-title {
    color: #16098b;

    font-size: 20px;
    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(60px, 7vw, 95px);

    line-height: 0.95;

    letter-spacing: -4px;

    margin-bottom: 30px;
}

.hero h1 span {
    color: #16098b;
}

.description {
    color: #9b9b9b;

    font-size: 18px;

    line-height: 1.6;

    max-width: 500px;

    margin-bottom: 35px;
}


/* =========================
   BOTONES
========================= */

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;

    padding: 15px 24px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: bold;

    transition: 0.3s;
}

.btn.primary {
    background: #16098b;
    color: white;
}

.btn.primary:hover {
    background: #16098b;

    transform: translateY(-2px);
}

.btn.secondary {
    border: 1px solid #333;

    color: white;
}

.btn.secondary:hover {
    border-color: #16098b;
}


/* =========================
   IMAGEN PRINCIPAL
========================= */

.hero-image {
    width: 450px;
    height: 450px;
    flex-shrink: 0;

    transform: translateX(-10px);

    border-radius: 25px;

    background:
        radial-gradient(
            circle at center,
            rgba(39, 29, 122, 0.45),
            transparent 55%
        ),
        #111;

    border: 1px solid rgba(39, 29, 122, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 100px;
    font-weight: 900;
    color: rgba(39, 29, 122, 0.45);

    box-shadow: 0 0 80px rgba(39, 29, 122, 0.45);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 25px;
    display: block;

    box-shadow: 0 0 80px rgba(39, 29, 122, 0.45);
}
/* =========================
   SECCIONES
========================= */

.section {
    max-width: 1200px;

    margin: auto;

    padding: 80px 20px;
}

.section-title {
    margin-bottom: 60px;
}

.section-title p,
.contact > p {
    color: #16098b;

    font-size: 18px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 15px;
}
    
.section-title h2 {
    font-size: 48px;

    letter-spacing: -2px;
}

.section-title span {
    color: #16098b;
}


/* =========================
   PRODUCTOS
========================= */

.products {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.product-card {
    background: #111;

    border: 1px solid #222;

    border-radius: 15px;

    overflow: hidden;

    transition: 0.3s;

    min-width: 0;
}

.product-card:hover {
    transform: translateY(-5px);

    border-color: #16098b;
}


/* CAJA DE LA FOTO */

.product-image {
    width: 100%;

    height: 280px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #151515,
            #0d0d0d
        );

    color: #16098b;

    font-size: 50px;

    font-weight: bold;

    overflow: hidden;
}


/* FOTO */

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.product-card h3 {
    padding: 20px 20px 5px;

    font-size: 18px;
}

.product-card p {
    padding: 0 20px 20px;

    color: #777;

    font-size: 14px;
}


/* =========================
   SERVICIOS
========================= */

.services {
    border-top: 1px solid #1b1b1b;
}

.service-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.service {
    padding: 35px;

    background: #101010;

    border: 1px solid #202020;

    border-radius: 15px;
}

.service-number {
    color: #16098b;

    font-size: 14px;

    margin-bottom: 30px;
}

.service h3 {
    font-size: 24px;

    margin-bottom: 15px;
}

.service p {
    color: #777;

    line-height: 1.6;
}


/* =========================
   CONTACTO
========================= */

.contact {
    text-align: center;

    padding: 150px 30px;

    background:
        radial-gradient(
            circle at center,
            rgba(101, 85, 247, 0.12),
            transparent 50%
        );
}

.contact h2 {
    font-size: clamp(55px, 8vw, 90px);

    line-height: 0.95;

    letter-spacing: -4px;

    margin-bottom: 30px;
}

.contact h2 span {
    color: #16098b;
}

.contact-text {
    max-width: 450px;

    margin: 0 auto 35px;

    color: #888;

    line-height: 1.6;
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid #222;

    padding: 40px 30px;

    text-align: center;

    color: #666;
}

footer .logo {
    color: white;

    margin-bottom: 10px;

    justify-content: center;
}

footer .logo img {
    width: 45px;
    height: 60px;
}

footer .logo span {
    color: #ffffff;
}

footer .logo .azul {
    color: #16098b;
}

footer p {
    font-size: 13px;
}

.copyright {
    margin-top: 20px;

    color: #444;
}


/* =========================
   CELULAR
========================= */

@media (max-width: 800px) {

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        padding-top: 130px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 65px;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;

        flex-wrap: wrap;
    }

    .hero-image {
        width: 100%;

        max-width: 450px;

        height: 350px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 38px;
    }
}
/* =========================
   ANIMACIONES DE BOTONES
========================= */

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 29, 122, 0.35);
}
/* =========================
   ANIMACIÓN DE IMÁGENES
========================= */

.hero-image img {
    transition: transform 0.4s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}
/* =========================
   WHATSAPP FLOTANTE
========================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: white;

    text-decoration: none;

    font-size: 28px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);

    z-index: 999;

    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.45);
}
/* =========================
   CELULARES
========================= */

@media (max-width: 768px) {

    .hero-image {
        width: 90%;
        height: auto;
        aspect-ratio: 1 / 1;

        transform: none;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
    }

    .btn {
        width: 90%;
        max-width: 350px;
        text-align: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;

        right: 18px;
        bottom: 18px;

        font-size: 25px;
    }
}
/* =========================
   ENTRADA SUAVE
========================= */

body {
    animation: pageFade 0.8s ease;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================
MOSTRAR MÁS TRABAJOS
========================= */

.extra-work {
    opacity: 0;
    max-height: 0;
    transform: translateY(-15px);
    overflow: hidden;
    pointer-events: none;

    transition:
        opacity 0.4s ease,
        max-height 0.5s ease,
        transform 0.4s ease;
}

.extra-work.show {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
    pointer-events: auto;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

#showMoreBtn {
    cursor: pointer;
    border: none;
}