/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente global */
body {
  font-family: "Instrument Sans", sans-serif;
  background-color: #0B0B0A;
  color: #fff;
  overflow-x: hidden;
}

/* 🔑 Contenedor fluido */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 200px;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Cover */
.cover {
  position: relative;
  width: 100%;
  height: 85vh; /* siempre 85% de la pantalla */
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* Video de fondo */
.cover video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Contenido encima del video */
.cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center; /* 🔑 centra verticalmente imagen + texto */
  height: 100%;
  padding: 20px 200px; /* 20px top, 200px laterales */
  box-sizing: border-box;
}

/* Imagen dentro del cover */
.cover img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

/* Grupo de texto */
.text-group {
  margin-top: 8px; /* 20px debajo de la imagen */
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  margin-bottom: 35px;
}

/* Textos */
.text-group p,
.text-group h1 {
  margin: 0;
}

.text-small {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.2);
}

.text-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #E9F276;
}

.big-title {
  margin-top: 48px;
  font-size: 48px;
  font-weight: 700;
}

.big-title .yellow {
  color: #E9F276;
}

.big-title .faded {
  color: rgba(255, 255, 255, 0.25);
}

/* Responsivo para tablets */
@media (max-width: 1024px) {
  .cover-content {
    padding: 20px 100px; /* reducimos padding lateral */
  }
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .cover-content {
    padding: 20px 24px 40px; /* bottom extra para respiro */
    align-items: flex-start;
    justify-content: flex-end; /* 🔑 empuja imagen + texto hacia abajo */
  }

  .cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
  }

  .text-group {
    margin-top: 20px;
    text-align: left;
  }
}

/* Highlight */
.highlight {
  width: 100%;
  background-color: #E9F276;
  padding: 64px 0;
  border-radius: 40px;
}

.highlight p {
  color: #0B0B0A;
  font-size: 32px;
}

.two-columns {
  display: flex;
  width: 100%;
  min-height: 400px;
}

.column {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-col {
  background-color: #FE6F3F;
  color: #fff; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px; /* padding base desktop */
  border-radius: 40px;
}

.left-title {
  font-size: 40px;
  color: #242321;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Responsivo: tablets */
@media (max-width: 1024px) {
  .left-col {
    padding: 30px;
  }

  .left-title {
    font-size: 32px;
  }
}

/* Responsivo: móviles */
@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
  }

  .left-col {
    padding: 40px;
    align-items: flex-start;
  }

  .left-title {
    font-size: 28px;
    text-align: left;
  }
}

.right-col {
  background-color: #F5F5F3;
  color: #0B0B0A;
  border-radius: 40px;
}

/* Mobile: apilar columnas */
@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
  }
}

/* Contenedor de chips */
.skills {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Estilo de cada chip */
.chip {
  display: inline-block;
  color: #242321;
  font-size: 16px;
  font-weight: 600;
  padding: 8px;
  cursor: default;
  user-select: none;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.39);
}

/* Responsivo: tablets */
@media (max-width: 1024px) {
  .chip {
    font-size: 18px;
    padding: 6px;
  }
}

/* Responsivo: móviles */
@media (max-width: 768px) {
  .skills {
    justify-content: flex-start;
  }
  .chip {
    font-size: 16px;
    padding: 5px 6px;
  }
}

.right-buttons {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.btn {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 40px;
  font-weight: 700;
  color: #1C1B1F;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
  border-bottom: 1px solid #71706F;
  padding: 16px 0;
}

.btn svg {
  flex-shrink: 0;
}

.btn:hover {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .right-buttons {
    align-items: flex-start;
  }
  .btn {
    font-size: 28px;
    gap: 16px;
  }
}

.footer {
  position: relative;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.footer-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.footer-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-link {
    font-size: 14px;
  }
}
/* Oculta el botón por defecto en pantallas grandes (desktop) */
.btn-mobile {
  display: none;
}

/* --- Media Query --- */
/* Muestra el botón solo en pantallas con un ancho máximo de 768px (típico de móviles) */
@media (max-width: 768px) {
  .btn-mobile {
    display: block; /* o 'inline-block' según lo necesites */
    
    /* Estilos del botón */
    text-align: center;
    padding: 15px 20px;
    background-color: #007bff; /* Color de ejemplo, cámbialo a tu gusto */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px auto;
  }
}
/* ===== Role Overlay (fullscreen) ===== */
.role-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.65);           /* capa oscura */
  backdrop-filter: blur(10px);               /* desenfoque del fondo */
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 9999;
}

.role-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.role-modal {
  width: 100%;
  max-width: 600px;
  background: rgba(12, 12, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 28px 20px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

/* Header */
.role-header {
  margin-bottom: 16px;
}
.role-title {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.role-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}

/* Close (X) */
.role-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.role-close:hover { transform: scale(1.04); }

/* Chips grid */
.role-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .role-modal { padding: 24px; }
  .role-title { font-size: 22px; }
  .role-subtitle { font-size: 14px; }
  .role-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Chip button */
.role-chip {
  display: inline-flex;
  align-items: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.role-chip:hover { transform: translateY(-1px); }
.role-chip:active { transform: scale(0.98); }

/* Animación sutil al seleccionar */
.role-chip.selected {
  animation: chipPulse 220ms ease;
  border-color: #E9F276;
  background: rgba(233, 242, 118, 0.12);
  color: #E9F276;
}
@keyframes chipPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(233,242,118,0); }
  60% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(233,242,118,0.25); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(233,242,118,0); }
}

/* Skip text button */
.role-skip {
  margin-top: 32px;
  margin-bottom: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 120ms ease;
}
.role-skip:hover { opacity: 0.8; }

