/* Fuente principal: Para encabezados */
@font-face {
    font-family: 'Bebas';
    src: url(../assets/fonts/BebasNeue.ttf);
}

/* Fuente secundaria: Para textos */
@font-face {
    font-family: 'Monserrat';
    src: url(../assets/fonts/OpenSans-Medium.ttf);
}

:root {
    --text-white: #ffffff;
    --accent-color: #f3b729;
    --overlay-color: radial-gradient(circle at 20% center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
}

/* FONDO FIJO PARALLAX */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../assets/images/fondo.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
}

.dots-overlay {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 25px 25px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* ESTRUCTURA DE PANELES */
.parallax-wrapper {
    width: 100%;
}

.panel {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
}

/* SECCIÓN INICIO */
.hero-content {
    display: flex;
    align-items: flex-end;
    gap: 35px;
}

.main-logo-text {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(5rem, 16vw, 16rem);
    line-height: 0.72;
    text-transform: uppercase;
    margin-top: 0.3em;
}

.tagline {
    font-size: 1rem;
    letter-spacing: 0.5em;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 25px;
    margin-bottom: 1rem;
}

.tagline span {
    display: block;
}

/* SECCIÓN SERVICIOS */
.services-section {
    background: rgba(5, 5, 5, 0.5);
    /* Fondo oscuro sutil para legibilidad */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Efecto cristalmerilado sobre la muralla */
    border-top: 1px solid rgba(212, 255, 51, 0.3);
}

.services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Bebas', sans-serif;
    font-size: 5rem;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
}

.section-title span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-item {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s;
}

.service-item:hover {
    background: rgba(212, 255, 51, 0.05);
    border-color: var(--accent-color);
}

.service-num {
    color: var(--accent-color);
    font-family: 'Bebas', sans-serif;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.service-item p {
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
}

/* NUEVA SECCIÓN EL ESTUDIO */
.about-section {
    background: rgba(5, 5, 5, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 255, 51, 0.3);
}

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.about-text {
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.9;
}

.about-text:first-child {
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: 'Bebas', sans-serif;
    font-size: 3rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

/* NAVEGACIÓN Y LOGO (Reutilizados del código previo) */
.top-left-brand {
    position: fixed;
    top: 60px;
    left: 60px;
    z-index: 100;
}

.brand-logo-img {
    width: 60px;
    filter: brightness(0) invert(1);
}

.main-nav {
    position: fixed;
    top: 60px;
    right: 60px;
    z-index: 100;
    text-align: right;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-highlight {
    color: var(--accent-color) !important;
}

.scroll-footer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.arrow {
    animation: bounce 2s infinite;
    display: block;
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .panel {
        padding: 40px 20px;
    }

    .main-nav {
        right: 20px;
        top: 40px;
    }

    .top-left-brand {
        left: 20px;
        top: 40px;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* SECCIÓN LUGO/GALICIA */
.lugogalicia-section {
    background: rgba(5, 5, 5, 0.5);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    border-top: 1px solid rgba(212, 255, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.lugogalicia-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* TIMELINE INTERACTIVA */
.timeline-container {
    position: relative;
    margin: -60px 0;
    min-height: 500px;
    width: 840px;
    margin-left: 120px;
}

.timeline-path {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateY(-50%);
}

.timeline-node {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-node:not(.active) {
    opacity: 0.95;
}

.timeline-node.active {
    opacity: 1;
    transform: scale(1.1);
}

.node-content {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 4px;
    width: 250px;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    transform: translateX(-50%);
    position: absolute;
    left: 50%;
    top: -100px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-node:nth-child(even) .node-content {
    top: auto;
    bottom: -100px;
}

.node-year {
    color: var(--accent-color);
    font-family: 'Bebas', sans-serif;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
}

.node-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.node-content p {
    font-weight: 300;
    line-height: 1.6;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* QUOTE SECTION */
.quote-section {
    text-align: center;
    margin-top: 80px;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-section blockquote {
    font-family: 'Bebas', sans-serif;
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
}

.quote-section blockquote::before,
.quote-section blockquote::after {
    content: '"';
    color: var(--accent-color);
    font-size: 3rem;
}

.quote-section cite {
    font-style: normal;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* EFECTOS ADICIONALES */
.timeline-node::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(243, 183, 41, 0.3);
}

.timeline-node.active::before {
    box-shadow: 0 0 0 8px rgba(243, 183, 41, 0.6),
        0 0 20px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 8px rgba(243, 183, 41, 0.6),
            0 0 20px var(--accent-color);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(243, 183, 41, 0.3),
            0 0 30px var(--accent-color);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(243, 183, 41, 0.6),
            0 0 20px var(--accent-color);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .timeline-path {
        flex-direction: column;
        height: auto;
        gap: 60px;
    }

    .timeline-path::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .node-content {
        width: 200px;
        top: auto;
        bottom: 50px;
        left: auto;
        right: calc(50% + 30px);
        transform: none;
    }

    .timeline-node:nth-child(even) .node-content {
        right: auto;
        left: calc(50% + 30px);
        bottom: 50px;
    }

    .quote-section blockquote {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .node-content {
        width: 150px;
        right: calc(50% + 20px);
        font-size: 0.8rem;
    }

    .timeline-node:nth-child(even) .node-content {
        left: calc(50% + 20px);
    }

    .quote-section blockquote {
        font-size: 1.2rem;
    }
}
/* PROMO BADGE EN SECCIÓN SERVICIOS */
.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.promo-badge {
    background: linear-gradient(135deg, var(--accent-color), #ff6b00);
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(243, 183, 41, 0.3);
    transform: rotate(2deg);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.promo-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b00, var(--accent-color));
    border-radius: 52px;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

.promo-text {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000;
    margin-bottom: 5px;
}

.promo-discount {
    display: block;
    font-family: 'Antonio', sans-serif;
    font-size: 1.2rem;
    color: #000;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@keyframes float {

    0%,
    100% {
        transform: rotate(2deg) translateY(0px);
    }

    50% {
        transform: rotate(2deg) translateY(-5px);
    }
}

@keyframes glow {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
        box-shadow: 0 0 20px rgba(243, 183, 41, 0.6);
    }
}

/* Responsive adjustments for promo badge */
@media (max-width: 768px) {
    .section-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-badge {
        transform: rotate(0deg);
        width: 100%;
        max-width: 250px;
    }

    .section-title {
        margin-bottom: 20px;
    }
}
/* MENÚ HAMBURGUESA */
.menu-toggle {
    position: fixed;
    top: 60px;
    right: 60px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* MENÚ PRINCIPAL - Versión mejorada */
.main-nav {
    position: fixed;
    top: 60px;
    right: 60px;
    z-index: 100;
    text-align: right;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(0);
}

.main-nav.hidden {
    transform: translateX(100%);
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav:not(.hidden) li {
    opacity: 1;
    transform: translateX(0);
}

.main-nav:not(.hidden) li:nth-child(1) { transition-delay: 0.1s; }
.main-nav:not(.hidden) li:nth-child(2) { transition-delay: 0.2s; }
.main-nav:not(.hidden) li:nth-child(3) { transition-delay: 0.3s; }
.main-nav:not(.hidden) li:nth-child(4) { transition-delay: 0.4s; }
.main-nav:not(.hidden) li:nth-child(5) { transition-delay: 0.5s; }

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-highlight {
    color: var(--accent-color) !important;
}

/* Responsive para menú*
/* MENÚ HAMBURGUESA */
.menu-toggle {
    position: fixed;
    top: 60px;
    right: 60px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* MENÚ PRINCIPAL - Versión mejorada */
.main-nav {
    position: fixed;
    top: 60px;
    right: 60px;
    z-index: 100;
    text-align: right;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(0);
}

.main-nav.hidden {
    transform: translateX(100%);
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav:not(.hidden) li {
    opacity: 1;
    transform: translateX(0);
}

.main-nav:not(.hidden) li:nth-child(1) {
    transition-delay: 0.1s;
}

.main-nav:not(.hidden) li:nth-child(2) {
    transition-delay: 0.2s;
}

.main-nav:not(.hidden) li:nth-child(3) {
    transition-delay: 0.3s;
}

.main-nav:not(.hidden) li:nth-child(4) {
    transition-delay: 0.4s;
}

.main-nav:not(.hidden) li:nth-child(5) {
    transition-delay: 0.5s;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-highlight {
    color: var(--accent-color) !important;
}

/* Responsive para menú hamburguesa */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        top: 40px;
        right: 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 100px 40px 40px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .main-nav:not(.hidden) {
        transform: translateX(0);
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
    }

    .main-nav li {
        margin-bottom: 30px;
        border-bottom: none;
        text-align: right;
    }

    .main-nav a {
        font-size: 1.5rem;
        padding: 10px 0;
    }
}esa */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        top: 40px;
        right: 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 100px 40px 40px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .main-nav:not(.hidden) {
        transform: translateX(0);
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
    }

    .main-nav li {
        margin-bottom: 30px;
        border-bottom: none;
        text-align: right;
    }

    .main-nav a {
        font-size: 1.5rem;
        padding: 10px 0;
    }
}
/* IMÁGENES EN TIMELINE NODES */
.node-image {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.node-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.node-content:hover .node-image img {
    transform: scale(1.05);
}

.timeline-node.active .node-image img {
    box-shadow: 0 0 15px rgba(243, 183, 41, 0.3);
}

/* Responsive para imágenes en timeline */
@media (max-width: 768px) {
    .node-image {
        height: 100px;
        margin-bottom: 10px;
    }

    .node-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .node-image {
        height: 80px;
    }

    .node-content {
        width: 180px;
        padding: 15px;
    }
}