@font-face {
    font-family: 'MyriadPro';
    src: url('fonts/MyriadPro-Regular_3.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'MyriadPro';
    src: url('fonts/MyriadPro-Bold_3.otf') format('opentype');
    font-weight: bold;
}

@font-face {
    font-family: 'MyriadProBlack';
    src: url('fonts/MyriadPro-BlackSemiCn.otf') format('opentype');
    font-weight: 900;
}

@font-face {
    font-family: 'MyriadProItalic';
    src: url('fonts/MyriadPro-BlackSemiCnIt.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

:root {
    --bg-white: #ffffff;
    --bg-black: #000000;
    --pink: #FF007A;
}

html {
    scroll-behavior: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: uppercase;
}

body {
    background: var(--bg-white);
    font-family: 'MyriadPro', sans-serif;
    color: #000;
    overflow-x: hidden;
}

/* --- HEADER --- */
nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

nav.nav-active {
    background-color: #000000 !important;
    padding: 12px 0;
    min-height: 100px;
}

.logo {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'MyriadProBlack', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 0.6;
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--pink);
}

/* MENÚ CON BARRA HORIZONTAL EXPANSIVA */
.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 5px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--pink);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--pink);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('fotos/slider1.png');
    background-size: cover;
    background-position: center top;
}

.main-title {
    font-family: 'MyriadProItalic', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(45px, 10vw, 110px);
    line-height: 0.75;
    color: var(--pink);
    letter-spacing: -3px;
    position: relative;
    z-index: 2;
    animation: chromatic-glitch 6s infinite ease-in-out;
}

.mt-neg {
    margin-top: -5px;
}

@keyframes chromatic-glitch {

    0%,
    100% {
        text-shadow: 2px 0 0 rgba(0, 255, 255, 0.5), -2px 0 0 rgba(255, 0, 255, 0.5);
    }

    33% {
        text-shadow: -2px 1px 0 rgba(0, 255, 255, 0.4), 2px -1px 0 rgba(255, 0, 255, 0.4);
    }

    66% {
        text-shadow: 1px -1px 0 rgba(0, 255, 255, 0.4), -1px 1px 0 rgba(255, 0, 255, 0.4);
    }
}

.subtitle-bold {
    font-family: 'MyriadPro', sans-serif;
    font-weight: 900;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    margin-top: 40px;
    color: #fff;
    z-index: 2;
    position: relative;
}

/* --- PROYECTOS --- */
.dark-section {
    background: #000;
    color: #fff;
    padding: 100px 8%;
    position: relative;
    z-index: 2;
}

.section-title {
    color: var(--pink);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 40px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.img-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    border: 1px solid #222;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .img-box {
    transform: translateY(-10px);
    background: var(--pink);
}

/* --- SERVICIOS --- */
.services {
    padding: 100px 8%;
    background: #fff;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    font-size: 2rem;
    font-weight: bold;
    padding: 35px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.accordion-header:hover {
    color: var(--pink);
    padding-left: 15px;
}

.accordion-item.active .accordion-header {
    color: var(--pink);
    font-family: 'MyriadProItalic', sans-serif;
}

.icon {
    font-size: 2.2rem;
    transition: transform 0.4s ease;
}

.accordion-item.active .icon {
    transform: rotate(180deg);
}

.accordion-content {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.accordion-inner {
    padding: 10px 0 40px 0;
    text-transform: none;
    line-height: 1.6;
}

/* --- FOOTER --- */
footer {
    padding: 100px 0 0 0;
    background: #fff;
    text-align: center;
}

.footer-container {
    padding: 0 5% 60px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-label {
    color: var(--pink);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-big-title {
    font-family: 'MyriadProBlack', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1;
    margin-bottom: 40px;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #000;
    font-family: 'MyriadPro', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--pink);
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    transform: scale(0.9);
}

.submit-btn {
    background: #000;
    color: #fff;
    padding: 18px;
    border: none;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--pink);
    transform: translateY(-3px);
}

/* --- OTROS --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: var(--pink);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.copyright-bar {
    background: #000;
    color: #fff;
    padding: 30px;
    font-size: 0.7rem;
    margin-top: 50px;
}

.copyright-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}