/*
	The7 editado para NEGIT Play con logo y header ocultable
*/

/* --- Colores de Marca NEGIT IS --- */
:root {
    --negit-naranja: #F28C00;
    --negit-azul: #00AEEF;
    --negit-verde: #A5CD39;
    --negit-texto-principal: #484f58;
    --negit-texto-secundario: #777777;
    --negit-fondo-claro: #ECF0F1;
    --negit-fondo-oscuro: #2C2D31; /* Usado para header al hacer scroll */
}


/* *********************************************************
  General Styling 
********************************************************* */

*, *:before, *:after {
  box-sizing: border-box;
}

.wrap {
  width: 100%;
  padding: 3.5em 0;
}

.grey {
  background: var(--negit-fondo-claro);
  padding: 100px 0 150px;
}

a {
  color: var(--negit-azul);
  text-decoration: none; /* Añadido para quitar subrayado */
}

a:hover {
  color: var(--negit-naranja);
}

a, img, .overlay, input, textarea, .plan-wrap p, .filters .filter {
  -webkit-transition: all .15s linear; /* Aumentado ligeramente para suavidad */
  transition: all .15s linear;
}

body {
  font-size: 1em;
  line-height: 1.7em;
  color: var(--negit-texto-secundario);
  font-weight: normal;
}

body, input, textarea {
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}

h1,h2,h3,h4,h5,h6, .navigation a, .btn, .filters .filter {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

h1,h2,h3,h4,h5,h6 {
  position: relative;
  margin: 1em 0 1.4em;
  color: var(--negit-texto-principal);
}

h1,h2 {
  text-transform: uppercase;
}

h1 {
  font-size: 3em;
  line-height: 1.2em;
}

h2 {
  font-size: 2.8em;
  line-height: .9em;
}

h3 {
  font-size: 1.8em;
  line-height: .9em;
}

h4,h5,h6 {
  font-size: 1.125em;
  line-height: .5em;
}

.pleft-25 {
  padding-left: 25px;
}

.pright-25 {
  padding-right: 25px;
}

.curveUpColor, .curveDownColor {
  fill: #fff;
  stroke: #fff;
  position: absolute;
  left: 0;
  z-index: 1;
}

.curveUpColor {
  margin-top: -100px;
}

.curveDownColor {
  margin-bottom: -100px;
}

.curveGrey {
  fill: var(--negit-fondo-claro);
  stroke: var(--negit-fondo-claro);
}

/* *********************************************************
  Buttons 
********************************************************* */

.btn {
  position: relative;
  display: inline-block;
  margin: .8em 0;
  padding: .5em 1.6em;
  color: #fff;
  font-size: .8em;
  -webkit-border-radius: 30px;
  border-radius: 30px;
  background: var(--negit-naranja);
}

.btn:hover, .btn:focus, .btn-current {
  color: #fff;
  background: var(--negit-azul);
}

.btn-price {
  width: 80%;
  margin: 1.5em 0 1.8em;
  padding: .5em;
  letter-spacing: 2px;
}

.btn-ghost {
  margin: 10px;
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--negit-naranja);
  background-color: var(--negit-naranja);
}

/* *********************************************************
  Header - CORREGIDO PARA LOGO Y OCULTAR AL SCROLL
********************************************************* */

#top-header {
  position: fixed;
  z-index: 1000;
  width: 100%;
  /* padding: 15px 0; */   /* <--- QUITAMOS EL PADDING */
  height: 90px;         /* <--- FIJAMOS UNA ALTURA PARA LA BARRA */
  top: 0; 
  background: transparent;
  transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out, height 0.3s ease-in-out; /* <--- CAMBIAMOS padding por height */
}

/* Estilo cuando se hace scroll normal (fondo oscuro) */
#top-header.header-scrolled { 
    background: var(--negit-fondo-oscuro);
    /* padding: 10px 0; */   /* <--- QUITAMOS EL PADDING */
    height: 70px;         /* <--- FIJAMOS UNA ALTURA MENOR AL HACER SCROLL */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* NUEVO: Estilo para ocultar el header */
#top-header.header-hidden {
    top: -100px; /* Mueve el header fuera de la pantalla */
}


#top-header .grid {
  overflow: visible;
}

#top-header .content { 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

.logo-wrap {
    float: none; 
}

.logo-img {
    display: block; 
    max-height: 80px; /* Prueba con 70px (o el tamaño que gustes) */
    width: auto; 
    transition: max-height 0.15s linear; 
}

#top-header.header-scrolled .logo-img {
    max-height: 60px; /* Un poco más chico para el scroll */
}

.header-home .navigation a {
  color: #fff;
}

/* *********************************************************
  Navigation - CORREGIDO
********************************************************* */

.navigation {
  position: relative;
  float: none; 
  margin: 0; 
}

.navigation input[type=checkbox] {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

.navigation label {
  display: none;
  cursor: pointer;
}

.navigation ul li {
  position: relative;
  display: inline;
  float: left;
}

.navigation a {
  font-size: .9em; 
  display: block;
  margin-left: 20px;
  padding-bottom: 3px;
  color: #fff;
  text-transform: uppercase; 
}

.navigation .current a, .navigation ul li a:hover, .navigation ul li a:focus {
  color: var(--negit-verde);
}

/* *********************************************************
  Parallax 
********************************************************* */

.parallax-section {
  z-index: -1;
  clear: both;
  background-image: url('../images/home.jpg'); 
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
}

.parallax-section .content, .content-header {
  margin: 0 auto;
  text-align: center;
}

.parallax-section .content-header {
  padding: 145px 0 250px;
}

.parallax-section .content h2,
.content-header h2,
.parallax-section .content h3,
.content-header h3 {
  color: #fff;
}

.parallax-section .content h2, .content-header h2 {
  font-size: 2.5em;
}

.parallax-section .content p, .content-header p {
  width: 70%;
  margin: 0 auto 30px auto;
  color: #fff;
}

/* *********************************************************
  Services Section
********************************************************* */

.services, .service-box {
  text-align: center;
}

.service-icon {
  margin-top: 20px;
  padding-top: 1em;
}

.circle-icon {
  display: inline-block;
  font-size: 2em;
  padding: 1.1em 1.15em;
  color: #fff;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: var(--negit-azul);
  -webkit-box-shadow: 0 0 0 2px var(--negit-azul);
  box-shadow: 0 0 0 2px var(--negit-azul);
  -webkit-transition: all .15s linear;
  transition: all .15s linear;
}

.service-box:hover .circle-icon {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  background: var(--negit-naranja);
  box-shadow: 0 0 0 2px var(--negit-naranja);
}

.service-entry {
  margin-top: 70px;
  padding: 0 .5em;
}

/* *********************************************************
  Pricing Section
********************************************************* */

#plans,#plans ul,#plans ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#price-tables {
  max-width: 69em;
  margin: 0 auto;
  text-align: center;
}

#price-tables #plans .plan {
  float: left;
  width: 100%;
  margin: 0 0 20px 0;
  text-align: center;
  border: 3px solid #dee3e4;
  -webkit-border-radius: 6px;
  border-radius: 6px;
}

.plan-wrap .title h2 {
  font-size: 1.6em;
  font-weight: 300;
  margin: 0;
  padding: .6em 0;
  color: var(--negit-azul);
}

.plan-wrap .title h2.best-plan-title, .best-plan .title h2 {
  color: #fff;
  background: var(--negit-verde);
  -webkit-border-radius: 2px 2px 0 0;
  border-radius: 2px 2px 0 0;
}

.plan-wrap .price p {
  font-size: 1.2em;
  font-weight: 700;
  line-height: 120px;
  width: 120px;
  height: 120px;
  margin: 1.5em auto;
  color: var(--negit-azul);
  border: 2px solid var(--negit-azul);
  -webkit-border-radius: 60px;
  border-radius: 60px;
  background: transparent;
}

.plan-wrap:hover .price p {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.plan-wrap .price p.best-plan-price, .best-plan .price p {
  border-color: transparent;
  background: var(--negit-verde);
  color: #fff;
}

.plan-wrap .options li {
  font-weight: 700;
  line-height: 2.5;
  color: var(--negit-texto-principal);
}

#price-tables {
  margin: 2em auto;
}

#price-tables #plans .plan {
  width: 24%;
  margin: 1.2em 1.33% 20px 0;
}

#price-tables #plans > li:last-child {
  margin-right: 0;
}

#price-tables #plans .best-plan {
  border-color: var(--negit-verde);
}

.plan-wrap .btn-best-plan {
  background: var(--negit-verde);
}
.plan-wrap .btn-best-plan:hover {
  background: var(--negit-naranja);
}


/* *********************************************************
  Contact & Forms
********************************************************* */

.contact {
  padding-top: 100px;
  background: var(--negit-fondo-oscuro);
  color: #fff;
}

.contact h2, .contact h3, .contact p {
  color: #fff;
  text-align: center;
}

.whatsapp-link {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 20px;
    transition: transform 0.2s;
    text-align: center;
}
.whatsapp-link:hover {
    transform: scale(1.05);
}
.whatsapp-link i {
    margin-right: 10px;
}

/* *********************************************************
  Footer
********************************************************* */

footer {
  background:#1e1e1e;
  padding: 1.5em 0; 
}

footer p, footer a {
  color: #f4f4f4;
}

.social-set {
  width: 100%;
  margin: 0 0 .5em;
  padding: 0 0 1em 0;
  text-align: center;
}

.social-set a {
  font-size: 1.5em;
  margin: 0 .5em; 
  padding: .5em; 
  color: #fff;
}
.social-set a:hover {
    color: var(--negit-naranja);
}

.copyright {
  text-align: center;
}

/* *********************************************************
  Loader
********************************************************* */

.loader-overlay {
  width: 100%;
  height: 100%;
  background: #fff;
  position: fixed;
  z-index: 9999;
}

.loader {
  height: 50px;
  left: 50%;
  margin: -25px 0 0 -75px;
  position: absolute;
  top: 50%;
  width: 150px;
}
.loader .bar {
  background-color: var(--negit-verde);
  height: 6px;
  border-radius: 3px;
  width: 25px;
  display: inline-block;
}
.loader .bar:nth-child(2) {
  background-color: var(--negit-azul);
}
.loader .bar:nth-child(3) {
  background-color: var(--negit-naranja);
}
.loader .bar:nth-child(4) {
  background-color: var(--negit-azul);
}
.loader .bar:nth-child(5) {
  background-color: var(--negit-verde);
}


/*------------------------------------------------------------- 
  Media queries
---------------------------------------------------------------*/

@media handheld, only screen and (max-width: 1200px) {

  #price-tables #plans .plan {
    width: 48%; /* 2 columnas */
    margin: 0 1% 20px 1%;
  }
  #price-tables #plans > li:nth-child(2n) {
    margin-right: 1%; /* Ajustar margen */
  }
   #price-tables #plans > li:nth-child(2n+1) { /* Limpiar flotantes impares */
    clear: left;
  }
}

@media handheld, only screen and (max-width: 767px) {
  #top-header {
    padding: 10px 0; /* Reducir padding */
  }
  #top-header .content {
      align-items: center; /* Asegurar alineación vertical */
  }
  .logo-img {
    max-height: 40px; /* Logo más pequeño en móvil */
  }
  .navigation {
      margin: 0; /* Quitar margen */
  }
  .navigation ul {
    display: none;
    position: absolute; /* Menú desplegable */
    top: 60px; /* Ajustar posición */
    right: 0;
    width: 200px; /* Ancho del menú */
    background: rgba(44, 45, 49, 0.95); /* Fondo semitransparente */
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 10px 0;
  }
  
  .navigation input[type=checkbox]:checked ~ ul {
    display: block; /* Mostrar menú al activar checkbox */
  }
  
  .navigation li {
    width: 100%;
    float: none; /* Elementos en bloque */
    text-align: left; /* Alinear texto a la izquierda */
  }
  .navigation a {
    margin-left: 0;
    width: 100%;
    display: block;
    padding: 12px 20px; /* Padding para items */
    font-size: .9em; /* Tamaño de letra */
    border-top: 1px solid #444; /* Separador */
  }
   .navigation li:first-child a {
       border-top: none; /* Sin borde superior en el primer item */
   }
   
  .navigation label { /* Estilo del botón hamburguesa */
    display: block;
    cursor: pointer;
    color: #fff;
    font-size: 1.5em; /* Tamaño del icono */
    padding: 5px; /* Espacio alrededor */
  }
  .navigation label:after {
    content: "\2261"; /* Icono de hamburguesa */
  }
 
  .service-entry {
    margin-bottom: 2.5em;
  }
  .parallax-section .content h2, .content-header h2  {
    font-size: 2em;
  }
   .parallax-section .content p, .content-header p {
       font-size: 1.1em; /* Reducir texto en parallax */
   }
  #price-tables #plans .plan {
    width: 90%; /* Casi ancho completo */
    margin: 0 5% 20px 5%; /* Centrar */
  }
}