/* ========================
   RESETEO
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Instrument Sans", sans-serif;
    background: #ffffff;
}

/* =======================
   HEADER REDISEÑADO
======================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;

    /* Fondo blanco 70% + blur 30% */
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}

.header-left {
    font-size: 12px;
    font-weight: 300;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
}

.header-center {
    display: flex;
    gap: 8px;
}

.header-right {
    display: flex;
}

.nav-link {
    font-size: 12px;
    font-weight: 300;
    text-decoration: none;
    color: #000000;
    transition: color 0.3s, font-weight 0.3s;
}

.nav-link:hover {
    color: #0024fc; /* azul hover */
    font-weight: 400;
}

/* =======================
   HAMBURGUESA
======================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 16px;
    height: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #0024fc;
}
/* =======================
   CONTACT OVERLAY
======================= */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.contact-overlay.active {
    display: flex;
}

/* TARJETA */
.contact-card {
    width: 495px;
    height: 286px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
    position: relative;
    transform: rotate(-5deg);
    padding: 24px;
}

/* CLOSE */
.contact-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    color: #000000;
    cursor: pointer;
}

.contact-close:hover {
    color: #0024ce;
}

/* CONTENIDO */
.contact-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
}

/* TEXTOS */
.contact-intro,
.contact-follow {
    font-size: 17.5px;
    font-weight: 500;
    font-style: italic;
    color: #000000;
    margin-bottom: 8px;
}

.highlight {
    color: #0024ce;
}

/* LINKS */
.contact-link,
.contact-socials a {
    font-size: 15.3px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
}

.contact-link:hover,
.contact-socials a:hover {
    color: #0024ce;
}
/* =======================
   MOBILE MENU (oculto por defecto)
======================= */
.mobile-menu {
    display: none; /* oculto en desktop */
    flex-direction: column;
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    text-align: center;
}

.mobile-menu .nav-link {
    font-size: 12px;
    font-weight: 300;
    color: #000000;
}

.mobile-menu .nav-link:hover {
    color: #0024fc;
    font-weight: 400;
}

/* ========================
   FOOTER
======================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.footer-email {
    font-size: 9pt;
    color: #000000;
    white-space: nowrap;
    line-height: 40px;
}

.footer-email a {
    text-decoration: none;
    color: #000000;
}

.footer-email a:hover {
    color: #0024fc;
    text-decoration: none;
}

.footer-icons {
    display: flex;
    gap: 24px;
}

.footer-icons a {
    color: #0024fc;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    display: flex;
    align-items: center;
}

.footer-icons a[data-icon="instagram"] span,
.footer-icons a[data-icon="linkedin"] span {
    font-size: 18px !important;
}

.footer-icons a[data-icon="behance"] span {
    font-size: 20px !important;
}

/* ========================
   MAIN CONTENT - CENTRADO
======================== */
.center-screen {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;     /* centra horizontalmente */
    text-align: center;
    min-height: 100vh;       /* ocupa toda la pantalla */
    padding: 20px;
    box-sizing: border-box;
}

/* espacio reservado para header */
.center-screen::before {
    content: '';
    display: block;
    height: 40px; /* altura del header */
}

/* espacio reservado para footer */
.center-screen::after {
    content: '';
    display: block;
    height: 33px; /* altura del footer */
}

.door-text {
    color: #0024fc;
    font-weight: 400;
    font-size: 18px;
    margin: 0;
    line-height: 1.5;
}

/* ========================
   RESPONSIVE TABLET
======================== */
@media (max-width: 1366px) {
    .header-right {
        margin-left: auto;
        gap: 30px;
    }

    .center-screen {
        padding: 20px 40px;
    }
}

/* ========================
   RESPONSIVE MÓVIL
======================== */
@media (max-width: 768px) {

  /* Bloquear scroll global */
  html,
  body {
    height: 100%;
    overflow: hidden; /* elimina cualquier scroll */
    margin: 0;
    padding: 0;
  }

  /* HEADER */
  .header {
    height: 40px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Ocultamos menú que no se usa */
  .header-center,
  .header-right {
    display: none;
  }

  /* Mostramos hamburguesa */
  .hamburger {
    display: flex;
  }

  /* Menú móvil activo */
  .mobile-menu.active {
    display: flex;
  }

  /* CONTENEDOR CENTRAL */
  .center-screen {
    height: calc(100svh - 40px - 60px); /* viewport menos header y footer aproximados */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    overflow: hidden; /* evita scroll interno */
    box-sizing: border-box;
    text-align: center;
  }

  /* TEXTO */
  .door-text {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    max-height: 100%;
    overflow: hidden;
  }

  /* FOOTER */
  .footer {
    height: auto;
    padding: 0 12px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .footer-email {
    font-size: 8.5pt;
    line-height: 33px;
  }

  .footer-icons {
    gap: 16px;
  }

  /* CONTACT OVERLAY */
  .contact-card {
    width: 90%;
    max-width: 360px;
    height: auto;
    max-height: 90svh;   /* limita altura */
    overflow: hidden;
    padding: 20px;
    transform: rotate(-3deg);
  }

  .contact-content {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 40px;
    max-height: 100%;
    overflow: hidden;
  }

  .contact-intro,
  .contact-follow {
    font-size: 15px;
    line-height: 1.4;
  }

  .contact-link,
  .contact-socials a {
    font-size: 14px;
  }

  .contact-close {
    font-size: 13px;
  }
}

