
/* =========================
   ESTILOS BASE & HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.4)
        ),
        url('/assets/Background_Home_Page/Background_1.webp') center 78%/cover no-repeat;
    color: #fff;
}

/* =========================
   NAVBAR
========================= */

.hero__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 5%;
    z-index: 100;
    position: relative;
    font-family: var(--font-primary);
    font-weight: 900;
}

.hero__logo {
    height: 30px;
}

.hero__nav-links,
.hero__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Links */

.hero__nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: 0.3s ease;
    opacity: 0.8;
    position: relative;
    padding: 6px 14px;
    border-radius: 12px;
}

.hero__nav-links a:hover {
    opacity: 1;
    color: var(--ink);

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================
   MENÚ SÁNDWICH
========================= */

.menu-button {
  /* Reset de estilos de botón */
  display: none;
  align-items: center;
  color: var(--ink);
  justify-content: center;
  width: var(--btn-size);
  height: var(--btn-size);
  background: transparent;
  border: none;
  border-radius: 8px; /* O 50% para circular */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  position: relative;
  z-index: 101;
}

/* Efecto sutil al pasar el mouse */
.menu-button:hover {
  background-color: var(--btn-hover-bg);
  transform: translateY(-1px);
}

.menu-button:active {
  transform: translateY(0);
}

/* El icono de "Hamburguesa" minimalista */
.menu-icon {
  width: var(--line-width);
  height: 2px;
  background-color: var(--btn-color);
  position: relative;
  transition: background-color 0.3s;
}

/* Las líneas superior e inferior */
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--btn-color);
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

/* Posicionamiento de las líneas */
.menu-icon::before { top: -6px; } /* Línea superior */
.menu-icon::after { top: 6px; }   /* Línea inferior */

/* Animación opcional cuando el menú está abierto */
.menu-button.is-active .menu-icon {
  background-color: transparent; /* Desaparece la línea central */
}

.menu-button.is-active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-button.is-active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =========================
   HERO CONTENT
========================= */

.hero__display {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero__content-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0.5rem 0;
    line-height: 1.1;
}

/* =========================
   BOTONES
========================= */

.btn-icon,
.btn-cv-primary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.menu-close {
  display: none;
}

.btn-icon .material-icons {
  font-size: 1.2rem; /* O usa px como 30px */
}

.btn-icon:hover {
    background: rgba(255,255,255,0.2);
}

.btn-cv-primary {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 4px;

    background: linear-gradient(
        135deg,
        rgba(15, 76, 207, 0.9),
        rgba(15, 76, 207, 0.7)
    );

    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;

    backdrop-filter: blur(10px);
    transition: all 0.35s ease;

    box-shadow: 0 8px 20px rgba(15, 76, 207, 0.4);
}

.btn-cv-primary .btn-cv-text {
  font-family: var(--font-primary);
}

.btn-cv-primary .material-icons {
  font-size: 1.5rem;
}

.btn-cv-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 76, 207, 0.6);
}

.btn-cv-primary:active {
    transform: translateY(0);
}

/* =========================
   DROPDOWN CV
========================= */

.cv-dropdown {
    position: relative;
    width: fit-content;
}

.cv-options {
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    display: none;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cv-dropdown:hover .cv-options {
    display: flex;
    flex-direction: column;
}

.cv-options a {
    padding: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    border-radius: 6px;
}

.cv-options a:hover {
    background: #f0f0f0;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */

@media (max-width: 768px) {

    .menu-button {
        display: block;
    }

    /* Menú lateral */
    .hero__nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 48%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        transition: right 0.35s ease;
        backdrop-filter: blur(20px);
        padding: 2rem;
        z-index: 1001;
    }

    .hero__nav-links.active {
        right: 0;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
        z-index: 1000;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Botón cerrar */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.2);
        color: #fff;
        font-size: 1.2rem;
        border-radius: 10px;
        padding: 6px 12px;
        cursor: pointer;
        backdrop-filter: blur(10px);
        transition: 0.3s ease;
    }

    .menu-close:hover {
        background: rgba(255,255,255,0.15);
    }

    /* Ocultar acciones en móvil */
    .hero__actions {
        display: none;
    }

    /* Ajustes de contenido */

    .hero__content-name {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    /* Dropdown mejor comportamiento en móvil */
    .cv-options {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .cv-options a {
        color: #fff;
    }

    .cv-options a:hover {
        background: rgba(255,255,255,0.1);
    }
}