@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
.header {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  text-align: center;
  padding: 50px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 2.2rem;
  font-weight: 600;
}

.header p {
  margin-top: 10px;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* MAIN */
.main {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.qr-tool {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  width: 95%;
  max-width: 900px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-tool:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.qr-tool h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* FORM */
.qr-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.qr-form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

#qrText {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 80px;
}

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.options-row > div {
  flex: 1;
  min-width: 120px;
}

select,
input[type="color"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fdfdfd;
}

#generateBtn {
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

#generateBtn:hover {
  background: linear-gradient(135deg, #0056b3, #0099ff);
  transform: scale(1.03);
}

/* RESULTADO */
.qr-result {
  text-align: center;
}

.qr-result h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.qr-container {
  display: inline-block;
  padding: 1rem;
  background: #f5f7ff;
  border-radius: 16px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
  min-height: 280px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #28a745;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}

.download-btn:not(:disabled):hover {
  background: #218838;
  transform: scale(1.03);
}

/* RESULT BOX */
.result-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #eef5ff;
  border-radius: 10px;
  color: #004085;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 2rem;
}

/* ===== FOOTER SEO ===== */
.footer-seo {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

/* Texto informativo */
.footer-info {
  max-width: 900px;
  margin: 0 auto 25px;
}

.footer-info h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-info p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
}
.footer-info a{
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.footer-info a:hover{
  text-decoration: underline;
  opacity: 0.9;
}

/* Enlaces legales */
#list-links {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

#list-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#list-links li a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Copyright */
.footer-copy {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-copy a.footer-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.footer-copy a.footer-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}


/* RESPONSIVE */
@media (max-width: 700px) {
  .options-row {
    flex-direction: column;
  }
}
/* 📱 RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {

    /* ===== HEADER ===== */
    .header {
        padding: 35px 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    /* ===== MAIN ===== */
    .main {
        padding: 15px;
    }

    /* ===== CONTENEDOR PRINCIPAL ===== */
    .qr-tool {
        padding: 1.6rem;
        width: 100%;
        border-radius: 14px;
    }

    .qr-tool h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* ===== FORMULARIO ===== */
    #qrText {
        min-height: 70px;
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .options-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .options-row > div {
        min-width: 100%;
    }

    select,
    input[type="color"] {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    #generateBtn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* ===== RESULTADO ===== */
    .qr-result h3 {
        font-size: 1rem;
    }

    .qr-container {
        min-width: 200px;
        min-height: 200px;
        padding: 0.8rem;
    }

    .download-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* ===== RESULT BOX ===== */
    .result-box {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 18px;
        font-size: 0.85rem;
    }

    .footer a {
        font-size: 0.9rem;
    }
}
