/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #050505;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --black: #050505;
    --black-light: #0b0b0b;
    --black-card: #111111;

    --gold: #d4af37;
    --gold-light: #e5c45c;
    --gold-dark: #9d7b19;

    --white: #ffffff;
    --gray: #b7b7b7;
    --gray-dark: #777777;

    --border: rgba(212, 175, 55, 0.25);

    --container: 1200px;
}


/* =========================================
   HEADER
========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(5, 5, 5, 0.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

nav {
    max-width: var(--container);

    margin: auto;

    min-height: 78px;

    padding: 0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;

    align-items: center;

    color: var(--gold);

    transition: 0.3s ease;
}

.logo img {
    width: 120px;

    height: auto;

    display: block;
}

.logo:hover {
    opacity: 0.85;
}


/* =========================================
   NAVIGATION
========================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 35px;

    list-style: none;
}

.nav-links a {
    position: relative;

    color: #eeeeee;

    font-size: 0.9rem;

    letter-spacing: 1px;

    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 1px;

    background: var(--gold);

    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================================
   MENU MOBILE
========================================= */

.menu-toggle {
    display: none;

    background: none;

    border: none;

    color: var(--gold);

    font-size: 1.7rem;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    overflow: hidden;

    min-height: calc(100vh - 78px);

    padding: 60px 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.10),
            transparent 40%
        ),
        #050505;
}


/* =========================================
   CANVAS DE PARTICULAS
========================================= */

#particles-canvas {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;
}


/* =========================================
   CONTENIDO HERO
========================================= */

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;

    animation: fadeUp 1s ease forwards;
}

.hero-subtitle {
    color: var(--gold);

    font-size: 0.9rem;

    letter-spacing: 6px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);

    line-height: 1.15;

    font-weight: normal;

    letter-spacing: 2px;
}

.hero h1 span {
    color: var(--gold);
}

.gold-line {
    width: 90px;

    height: 2px;

    margin: 30px auto;

    background: var(--gold);

    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.35);
}

.hero-description {
    max-width: 700px;

    margin: 0 auto;

    color: var(--gray);

    font-size: 1.1rem;

    line-height: 1.9;
}


/* =========================================
   BOTONES
========================================= */

.btn {
    display: inline-block;

    margin-top: 35px;

    padding: 14px 34px;

    border: 1px solid var(--gold);

    background: var(--gold);

    color: #080808;

    font-family: Arial, sans-serif;

    font-size: 0.8rem;

    font-weight: bold;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition: all 0.3s ease;
}

.btn:hover {
    background: transparent;

    color: var(--gold);

    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.15);
}

.btn-outline {
    margin-left: 12px;

    background: transparent;

    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);

    color: #050505;
}


/* =========================================
   SECCIONES GENERALES
========================================= */

section {
    padding: 110px 30px;
}

.section-heading {
    max-width: 900px;

    margin: 0 auto 70px;

    text-align: center;
}

.section-label {
    color: var(--gold);

    font-family: Arial, sans-serif;

    font-size: 0.75rem;

    font-weight: bold;

    letter-spacing: 4px;

    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);

    font-weight: normal;

    line-height: 1.2;
}

.section-heading h2 span {
    color: var(--gold);
}


/* =========================================
   PERFIL
========================================= */

.profile {
    max-width: var(--container);

    margin: auto;
}

.profile-content {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;

    align-items: center;
}

.profile-image {
    position: relative;

    border: 1px solid var(--border);

    padding: 10px;

    background: var(--black-card);
}

.profile-image::before {
    content: "";

    position: absolute;

    top: -10px;
    left: -10px;

    width: 70px;
    height: 70px;

    border-top: 2px solid var(--gold);

    border-left: 2px solid var(--gold);
}

.profile-image::after {
    content: "";

    position: absolute;

    bottom: -10px;
    right: -10px;

    width: 70px;
    height: 70px;

    border-bottom: 2px solid var(--gold);

    border-right: 2px solid var(--gold);
}

.profile-image img {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    filter: grayscale(20%);
}

.profile-text p {
    color: var(--gray);

    font-size: 1.05rem;

    line-height: 1.9;

    margin-bottom: 25px;
}


/* =========================================
   ESPECIALIDADES
========================================= */

.services {
    background: var(--black-light);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.services-grid {
    max-width: var(--container);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.service-card {
    padding: 45px 30px;

    text-align: center;

    background: var(--black-card);

    border: 1px solid var(--border);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: var(--gold);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    color: var(--gold);

    font-size: 2.2rem;

    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--white);

    font-size: 1.25rem;

    font-weight: normal;

    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-dark);

    font-size: 0.95rem;

    line-height: 1.8;
}


/* =========================================
   EXPERIENCIA
========================================= */

.experience {
    max-width: var(--container);

    margin: auto;
}

.experience-content {
    max-width: 900px;

    margin: auto;
}

.experience-item {
    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 30px;

    padding: 30px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        opacity 0.3s ease;
}

.experience-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-number {
    color: var(--gold);

    font-size: 1.4rem;

    letter-spacing: 2px;
}

.experience-item h3 {
    margin-bottom: 8px;

    font-size: 1.3rem;

    font-weight: normal;
}

.experience-item p {
    color: var(--gray);

    line-height: 1.8;
}


/* =========================================
   CONTACTO
========================================= */

.contact {
    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.08),
            transparent 45%
        ),
        var(--black-light);

    border-top: 1px solid var(--border);
}

.contact-content {
    max-width: 700px;

    margin: auto;

    text-align: center;
}

.contact-content > p {
    color: var(--gray);

    font-size: 1.05rem;

    margin-bottom: 40px;
}

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.contact-info p {
    display: flex;

    justify-content: center;

    gap: 12px;

    color: var(--gray);
}

.contact-info strong {
    color: var(--gold);

    font-weight: normal;
}

.contact-info a {
    transition: 0.3s ease;
}

.contact-info a:hover {
    color: var(--gold);
}

.contact-buttons {
    margin-top: 15px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 45px 30px;

    background: #020202;

    border-top: 1px solid var(--border);

    text-align: center;
}

.footer-logo {
    color: var(--gold);

    font-size: 1.1rem;

    letter-spacing: 3px;

    margin-bottom: 5px;
}

.footer-content > p:not(.footer-logo):not(.copyright) {
    color: var(--gray-dark);

    font-size: 0.85rem;
}

.copyright {
    margin-top: 25px;

    color: #555555;

    font-family: Arial, sans-serif;

    font-size: 0.75rem;
}


/* =========================================
   ANIMACIÓN HERO
========================================= */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform: translateY(25px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-content {
        grid-template-columns: 1fr;

        max-width: 700px;
    }

    .profile-image {
        max-width: 450px;

        margin: auto;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    nav {
        min-height: 70px;

        padding: 0 20px;
    }


    /* LOGO */

    .logo img {
        width: 90px;
    }


    /* MENU */

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        gap: 0;

        background: rgba(5, 5, 5, 0.98);

        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;

        text-align: center;
    }

    .nav-links a {
        display: block;

        padding: 16px;
    }


    /* HERO */

    .hero {
        min-height: calc(100vh - 70px);

        padding: 60px 20px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3.5rem);

        line-height: 1.15;

        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.75rem;

        letter-spacing: 4px;

        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1rem;

        line-height: 1.7;
    }


    /* SECCIONES */

    section {
        padding: 90px 20px;
    }


    /* SERVICIOS */

    .services-grid {
        grid-template-columns: 1fr;
    }


    /* CONTACTO */

    .contact-info p {
        flex-direction: column;

        gap: 2px;
    }


    /* BOTONES */

    .btn {
        width: 100%;

        text-align: center;
    }

    .btn-outline {
        margin-left: 0;

        margin-top: 12px;
    }


    /* EXPERIENCIA */

    .experience-item {
        grid-template-columns: 50px 1fr;

        gap: 15px;
    }

}


/* =========================================
   REDUCIR ANIMACIONES SI EL USUARIO
   LAS DESACTIVA EN SU SISTEMA
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}