/* Variables */
:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --secondary: #2196F3;
  --accent: #FF9800;
  --light: #f8f9fa;
  --dark: #212529;
  --darker: #1a1e21;
  --danger: #f44336;
  --success: #4CAF50;
  --warning: #FFC107;
  --gray: #6c757d;
  --border-radius: 12px;
  --box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
  --facebook: #3b5998;
  --twitter: #1da1f2;
  --whatsapp: #25d366;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.contenedor-principal {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;
}

.header {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.navbar-links {
  display: flex;
  gap: 15px;
  justify-content: space-around;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 30px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.language-selector {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 5px;
}

.language-option {
  padding: 5px 10px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.language-option.active {
  background: white;
  color: var(--primary);
  font-weight: 600;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.emoji {
  display: inline-block;
  animation: bounce 2s infinite;
}

.version-info {
  background: rgba(0, 0, 0, 0.15);
  display: inline-block;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
}

.main-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #e3f2fd;
  border-left: 4px solid var(--secondary);
}

.info-icon {
  font-size: 1.8rem;
  color: var(--secondary);
  min-width: 40px;
  text-align: center;
}

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

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px dashed var(--primary);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.search-input:focus {
  border-style: solid;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
  background: #f1f1f1;
  color: var(--dark);
}

.btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-success {
  background-color: var(--secondary);
  color: white;
}

.btn-success:hover {
  background-color: #27ae60;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-phone {
  background-color: #4CAF50;
  color: white;
}

.btn-phone:hover {
  background-color: #388E3C;
}

.btn-report {
  background-color: #FF9800;
  color: white;
}

.btn-report:hover {
  background-color: #F57C00;
}

.btn-facebook {
  background-color: var(--facebook);
  color: white;
}

.btn-facebook:hover {
  background-color: #2d4373;
}

.btn-twitter {
  background-color: var(--twitter);
  color: white;
}

.btn-twitter:hover {
  background-color: #0c7abf;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.message {
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.message.success {
  background-color: #e8f5e9;
  border-left: 4px solid var(--success);
  color: var(--primary-dark);
}

.message.error {
  background-color: #ffebee;
  border-left: 4px solid var(--danger);
  color: #b71c1c;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-result {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalAppear 0.4s ease-out;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.owner-info p {
  margin-bottom: 15px;
  display: flex;
}

.info-label {
  font-weight: 600;
  min-width: 120px;
}

.info-value {
  flex: 1;
}

.contact-btn {
  margin-top: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-btn-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.translation-widget {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  order: 2;
}

.translation-widget-header {
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.95rem;
}

.translation-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.translation-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.translation-btn.active, .translation-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.message-preview {
  margin-top: 15px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #eee;
  font-size: 0.9rem;
  text-align: center;
}

.accordion {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordion-header {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background: linear-gradient(to right, var(--primary-dark), #2e7d32);
}

.accordion-header.active {
  background: linear-gradient(to right, var(--primary-dark), #2e7d32);
}

.accordion-icon {
  transition: var(--transition);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
  padding: 20px;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.section-content {
  line-height: 1.7;
}

.section-content h3 {
  margin: 15px 0 10px;
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.section-content ul {
  padding-left: 20px;
  margin: 10px 0;
}

.section-content li {
  margin-bottom: 8px;
}

.testimonial {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  background: #f9f9f9;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.testimonial::before {
  content: """;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: 10px;
  font-family: serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-dark);
}

.privacy-link-container {
  text-align: center;
  margin-top: 30px;
}

.privacy-link {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.privacy-link:hover {
  color: var(--primary);
}

.modal-privacy {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1001;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-privacy .modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-privacy .modal-body {
  padding: 20px;
  margin: 0;
}

.modal-privacy .modal-footer {
  padding: 20px;
  display: flex;
  justify-content: flex-end;
}

.footer {
  background: var(--darker);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  margin-bottom: 20px;
  text-align: left;
}

.contact-info, .contact-message {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-message {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
}

.inflation-effect {
  display: inline-block;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes modalAppear {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin: 20px 0;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--secondary);
  animation: slideIn 0.4s ease-out;
}

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

.form-container h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-container h3 i {
  color: var(--accent);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--dark);
  margin-left: 5px;
}

.form-input, .form-textarea, .form-select {
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
  transition: var(--transition);
  background-color: #f8f9fa;
  font-family: 'Montserrat', sans-serif;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  background-color: white;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

#formProblemas {
  border-left: 4px solid var(--warning);
}

#formProblemas h3 {
  color: var(--warning);
}

.benefits-section {
  background: #fffde7;
  border-left: 4px solid #ffc107;
}

.importance-section {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
}

.security-section {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.social-sharing {
  margin: 30px 0;
  text-align: center;
}

.social-sharing h3 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

/* Estilos para la galería QR */
.qr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.qr-gallery img, .qr-gallery video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.qr-gallery img:hover {
  transform: scale(1.03);
}

.qr-gallery video {
  background: #000;
}

.qr-examples h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
} 

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Relación 16:9 */
  height: 0;
  overflow: hidden;
  grid-column: 1 / -1; /* Ocupa todo el ancho */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Estilos para el selector de idioma con banderas */
.language-flags-container {
  margin: 15px 0;
}

.language-flags {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.language-flags input[type="radio"] {
  display: none;
}

.language-flags label {
  display: inline-block;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.language-flags input[type="radio"]:checked + label {
  border-color: #25D366;
  background-color: rgba(37, 211, 102, 0.1);
  transform: scale(1.1);
}

.language-flags label:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  .modal-result {
    width: 95%;
  }
  
  .contact-btn-row {
    flex-direction: column;
  }
  
  .translation-buttons {
    gap: 5px;
  }
  
  .translation-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 20px 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .info-label {
    min-width: 100px;
    font-size: 0.9rem;
  }
  
  .info-value {
    font-size: 0.9rem;
  }
}