*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; }

#custom-cursor{
  position:fixed; top:0; left:0;
  width:34px; height:34px;
  border-radius:999px;
  pointer-events:none;
  z-index:9999;
  border:2px solid rgba(255,255,255,.65);
  box-shadow:0 0 30px rgba(255,255,255,.18);
  mix-blend-mode:difference;
  background-image: url('../../backgrounds/q.png?v=2');
  background-size: cover;
    width: 40px;
    height: 40px;
    z-index: 999999;
    background-position: center;
}

.page{ min-height:100vh; position:relative; overflow:hidden; color:#fff; }
.bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transition:opacity 1.2s ease-in-out;
}
.bg-a{ opacity:1; z-index:0; }
.bg-b{ opacity:0; z-index:0; }

.bg-overlay{
  position:absolute; inset:0;
  /* background:radial-gradient(800px 500px at 10% 30%, rgba(0,0,0,.25), rgba(0,0,0,.78)); */
}

.container{
  position:relative; z-index:2;
  min-height:100vh;
  display:grid; align-items:center;
  padding:28px;
  max-width:1100px; margin:0 auto;
}
.container.center{ place-items:center; }

.card{
  width:min(440px, 92vw);
  background:rgba(15,15,18,.55);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.brand{ display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.dot{ width:12px; height:12px; border-radius:999px; background:#fff; box-shadow:0 0 18px rgba(255,255,255,.5); }
.title{ font-weight:900; font-size:25px; }
.subtitle{ opacity:.85; font-size:13px; margin-top:2px; }

.form .field{ margin:12px 0; }
label{ display:block; font-size:12px; opacity:.9; margin-bottom:6px; }

input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  outline:none;
  background:rgba(0,0,0,.25);
  color:#fff;
}
input:focus{ border-color:rgba(255,255,255,.35); }

.radio-group{ display:flex; gap:16px; margin-top:6px; }
.radio{ display:flex; align-items:center; gap:6px; font-size:13px; cursor:pointer; }
.radio input{ accent-color:#fff; }

.dropzone{
  border:1.5px dashed rgba(255,255,255,.35);
  border-radius:14px;
  padding:14px;
  display:grid;
  gap:10px;
  text-align:center;
  background:rgba(0,0,0,.18);
}
.dropzone.drag{ border-color:rgba(255,255,255,.9); background:rgba(255,255,255,.08); }
.dz-icon{ font-size:18px; opacity:.85; }
.dz-text{ font-size:12px; opacity:.9; line-height:1.35; }

.preview{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
}
.preview img{ display:block; width:100%; max-height:260px; object-fit:cover; }
.hidden{ display:none; }

.btn-primary{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
  color:#111;
  font-weight:900;
  cursor:pointer;
}
.btn-primary:hover{ transform:translateY(-1px); }

.btn-secondary{
  border:1px solid rgba(255,255,255,.25);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(0,0,0,.25);
  color:#fff;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.btn-link{
  width:100%;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.9);
  padding:10px 0;
  cursor:pointer;
  text-decoration:underline;
}

.error{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,40,40,.18);
  border:1px solid rgba(255,40,40,.35);
  font-size:12px;
}

.loading{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  display:grid;
  gap:10px;
  align-items:center;
   display: none;
}
.loading.active {
  display: grid;
}
.loader{
  width:22px; height:22px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.25);
  border-top-color:rgba(255,255,255,.9);
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.progress{
  width:100%;
  height:10px;
  background:rgba(255,255,255,.12);
  border-radius:999px;
  overflow:hidden;
}
.progress-bar{ height:100%; background:rgba(255,255,255,.92); width:0%; }

.legal{ margin-top:10px; font-size:11px; opacity:.8; line-height:1.3; }
.captcha-wrap{ transform:scale(.95); transform-origin:left top; }

/* Thank you */
.thank-card{
  width:min(560px, 92vw);
  background:rgba(15,15,18,.55);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  text-align:center;
}
.thank-title{ font-size:20px; font-weight:900; }
.thank-sub{ margin-top:6px; opacity:.85; font-size:13px; }

/* MOCKUP WRAPPER */
.mock{
  margin:16px auto 10px;
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.2);
  box-shadow:0 18px 50px rgba(0,0,0,.25);
}

/* Vertical / Horizontal sizes */
.mock-vertical{ width:280px; height:480px; }
.mock-horizontal{ width:520px; height:320px; }

/* Foto dentro del mockup */
.mock-photo{
  position:absolute;
  inset:0;
  background-size:cover;
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  filter:saturate(1.02);
}

/* Marco PNG arriba */
.mock-frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
}

.share-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.share-links{
  margin-top:12px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.share-link{
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  padding:8px 10px;
  border-radius:999px;
  text-decoration:none;
  background:rgba(0,0,0,.2);
}

/* Admin */
.admin-wrap{ padding:24px; color:#111; background:#f6f6f8; min-height:100vh; }
.admin-note{ opacity:.8; margin-top:-6px; }
.admin-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.admin-table th, .admin-table td{
  padding:10px;
  border-bottom:1px solid #eee;
  font-size:13px;
  vertical-align:middle;
}
.admin-thumb{ width:50px; height:50px; object-fit:cover; border-radius:10px; }
.admin-btn{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  color:#111;
  font-size:12px;
}
.admin-btn.danger{ border-color:rgba(220,0,0,.25); }

/* =========================
   CHECKBOX TÉRMINOS CUSTOM
========================= */
.terms-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  line-height:1.4;
  cursor:pointer;
  user-select:none;
}

.terms-wrap input{
  display:none; /* ocultamos el feo */
}

.terms-box{
  width:20px;
  height:20px;
  border-radius:6px;
  border:2px solid rgba(255,255,255,.6);
  background:rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s ease;
}

/* Check visual */
.terms-box::after{
  content:'';
  width:10px;
  height:6px;
  border-left:2px solid #111;
  border-bottom:2px solid #111;
  transform:rotate(-45deg) scale(0);
  transition:transform .15s ease;
}

/* Checked */
.terms-wrap input:checked + .terms-box{
  background:#fff;
  border-color:#fff;
}

.terms-wrap input:checked + .terms-box::after{
  transform:rotate(-45deg) scale(1);
}

/* Hover */
.terms-wrap:hover .terms-box{
  border-color:#fff;
}

/* Texto */
.terms-text{
  opacity:.95;
}

.terms-text a{
  color:#fff;
  text-decoration:underline;
}

textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    backdrop-filter: blur(4px);
    transition: 0.3s ease;
}

textarea:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
}
.page {
    position: relative;
}

.bg-logo {
    position: fixed;
    right: 5%;
    top: 15%;
    width: 550px;
    height: 480px;

    background-image: url('../../backgrounds/logo.png?v=2'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    z-index: 3;
    pointer-events: none;
}

.logo-right {
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.logo-right:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.container {
        position: relative;
        z-index: 5;
        padding-top: 40px;
    }


    .orientation-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.orientation-option {
    flex: 1;
    cursor: pointer;
}

.orientation-option input {
    display: none;
}

.orientation-option span {
    display: block;
    padding: 10px 14px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s ease;
}

.orientation-option input:checked + span {
    background: #2ed1c2;
    color: #0a1c2d;
    font-weight: 600;
    border-color: #2ed1c2;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;

    background: linear-gradient(135deg, #2ed1c2, #17a2b8);
    color: #0a1c2d;

    transition: 0.3s ease;
    box-shadow: 0 8px 25px rgba(46,209,194,0.35);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(46,209,194,0.5);
}

h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.7;
}


.bg-logo {
  animation: logoFloat 7s ease-in-out infinite;
  transition: filter 0.6s ease;
}

@keyframes logoFloat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
  }
  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 25px 55px rgba(0,0,0,0.35));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
  }
}

.card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
  animation: formEntry 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes formEntry {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


.thank-logo{
    text-align:center;
    margin-bottom:18px;
}

.thank-logo img{
    width:350px;
    height:auto;
    opacity:.95;
    filter:drop-shadow(0 8px 20px rgba(0,0,0,.35));
}
.share-links{
    display:none;
    gap:12px;
    justify-content:center;
    margin-top:15px;
}

.share-link{
    padding:10px 18px;
    border-radius:20px;
    background:rgba(255,255,255,0.1);
    backdrop-filter:blur(8px);
    color:#fff;
    text-decoration:none;
    font-size:14px;
    transition:.25s ease;
}

.share-link:hover{
    background:rgba(255,255,255,0.25);
}

.share-row{
    display:flex;
    gap:14px;
    margin-top:20px;
}

.btn-primary{
    flex:1;
    padding:14px 0;
    border-radius:30px;
    font-weight:600;
    font-size:16px;
    background:linear-gradient(135deg,#ffffff,#eaeaea);
    color:#111;
    border:none;
    cursor:pointer;
    transition:.25s ease;
}

.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.btn-secondary{
    flex:1;
    padding:14px 0;
    border-radius:30px;
    font-weight:500;
    font-size:16px;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.25);
    color:#fff;
    text-align:center;
    transition:.25s ease;
}

.btn-secondary:hover{
    background:rgba(255,255,255,0.15);
}
.btn-primary{
    background:#1fd3c1;
    color:#000;
}

.btn-primary:hover{
    box-shadow:0 10px 30px rgba(31,211,193,.45);
}

.share-links {
  display: none;
  gap: 14px;
  margin-top: 20px;
  justify-content: center;
}

.share-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
}

.share-link i {
  color: #ffffff;
  font-size: 20px;
}

.share-link:hover {
  background: #22e0c9;
}

.share-link:hover i {
  color: #04110f;
}

@media (max-width: 992px) {
  
  .bg-logo {
      position: relative;   /* deja de ser absolute */
      right: auto;
      top: auto;

      width: 90%;
      height: 280px;

      margin: 30px auto 20px auto;
      display: block;
  }

  .container {
      margin-top: 0;
      padding: 30px 20px;
  }

  #custom-cursor{
    display: none !important;
  }
  .mock-horizontal {
      width: 100% !important;
      height: 320px;
  }
}
