/* === VARIABLES DE COLOR === */
:root {
  --color-primary: #003334;

   --color-secondary: #C2FF55;
  --color-secondary: #c3e8dc;
  /*--color-secondary: #defff4;*/
  --color-accent: #FF5630;
  --color-dark: #003334;
  --color-light: #ffffff;
  --font-familiy-standard: "Hanken Grotesk", sans-serif;
  --font-familiy-alternative: 'Roboto Serif', serif;
}

/* === RESETEO BÁSICO === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* === ESTILOS BASE === */ 
body {
  background-color: var(--color-dark);
  font-family: var(--font-familiy-standard);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-familiy-alternative);
  font-weight: 600; /* Ajusta según lo que te guste */
}
a {
  color: #C2FF55;
  text-decoration: none;
}
/* CONTENEDOR GENERAL */
main {
  min-height: 100vh;
  flex-direction: column;
  display: flex;
  row-gap: 5rem;
  color: var(--color-secondary);
}
main::after {
  content: "";
  display: block;
  height: 600px;
  background-image: url(../assets/logo-nextplay-01.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: fixed;
  opacity: .05;
  width: 650px;
  left: 50%;
  bottom: 80px;
  background-position: bottom;
  transform: translateX(-50%) translateY(50%);
  bottom: 50%;
  z-index: -1;
  pointer-events: none;
}
/* === HEADER === */
.main-header {
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--color-secondary);
  width: 100%;
  background-color: transparent;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 40px;
  width: auto;
}
.logo-text {
    font-family: var(--font-familiy-standard);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-primary);
    color: var(--color-secondary);
}


/* Menú navegación */
.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-dark);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--color-secondary);
}

.main-nav a:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

/* === HERO / INICIO === */

.hero {
  padding: 5rem 2rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}


.hero-content {
  max-width: 700px;
  text-align: center;
}

.hero-kicker {
  text-transform: uppercase;
}
.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: .75rem;
  margin-top: .5rem;
}
.hero-subtitle {
  margin-bottom: 2rem;
}

/* Botones */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  display: none;
}
/* === PILARES DEL DESPACHO (INICIO) === */
.hero-pillars {
  margin-top: 2.5rem;
  max-width: 700px;
}

.hero-pillars-title {
  font-family: var(--font-familiy-alternative);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: rgba(0, 51, 52, 0.8);
  margin-bottom: 0.9rem;
}

.hero-pillars-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
}
.hero-pillars-grid span {
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background-color: var(--color-secondary);
  opacity: 0.9;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--color-primary);
}

.hero-pillars-grid span:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 51, 52, 0.35);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-primary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
  transform: scale(1.08);   /* 👈 crece un 8% */
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: rgba(6, 63, 71, 0.06);
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.80rem;
  border-top: 1px dotted rgba(255, 255, 255, .3);
  color: var(--color-secondary);
  opacity: .6;
}
/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.section-header h2 + p, h1 + p {
  font-size: 1.2rem;
  font-weight: 200;
  line-height: 1.4;
}
iframe {
  width: 100%;
  height: 320px;
  border: none;
}
.main-header {
  transition: background-color 0.3s ease, color 0.3s ease;
}
.main-header.header-scrolled {
  background-color: var(--color-secondary);
}
.main-header.header-scrolled .logo-text, .main-header.header-scrolled .main-nav a {
  color: var(--color-dark);
}
.main-header.header-scrolled svg path {
  fill: var(--color-dark) !important;
}
/* === SECCIÓN SERVICIOS === */

.services {
  padding: 4rem 2rem;
}


.services-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-secondary);
  border-radius: 1rem;
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: scale(1.05); /* crece un 5% */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}


.service-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-primary);
}

/* === SECCIÓN PROFESIONALES === */
/* De #ecf4f1 (final de servicios) a #fdfdfd (inicio de contacto) */
.team {
  padding: 4rem 2rem;
}

.team-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1rem;
}
.team-member {
  background-color: var(--color-secondary);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  gap: 2rem;
  flex-direction: row;
}
/* Foto */
.team-photo img {
  object-fit: cover;
  max-width: 200px;
}

/* Info */
#profesionales .section-header h2 + p {
  color: var(--color-secondary);
}
.team-info h3 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.team-role {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.team-bio {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-primary);
}
.team-info {
  text-align: left;
}
/* === SECCIÓN CONTACTO === */
/* Empieza con el mismo color donde termina .team */
.contact {
  padding: 4rem 2rem;
}
.contact-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 1rem;
}

/* Columna de información */
.contact-info {
  flex: 1 1 280px;
  font-size: 0.95rem;
}
.contact-info h3 {
  font-size: 1.4rem;
  font-family: var(--font-familiy-standard);
  line-height: 1;
}
.contact-info h3 + p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 10px;
}
.contact-info ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.contact-info ul li {
  margin-bottom: 5px;
}
.contact-note {
  font-size: 0.8rem;
}
#contacto .section-header p {
  color: var(--color-secondary);
}

.material-symbols-outlined {
  font-size: 18px;
  vertical-align: middle;
  display: inline-block;
}

/* Columna del formulario */
.contact-form {
  flex: 1 1 320px;
  padding: 2rem 1.8rem;
  border-radius: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: flex;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--color-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  border: none;
}

/* Botón del formulario */
.contact-form .btn {
  margin-top: 0.5rem;
}
.map-container {
  position: relative;
}
.map-container::after {
  content: "";
  display: block;
  width: 100%;
  height: 320px;
  position: absolute;
  pointer-events: none;
  background-color: var(--color-secondary);
  top: 0;
  left: 0;
  mix-blend-mode: color-burn;
}
/* === INTRO LOADER === */
.intro-loader {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: loaderFadeOut 0.9s ease forwards;
    animation-delay: 0s;
  animation-delay: 1.0s;
  width: 100%;
  height: 100dvh;
  background-color: var(--color-secondary);
  pointer-events: none;
}
.intro-logo {
  width: 180px;
  animation: logoInOut 1s ease forwards;
}

@keyframes logoInOut {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }
  30% {
    opacity: 1;
    transform: scale(1.05);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(0.75);
  }
}

@keyframes loaderFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}
#profesionales {
  flex-direction: column;
  display: flex;
  row-gap: 2rem;
}

/* === ANIMACIONES DE SCROLL (REVEAL) === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* === RADIO BUTTONS (en línea, responsive, estilo campo + animación) === */

.radio-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.radio-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  padding: 0.6rem 0 0;
  border-radius: 0.5rem;

  /*! background-color: var(--color-secondary); */ /* igual que inputs */
  color: var(--color-secondary);
  font-size: 0.95rem;

  cursor: pointer;
  user-select: none;

  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
}

.radio-custom {
  width: 16px;
  height: 16px;
  display: inline-block;   /* CLAVE */
  border-radius: 999px;
  border: 2px solid var(--color-secondary);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

/* Punto interior animado */
.radio-custom::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--color-secondary);

  transform: scale(0);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Estado activo (seleccionado) */
.radio-option input[type="radio"]:checked + .radio-custom::after {
  transform: scale(1);
  opacity: 1;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  transform: scale(1.05);
}

.radio-option input[type="radio"]:checked ~ * {
  font-weight: 600;
}

/* Animación hover */
.radio-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

/* Animación al click */
.radio-option:active {
  transform: translateY(0px) scale(0.99);
}


/* === RESPONSIVE === */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
  }
.main-nav {
  display: none;
}
main {
  row-gap: 0;
}
main::after {
  width: 90%;
}
.section-header {
  margin-bottom: 20px;
}
  .hero {
    padding: 5rem 2rem 8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .team-member {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: .5rem;
  }

  .team-photo img {
    width: 100%;
    max-width: 100%;
  }

  .contact-form {
    padding: 1.5rem 0;
  }
}
.main-nav a {
  display: inline-block;               /* necesario para que scale funcione */
  transition: transform 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  transform: scale(1.12);              /* crece un 12% */
  color: var(--color-secondary);
}
#servicios, .services-grid {
  overflow-x: clip; /* o hidden */
}
/* === HERO – ESTILO EDITORIAL PREMIUM === */
.hero-values-minimal{
  margin-top: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 34px 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  display: none;
}

/* Línea superior fija: discreta, elegante */
.hero-values-main-fixed {
  font-family: var(--font-familiy-alternative);
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.75;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

/* Línea dinámica: gran protagonista */
.hero-values-main-dynamic {
  font-family: var(--font-familiy-alternative);
  font-size: 2rem;                 /* GRAN tamaño */
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  color: var(--color-secondary);
}

/* Palabra que rota */
.hero-dynamic-word {
  display: inline-block;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Animación de salida */
.hero-dynamic-word.is-fading {
  opacity: 0;
  transform: translateY(8px);       /* caída editorial suave */
}

/* Línea final: discreta, ligera */
.hero-values-sub {
  margin-top: 0.2rem;
  font-size: 1rem;
  opacity: 0.75;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-values-main-fixed {
    font-size: 1rem;
  }

  .hero-values-main-dynamic {
    font-size: 1.6rem;
  }

  .hero-values-sub {
    font-size: 0.9rem;
  }
}
/* === SERVICIOS: DESLIZADO LARGO Y SUAVE === */
.service-card {
  opacity: 0;
  transform: translateX(0);
  transition:
    opacity 1.4s ease,
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Visible */
.services-grid.is-visible .service-card {
  opacity: 1;
  transform: translateX(0);
}

/* Recorrido largo */
.service-card.from-left {
  transform: translateX(-120px);
}

.service-card.from-right {
  transform: translateX(120px);
}

/* Stagger claro y elegante */
.service-card.delay-1 {
  transition-delay: 0.2s;
}

.service-card.delay-2 {
  transition-delay: 0.55s;
}
/* === HERO CON VIDEO DE FONDO === */
.hero-video {
  position: relative;
  overflow: hidden;
  height: 100dvh;
}

/* Video */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay oscuro */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 52, .4);
  z-index: 1;
}

/* Contenido por encima */
.hero-video .hero-content {
  position: relative;
  z-index: 2;
}


/* Responsive: en móvil, se apilan */
@media (max-width: 520px) {
  .radio-group {
    flex-direction: column;
  }

  .radio-option {
    justify-content: flex-start;
  }
}
