/* Importar fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@font-face {
  font-family: 'Helvetica neue';
  src: url(/Fonts/helvetica-neue-5/HelveticaNeueRoman.otf);

}

@font-face {
  font-family: 'netflix font';
  src: url(/Fonts/Netflix/NetflixSans-Regular.otf);
}

/* Declarar variables CSS */
:root {

  --Plomo: #00000098;
  --Negro: rgb(0, 0, 0);
  --Rojo: rgb(153, 22, 29, 1);
  --Rojo_claro: rgb(224, 29, 39);
  --Azul: #1d63c4;

  --Fuente-principal: 'Roboto', sans-serif;
  --Fuente-secundaria: 'NetflixSans-Regular';
  --Fuente-tercera: 'Helvetica neue';
}

/* Elimina los espacios predeterminados del navegador */
* {
  margin: 0;
  padding: 0;
}

body,
html {
  font-family: var(--Fuente-principal);
  line-height: 2em;
  width: 100%;
  padding: 0;
}

main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Borrar linea inferior de los elementos img, videos, etc. */
img,
video,
iframe {
  display: block;
}

#Logo_Netflix {
  padding-top: 24px;
  padding-bottom: 27px;

}

#Logo_Netflix img {
  padding-left: 48px;
  padding-right: 48px;


  height: auto;
  max-width: 149px;
  max-height: 100%;
  overflow: hidden;
  display: block;
}

#advertencia_fecha svg {
  height: 1em;
  width: 1em;
  min-width: 16px;
  min-height: 16px;
  display: inline-block;
  vertical-align: middle;
}

#advertencia_fecha {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  pointer-events: none !important;
}

.container {
  max-width: 67%;
  margin: auto;
}

.center-buttons {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-bottom: 13px;
  color: var(--Azul);

}

.text_button {
  cursor: pointer;
  font-family: 'netflix font';
  font-size: 16px;
  color: var(--Azul);
}

.container2 {
  max-width: 33.5%;
  margin: auto;
  padding-top: 40px;

}

.container3 {
  max-width: 33.5%;
  margin: auto;
  padding-top: 20px;

}


.container3 {
  max-width: 33.5%;
  margin: auto;
  padding-top: 20px;

}


.titulo {
  font-family: 'Roboto', sans-serif;

}

/* FILA DE TARJETAS */
.card-row {
  display: flex;
  gap: 3px;
  /* Espacio entre imágenes, ajusta si quieres */
  justify-content: left;
  /* Centra las imágenes horizontalmente */
  align-items: center;
  /* Centra verticalmente si las imágenes tienen diferente alto */
}

/* FORMULARIO DE PAGO */
.container-form {
  max-width: 33.5%;
  margin: auto;
  padding-top: 10px;

}


.form-campo {

  border-radius: 5px;
  width: 100%;
  height: 55px;
  margin-bottom: 7px;
  overflow: hidden;
  /* Evita que el input sobresalga */
  position: relative;
  /* Para posicionar el icono dentro del campo */


}

.form-campo svg {
  color: var(--Plomo);
}


.form-campo input {
  border: 1px solid var(--Plomo);
  outline: none;
  /* Elimina el contorno al enfocar */
  width: 100%;
  /* Ocupa todo el ancho del contenedor */
  height: 100%;
  /* Ocupa todo el alto del contenedor */
  padding: 24px 48px 8px 16px;
  /* Espaciado interno */
  font-size: 16px;
  /* Tamaño de fuente */
  box-sizing: border-box;
  /* Incluye el padding en el tamaño total */
  border-radius: 5px;
  /* Bordes redondeados */
  background: transparent;

  font-family: var(--Fuente-principal);
  font-weight: 430;
  width: 100%;
  padding: 24px 48px 8px 16px;
  font-size: 16px;
  border: 1px solid var(--Plomo);
  border-radius: 5px;
  background: transparent;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 7px;
  /* Espacio entre los campos, ajusta si quieres */
  justify-content: space-between;
  /* Distribuye los campos con espacio entre ellos */

}

.campo-icono {
  position: absolute;
  right: 20px;
  /* Ajusta según el diseño */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  cursor: pointer;
  /* El SVG no interfiere con el input */
}

/* PARRAFO DE CONDICIONES */

.parrafo {
  font-size: 13px;
  font-weight: 400;
  text-align: start;
  color: var(--Plomo);
  line-height: 1.5;
}

.parrafo a {
  text-decoration: underline;
  color: var(--Plomo);
}

/* Checkbox */
.acepto-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.texto-acepto {
  font-size: 13px;
  font-weight: 400;
  text-align: start;
  color: var(--Plomo);
  line-height: 1.5;
  /* Elimina el padding para mejor alineación */
  padding-left: 0;
}

.checkbox {
  width: 12px;
  height: 12px;
  transform: scale(1.5);
  accent-color: var(--Negro);
  /* Opcional: cambia el color del check */
  cursor: pointer;
  color: var(--Negro);
}


/* BOTON ENVIAR */

.boton_enviar {
  background-color: var(--Rojo_claro);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  height: 56px;
  width: 100%;

  font-size: 25px;
  font-weight: bold;
  transition: background-color 0.4s;
  /* Duración de la transición */

}

.boton_enviar:hover {
  background-color: #b91921;
  /* Rojo oscuro al pasar el mouse */
}


/* FOOTER */


footer {
  padding-top: 60px;
  border-top: 1px solid rgb(0, 0, 0, 0.2);
  background-color: #f2f2f2;
  color: #000;
  font-size: 14px;
  line-height: 1.5;
}

footer p {
  font-size: 16px;
  color: var(--Plomo);
  margin: 0 0 20px 0;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 150px;
  margin-bottom: 20px;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

.links-group a {
  color: var(--Plomo);
  text-decoration: underline;
  cursor: pointer;
}

.language-select {
  width: 150px;
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 10px;
}

/* Custom Arrow for select */
.language-select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%200L5%205L9%200H1Z%22%20fill%3D%22black%22/%3E%3C/svg%3E");
}

.form-campo input:invalid:focus,
.form-campo input:invalid:not(:placeholder-shown) {
  border-color: rgb(196, 7, 7);
}

.form-campo input:valid:focus,
.form-campo input:valid:not(:placeholder-shown) {
  border-color: #188105;
  /* Verde */
}

.floating-label {
  position: absolute;
  left: 16px;
  top: 12px;
  color: #888;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 4px;
  color: #525151;
}

.form-campo input:focus+.floating-label,
.form-campo input:not(:placeholder-shown)+.floating-label {
  top: 1px;
  left: 12px;
  font-size: 12px;
  color: var(--Plomo);
}


.popup-cvv {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 24px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 350px;
  text-align: center;
}

.close-popup {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.CVV_IMAGEN {
  background: url(https://assets.nflxext.com/ffe/siteui/acquisition/payment/tooltip/amex_cvv.png) 0px 0px no-repeat;
  width: 200px;
  height: 130px;

}


.hidden {
  display: none;
}

.notificacion-pago {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 350px;
  height: 20px;

  background: #31a31d;
  color: #fff;
  font-size: 16px;
  text-align: center;
  padding: 18px 0;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(.4, 0, .2, 1);
}

.notificacion-pago.visible {
  transform: translate(-50%, 0);
  display: flex;
}

.notificacion-pago.hidden {
  display: none;
}

#espacio {
  margin-top: 50px;
}



/* RESPONSIVE */

/* 📱 Tablets grandes o pantallas medianas */
@media (min-width: 1000px) and (max-width: 1025px),
       (min-height: 1200px) and (max-height: 1367px) {

  header {
    position: relative;
    height: 100px;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  main {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container,
  .container2,
  .container3,
  .container-form {
    width: 80%;
    max-width: 60%;
    margin: 0 auto;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  #Logo_Netflix {
    padding: 32px 0;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    z-index: 100;
  }

  #Logo_Netflix img {
    padding-left: 10px;
    max-width: 150px;
    height: auto;
    display: block;
  }

  .titulo {
    font-size: 35px;
    font-weight: 700;
    color: var(--Negro);
    padding: 10px 0;
    text-align: left;
  }

  .form-campo input,
  .form-campo label {
    font-size: 20px;
  }

  .form-campo {
    height: 64px;
    margin-bottom: 16px;
  }

  .boton_enviar {
    width: 100%;
    font-size: 22px;
    padding: 16px 0;
    margin-top: 24px;
  }

  .card-row img {
    width: 64px;
    height: auto;
  }

  .popup-content {
    max-width: 60vw;
    padding: 32px;
    font-size: 20px;
  }

  .notificacion-pago {
    width: 450px;
    top: 120px;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 20px;
    padding: 18px 0;
  }

  .parrafo,
  .texto-acepto {
    font-size: 18px;
  }

  .links-container {
    gap: 32px 80px;
  }

  .links-group {
    min-width: 180px;
    gap: 16px;
  }

  .language-select {
    width: 140px;
    font-size: 18px;
    padding: 8px 16px;
  }
}

/* 📱 Smartphones grandes (ej. iPhone 12 Pro Max) */
@media (min-width: 413px) and (max-width: 420px),
       (min-height: 916px) and (max-height: 932px) {

  #espacio {
    margin-top: 0;
  }

  html, body {
    overflow-x: hidden;
  }

  header {
    position: relative;
    width: 100%;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  main {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container,
  .container2,
  .container3,
  .container-form {
    width: 95%;
    max-width: 80%;
    margin: 0 auto;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #Logo_Netflix {
    padding: 14px 0;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    z-index: 100;
  }

  #Logo_Netflix img {
    padding: 10px;
    max-width: 90px;
    height: auto;
    display: block;
  }

  .titulo {
    font-size: 33px;
    font-weight: 700;
    line-height: 40px;
    color: var(--Negro);
    margin: 4px 0 10px;
    text-align: left;
  }

  .form-campo input,
  .form-campo label {
    font-size: 16px;
  }

  .form-campo {
    height: 55px;
    margin-bottom: 7px;
  }

  .boton_enviar {
    width: 100%;
    font-size: 20px;
    padding: 10px 0;
    margin-top: 10px;
  }

  .card-row img {
    margin-top: -8px;
    width: 35px;
    height: auto;
  }

  .popup-content {
    max-width: 95vw;
    padding: 8px;
    font-size: 13px;
  }

  .notificacion-pago {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 80%;
    font-size: 14px;
    padding: 8px 0;
    z-index: 10000;
    height: 30px;
  }

  .notificacion-pago.visible {
    transform: translate(-50%, 0);
  }

  .parrafo,
  .texto-acepto {
    font-size: 13px;
  }

  .links-container {
    gap: 10px 16px;
  }

  .links-group {
    min-width: 70px;
    gap: 5px;
  }

  .language-select {
    width: 80px;
    font-size: 12px;
    padding: 3px 6px;
  }
}

/* 📱 Smartphones pequeños */
@media (max-width: 412px),
       (max-height: 915px) {

  #espacio {
    margin-top: 0;
  }

  .floating-label {
    font-size: 11px;
  }

  html, body {
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
    background: #fff;
    padding: 0;
  }

  header {
    position: relative;
    width: 100%;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  main {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container,
  .container2,
  .container3,
  .container-form {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #Logo_Netflix {
    padding: 12px 0;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    z-index: 100;
  }

  #Logo_Netflix img {
    padding: 15px;
    max-width: 100px;
    height: auto;
    display: block;
  }

  .titulo {
    font-size: 30px;
    font-weight: 700;
    color: var(--Negro);
    margin: 4px 0 8px;
    padding: 6px 0;
    text-align: left;
  }

  .form-campo input,
  .form-campo label {
    font-size: 16px;
  }

  .form-campo {
    height: 55px;
    margin-bottom: 6px;
  }

  .boton_enviar {
    width: 100%;
    font-size: 18px;
    padding: 8px 0;
    margin-top: 8px;
  }

  .card-row img {
    width: 35px;
    height: auto;
  }

  .popup-content {
    max-width: 95vw;
    padding: 6px;
    font-size: 12px;
  }

  .notificacion-pago {
    width: 80%;
    top: 100px;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 14px;
    height: 30px;
    padding: 6px 0;
  }

  .parrafo,
  .texto-acepto {
    font-size: 13px;
  }

  .links-container {
    gap: 8px 12px;
  }

  .links-group {
    min-width: 60px;
    gap: 4px;
  }

  .language-select {
    width: 60px;
    font-size: 11px;
    padding: 2px 4px;
  }

  .espacio {
    margin-top: 50px;
  }
}