/* ======================================================
   COMPONENTES REUTILIZABLES
   ====================================================== */

/* =========================
   COOKIE CONSENT
   ========================= */
.cookie-consent {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999999;
  width: min(380px, calc(100vw - 36px));
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.65);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent__content { padding: 16px 16px 14px; }

.cookie-consent__title {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cookie-consent__text {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-consent__link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent__actions--save { margin-top: 10px; }

.cookie-btn {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 999px;
  min-width: 135px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cookie-btn:hover {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #ff6b6b, #ff8a8a);
  border-color: transparent;
  color: #000;
  font-weight: 700;
}

.cookie-btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff8a8a, #ff9f9f);
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.055);
  font-weight: 500;
}


/* ======================================================
   TÍTULOS DE CADA SECCIÓN
   ====================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    transform-style: preserve-3d;
}

.section-title {
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    animation: linePulse 2s infinite alternate;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-tertiary);
    transform: translateZ(20px);
}

.highlight {
    color: var(--text-primary);
    font-weight: 700;
}


/* ======================================================
   MENÚ SUPERIOR (HEADER)
   ====================================================== */  
/* Header base */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.9rem 2.5rem;
    transition: var(--transition-smooth);
    background-color: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transform: translateZ(0);
}

.header.scrolled {
    padding: 1.3rem 2rem;
    background-color: rgba(11, 11, 11, 0.95);
    border-bottom-color: var(--border-color);
}

.header.scrolled::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.836), transparent);
}

.header.is-hidden {
    transform: translateY(-110%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: baseline;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.06);
}

.logo-dot {
    width: 7px;
    height: 7px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.logo:hover .logo-dot {
    transform: scale(1.3);
    background-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.kora-logo {
    height: 27px;
    width: auto;
    display: block;
    user-select: none;
}

.logo:hover .kora-logo {
    filter: brightness(1.3);
}

/* Navegación */
.nav-list {
    display: flex;
    list-style: none;
    gap: 5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.8rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-primary), transparent 80%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.nav-link:hover::before {
    width: 130%;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 100;
    list-style: none;
    backdrop-filter: blur(10px);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
    padding-left: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Botón 'Contacta' */
.btn-contact {
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition-smooth);
    background-color: transparent;
    animation: contactBorderPulse 8s ease-in-out infinite;
}

.btn-contact:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(255, 131, 131, 0.2);
    animation: none;
}

@keyframes contactBorderPulse {
    60% {
        border-color: var(--border-color);
        box-shadow: 0 0 0px transparent;
    }

    85% {
        border-color: var(--accent-color);
        box-shadow: 0 0 8px rgba(255, 131, 131, 0.2);
    }

    100% {
        border-color: var(--border-color);
        box-shadow: 0 0 0px transparent;
    }
}

/* Language switch */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    overflow: hidden;
}

.lang-switch button {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--text-tertiary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 0.7rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.lang-es {
    border-radius: 999px 0 0 999px;
}

.lang-en {
    border-radius: 0 999px 999px 0;
}

.lang-switch button:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.lang-switch button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15), 0 0 0 4px rgba(255, 131, 131, 0.25);
}

.lang-switch button.is-active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}

.lang-switch-li {
  display: none;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 27px;
    height: 1px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle span:first-child {
    transform: translate(-50%, -8px);
}

.menu-toggle span:last-child {
    transform: translate(-50%, 6px);
}

.menu-toggle.is-open span:first-child {
    transform: translate(-50%, -1px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    transform: translate(-50%, -1px) rotate(-45deg);
}


/* ======================================================
   FOOTER
   ====================================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    animation: scanLine 3s linear infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    perspective: 1000px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
footer .logo {
    width: fit-content;
}

.footer a:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-brand .logo{
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}

.footer-brand .logo-dot{
  margin-left: 0;
}

.footer-description {
    color: var(--text-tertiary);
    max-width: 350px;
    margin-bottom: 1rem;
}
.row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    align-items: start;
}
.btn-blog {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 7px 32px;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-blog:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.5s ease;
}

.footer-title-2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
}

.footer-title-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.5s ease;
}

.footer-title:hover::after {
    width: 90%;
    
}
.footer-title-2:hover::after {
    width: 45%;
    
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links li:hover a{
    color: var(--text-primary);
}

.footer-cta p {
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.footer-cta .btn-secondary {
    animation: contactBorderPulse 8s ease-in-out infinite;
}

.footer-cta .btn-secondary:hover {
    border-color: var(--accent-color);
    background-color: transparent;
    box-shadow: 0 0 8px rgba(255, 131, 131, 0.2);
    animation: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-tertiary);
    position: relative;
    padding: 3px 0;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--text-primary), transparent);
    transition: width 0.3s ease;
}

.footer-legal a:hover::after {
    width: auto;
}


/* ======================================================
   BOTONES REUTILIZABLES
   ====================================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--text-primary), 0 10px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 1rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--accent-glow);
    transform: translateY(-2px);
}


/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1200px) {
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 1060px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 998px) {
    .header {
        padding: 1.4rem 2.5rem;
    }

    .header.scrolled {
        padding: 1.3rem 2rem;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 65vw;
        height: 100vh;
        background: rgba(11, 11, 11, 0.96);
        backdrop-filter: blur(20px);

        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 25px;
        gap: 18px;

        transition: right 0.35s ease;

        z-index: 999;
        overflow-y: auto;

        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.35);
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
    }

    .menu-toggle.is-open {
        z-index: 1200;
    }

    .nav.active {
        right: 0;
    }
    
    .nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    .nav .nav-item {
        width: 100%;
    }

    .nav .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        width: 100%;
        display: block;
    }

    .lang-switch-desktop {
        display: none;
    }

    .nav.active .lang-switch-li {
        display: flex;
    }
}

@media (max-width: 900px) {
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .row {
        flex-direction: row;
        align-items: start;
    }
}

@media (max-width: 798px) {

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn-primary {
        padding: 0.7rem 2rem;
        font-size: 1rem;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 465px) {
    .btn-contact {
        padding: 0.4rem 1.1rem;
    }
    .header {
        padding: 1.4rem 1.5rem;
    }
    .kora-logo {
        height: 23px;
    }
}

@media (max-width: 400px) {
    .row {
        flex-direction: column;
        align-items: flex-start;
    }
}