* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #eb483e; /* color exacto */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}



.container {
    width: 100%;
    max-width: 400px;
}

.card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 0.6s ease-out;
}


@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
}

.form-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input[readonly] {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
}

.instagram-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.instagram-display input {
    flex: 1;
}

.btn-copy {
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    min-width: 50px;
}

.btn-copy:hover {
    background: #5a67d8;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

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


.instagram-actions {
    margin-top: 20px;
}

.error {
    color: #e53e3e;
    background: #fed7d7;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.success {
    text-align: center;
}

.success h2 {
    color: #38a169;
    margin-bottom: 15px;
}

.success p {
    color: #666;
    font-size: 16px;
}

.loading {
    text-align: center;
    color: #666;
    font-size: 18px;
}

@media (max-width: 480px) {
.card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

    
    .form-section h2 {
        font-size: 20px;
    }
}

.logo img {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Animaciones de fade para mensajes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.fade-out {
    opacity: 1;
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Spinner dentro del botón */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos del modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}

.modal-content h2 {
    color: #38a169;
    margin-bottom: 15px;
}

.modal-content p {
    color: #555;
    margin-bottom: 20px;
}

.btn-share {
    background: #25D366; /* verde WhatsApp */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-share img {
    width: 24px;
    height: 24px;
}

.btn-share:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#share-section {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

/* Estilo para QR inválido */
body.qr-invalid {
    background-color: #eb483e; /* Fondo rojo */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.qr-invalid .card {
    background: none; /* Quitar tarjeta blanca */
    box-shadow: none;
    padding: 0;
}

body.qr-invalid .container,
body.qr-invalid #content,
body.qr-invalid .form-section,
body.qr-invalid .success,
body.qr-invalid .loading,
body.qr-invalid .instagram-actions,
body.qr-invalid #share-section,
body.qr-invalid .modal {
    display: none; /* Ocultar todo excepto logo */
}

body.qr-invalid .logo img {
    max-width: 200px;
}

.no-qr .card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}


/* Cuando no hay QR o estamos en la página de inicio */
body.no-qr {
    background-color: #eb483e; /* fondo rojo */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.no-qr .card {
    background: transparent; /* quitar el fondo blanco */
    box-shadow: none;        /* quitar sombra */
    padding: 0;              /* quitar padding */
}

body.no-qr .container,
body.no-qr #content,
body.no-qr .form-section,
body.no-qr .success,
body.no-qr .loading,
body.no-qr .instagram-actions,
body.no-qr #share-section,
body.no-qr .modal {
    display: none;           /* ocultar todo excepto el logo */
}

body.no-qr .logo img {
    max-width: 200px;
}


.branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif; /* fuente nueva */
  font-size: 1.1rem; /* un poco más grande */
  font-weight: 600;
  color: #222222; /* más oscuro para resaltar */
  opacity: 0.95;
  transition: opacity 0.3s ease;
}


.branding:hover {
  opacity: 1;
}

.brand-name {
  font-weight: bold;
  color: #FFFFFF;
}

.insta-logo {
  width: 36px;   /* antes 28px */
  height: 36px;  /* antes 28px */
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 10px;
}



.insta-logo:hover {
  transform: scale(1.1);
}

.coming-soon {
  text-align: center;
  margin-top: 40px;
  color: white;   
}

.coming-soon h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px; /* margen más grande debajo del título principal */
}

.coming-soon p {
  font-size: 1rem;
  margin-bottom: 25px; /* más espacio antes del input */
}

#notify-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px; /* espacio debajo del formulario */
}

.success,
.error {
  margin-top: 20px; /* espacio más grande arriba de los mensajes */
}

/* Opcional: hacer que el input + botón se vean más modernos */
#email-input {
  padding: 12px 15px;
  width: 260px;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.9);
}

#notify-form button {
  padding: 12px 18px;
  border: none;
  background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#notify-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 23, 68, 0.3);
}
