/* Updated styles.css - Versión profesional para Encuesta IA */

:root {
  --primary-color: #3a57e8;
  --primary-dark: #2442d9;
  --primary-light: #eef1ff;
  --secondary-color: #7c3aed;
  --accent-color: #00c9a7;
  --dark-color: #222831;
  --light-color: #f8f9fa;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-100);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utility Classes */
.highlight {
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: -0.5rem;
  right: -0.5rem;
  height: 0.8rem;
  background-color: var(--accent-color);
  opacity: 0.3;
  z-index: -1;
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-800);
}

/* Header */
.header {
  background-color: white;
  box-shadow: var(--shadow);
  padding: 1.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 2.4rem;
}

.version-badge {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  background: linear-gradient(135deg, #f5f7ff 0%, #e8f3ff 100%);
}

.hero-content {
  max-width: 76rem;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--gray-800);
}

.hero-description {
  font-size: 1.8rem;
  color: var(--gray-600);
  margin-bottom: 3.5rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.start-form {
  width: 100%;
  max-width: 32rem;
}

/* Forms and Input Fields */
.input-field {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Question Card */
.question-card {
  background-color: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.question-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.question-text {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}

.answer-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  cursor: pointer;
}

.answer-textarea {
  width: 100%;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.answer-textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2.8rem;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn i {
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(5px);
}

/* Privacy Note */
.privacy-note {
  font-size: 1.4rem;
  color: var(--gray-500);
  margin-top: 1.5rem;
}

.privacy-note i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

/* Features Section */
.features {
  padding: 8rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.feature-icon i {
  font-size: 2.8rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.feature-card p {
  color: var(--gray-600);
}

/* About Section */
.about {
  padding: 8rem 0;
  background-color: var(--light-color);
}

.about-content {
  max-width: 80rem;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--gray-800);
}

.about-content p {
  margin-bottom: 3rem;
  text-align: center;
}

.info-box {
  display: flex;
  align-items: center;
  background-color: #fff8e6;
  border-left: 4px solid #ffc107;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.info-icon {
  font-size: 2.4rem;
  color: #ffc107;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.info-box p {
  margin-bottom: 0;
  text-align: left;
  font-size: 1.5rem;
}

/* Form Groups (para formularios en admin) */
.form-group {
  margin-bottom: 2rem;
}

/* Admin Menu */
.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  padding: 0;
  align-items: center;
}

.admin-menu li {
  width: 100%;
  max-width: 30rem;
}

/* Secciones específicas de páginas */
.survey-form-section,
.admin-login-section,
.admin-dashboard-section,
.admin-update-section,
.admin-report-section {
  padding: 8rem 0;
}

.survey-form,
.admin-login-form {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

/* Tabla de reportes */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.report-table th,
.report-table td {
  padding: 1rem;
  border: 1px solid var(--gray-300);
  text-align: left;
  font-size: 1.6rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--gray-300);
  padding: 4rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
}

.footer-logo i {
  color: var(--primary-light);
  margin-right: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.copyright {
  font-size: 1.4rem;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 99;
}

.scroll-top button {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top button.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive Ajustes */
@media (max-width: 992px) {
  html {
    font-size: 60%;
  }

  .hero-title {
    font-size: 4.2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 57.5%;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about,
  .features {
    padding: 6rem 0;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 55%;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .scroll-top {
    bottom: 2rem;
    right: 2rem;
  }

  .scroll-top button {
    width: 4rem;
    height: 4rem;
  }
}
