/* Main CSS for SILVAIA Platform */

:root {
  --primary-color: #2d5016;
  --secondary-color: #4a7c2a;
  --accent-color: #6ba644;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --info-color: #2196f3;
  /* New color palette for informational pages */
  --silva-950: #0f1a0a;
  --silva-900: #1a2e0f;
  --silva-800: #2d5016;
  --silva-700: #4a7c2a;
  --silva-600: #6ba644;
  --silva-500: #8bc34a;
  --silva-100: #e8f5e9;
  --silva-50: #f1f8f4;
  --amber-500: #ff9800;
  --amber-600: #f57c00;
  --amber-100: #ffe0b2;
  --amber-50: #fff8e1;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

.main-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-icon {
  font-size: 2rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
}

.user-role {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
}

.language-selector select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: white;
}

.logout-btn {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-container {
  width: 100%;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

.dashboard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.search-bar {
  flex: 1;
  max-width: 500px;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #1e3a8a;
  color: white;
}

.btn-primary:hover {
  background: #1e40af;
}

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

.btn-success:hover {
  background: #45a049;
}

.filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.empty-state p {
  color: #666;
  margin-bottom: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: 1.25rem;
  color: var(--text-color);
}

.project-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-draft {
  background: #e0e0e0;
  color: #666;
}

.status-under_review {
  background: #fff3cd;
  color: #856404;
}

.status-quoted {
  background: #d1ecf1;
  color: #0c5460;
}

.status-in_progress {
  background: #d4edda;
  color: #155724;
}

.status-completed {
  background: #d1f2eb;
  color: #0e6655;
}

.project-code {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.project-details {
  color: #666;
  font-size: 0.875rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: var(--text-color);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin-bottom: 0.5rem;
}

.modal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.option-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.option-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.option-card h3 {
  margin-bottom: 0.5rem;
}

.option-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.option-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
}

.main-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  color: #666;
  margin-top: 4rem;
}

/* ============================================
   SITE FOOTER STYLES
   ============================================ */

.site-footer {
  background: var(--silva-950);
  color: white;
  margin-top: 4rem;
  position: relative;
}

.footer-top-border {
  height: 3px;
  background: var(--amber-500);
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-company {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-square {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silva-950);
  font-weight: bold;
  font-size: 1.5rem;
}

.footer-logo-square::before {
  content: 'S';
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  letter-spacing: 0.05em;
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-heading {
  color: var(--amber-500);
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--amber-500);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-contact-info p {
  color: white;
  font-size: 0.95rem;
  margin: 0;
}

.footer-contact-info a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-info a:hover {
  color: var(--amber-500);
}

.footer-client-login {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--silva-600);
  background: var(--silva-950);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-align: center;
}

.footer-client-login:hover {
  background: var(--silva-800);
  border-color: var(--silva-500);
  color: white;
}

.footer-divider {
  height: 1px;
  background: var(--silva-600);
  width: 100%;
  margin: 0;
}

.footer-copyright {
  text-align: center;
  padding: 1.5rem 2rem;
  color: white;
  font-size: 0.9rem;
}

.footer-copyright p {
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-company {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .footer-company {
    grid-column: 1;
  }
  
  .footer-logo {
    margin-bottom: 1rem;
  }
  
  .footer-heading {
    margin-bottom: 1rem;
  }
}

/* Authentication Styles */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.4s ease-out;
}

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

.auth-card .logo {
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.auth-card h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.auth-card .subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
  color: var(--text-color);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(107, 166, 68, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #999;
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  padding: 0 1rem;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-oauth {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: white;
  color: var(--text-color);
  text-decoration: none;
}

.btn-oauth:hover {
  border-color: var(--accent-color);
  background: #f9f9f9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-oauth:active {
  transform: translateY(0);
}

.btn-oauth.google {
  color: #4285f4;
}

.btn-oauth.google:hover {
  border-color: #4285f4;
  background: #f8f9ff;
}

.btn-oauth.apple {
  color: #000;
}

.btn-oauth.apple:hover {
  border-color: #000;
  background: #f5f5f5;
}

.oauth-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.auth-link a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.auth-alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-alert.info {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px solid #90caf9;
}

.auth-alert.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.auth-alert.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .main-header {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Excepción para chat navbar - mantener en línea */
  .chat-header-navbar .header-content {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
  }

  .main-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Excepción para chat navbar nav */
  .chat-header-navbar .main-nav {
    flex-direction: row !important;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .modal-options {
    grid-template-columns: 1fr;
  }

  .auth-container {
    padding: 1rem;
    min-height: calc(100vh - 100px);
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-card h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   PUBLIC NAVBAR STYLES
   ============================================ */

.public-navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-square {
  width: 40px;
  height: 40px;
  background: var(--silva-800);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silva-100);
  font-weight: bold;
  font-size: 1.5rem;
}

.logo-square::before {
  content: 'S';
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--silva-800);
  letter-spacing: 0.05em;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--silva-800);
}

.nav-link.active {
  color: var(--silva-800);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber-500);
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateX(-50%) translateY(-10px);
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

.dropdown-left {
  background: var(--silva-50);
  padding: 2rem;
  border-radius: 12px 0 0 12px;
}

.dropdown-left a {
  text-decoration: none;
}

.dropdown-left h3 {
  color: var(--silva-800);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.dropdown-left p {
  color: var(--silva-600);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.dropdown-link {
  color: var(--silva-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.dropdown-link:hover {
  color: var(--amber-500);
}

.dropdown-right {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.dropdown-section {
  margin-bottom: 1.5rem;
}

.dropdown-section h4 {
  color: var(--silva-800);
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.dropdown-section p {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.dropdown-section a {
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.dropdown-section a:hover {
  color: var(--silva-800);
}

.dropdown-section a h4 {
  margin: 0;
  padding: 0;
  color: var(--silva-800);
  transition: color 0.3s;
}

.dropdown-section a:hover h4 {
  color: var(--amber-500);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.navbar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--silva-800);
  font-weight: 600;
}

.phone-icon {
  font-size: 1.2rem;
}

.btn-start-project {
  background: var(--silva-800);
  color: var(--silva-100);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-start-project:hover {
  background: var(--silva-700);
  transform: translateY(-1px);
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero-section {
  position: relative;
  background: var(--silva-950);
  color: white;
  padding: 6rem 2rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--silva-950), rgba(45, 80, 22, 0.9), rgba(26, 46, 15, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 800px;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   BUTTON VARIANTS
   ============================================ */

.btn-secondary {
  background: white;
  color: var(--silva-800);
  border: 2px solid var(--silva-800);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--silva-50);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline-white:hover {
  background: white;
  color: var(--silva-800);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.content-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--silva-800);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CARD LAYOUTS
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: var(--silva-500);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--silva-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--silva-700);
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--silva-800);
  margin-bottom: 1rem;
}

.card-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.card-list li {
  padding: 0.5rem 0;
  color: #666;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.card-list li::before {
  content: '✓';
  color: var(--silva-500);
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.faq-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: white;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.faq-tab.active {
  background: var(--silva-700);
  color: white;
}

.faq-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-item {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--silva-800);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: #666;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE NAVBAR - MEJORADO
   ============================================ */

/* Hamburger button */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--silva-800);
  cursor: pointer;
  padding: 0.5rem;
  order: 2;
  z-index: 1001;
}

.hide-desktop {
  display: none;
}

.hide-mobile {
  display: flex;
}

/* Tablet */
@media (max-width: 1024px) {
  .dropdown-content {
    grid-template-columns: 1fr;
  }
  
  .dropdown-right {
    grid-template-columns: 1fr;
  }
  
  .navbar-menu {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .dropdown-menu {
    min-width: 500px;
    left: 0;
    transform: translateX(0);
  }
  
  .nav-dropdown:hover .dropdown-menu {
    transform: translateY(0);
  }
  
  .navbar-phone {
    font-size: 0.85rem;
  }
  
  .phone-number {
    display: none;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1.15rem;
  }
  
  .content-section {
    padding: 4rem 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Mobile - Navbar con hamburger menu */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  
  .hide-desktop {
    display: block;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .public-navbar {
    padding: 1rem;
  }
  
  .navbar-container {
    flex-wrap: wrap;
    position: relative;
  }
  
  .navbar-logo {
    flex: 1;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .logo-square {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }
  
  .navbar-menu {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }
  
  .nav-link.active::after {
    display: none;
  }
  
  .nav-link.active {
    background: var(--silva-50);
    border-left: 3px solid var(--amber-500);
    padding-left: calc(1rem - 3px);
  }
  
  .nav-dropdown {
    width: 100%;
  }
  
  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 0;
    margin-left: 1rem;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  
  .dropdown-content {
    grid-template-columns: 1fr;
  }
  
  .dropdown-left {
    border-radius: 8px 8px 0 0;
    padding: 1.5rem;
  }
  
  .dropdown-right {
    padding: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .navbar-actions {
    flex-direction: row;
    gap: 0.75rem;
    width: auto;
    order: 1;
    justify-content: flex-end;
  }
  
  .navbar-phone {
    display: none;
  }
  
  .btn-start-project {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  /* Hero sections mobile */
  .hero-section {
    padding: 4rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn,
  .hero-actions .btn-outline-white {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
  
  /* Content sections mobile */
  .content-section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Cards mobile */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-description {
    font-size: 0.95rem;
  }
  
  /* Buttons mobile */
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  /* FAQ mobile */
  .faq-tabs {
    flex-direction: column;
    width: 100%;
  }
  
  .faq-tab {
    width: 100%;
  }
  
  .faq-item {
    padding: 1.5rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  /* Projects grid mobile */
  .projects-container {
    grid-template-columns: 1fr;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .public-navbar {
    padding: 0.75rem;
  }
  
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .content-section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .dropdown-left,
  .dropdown-right {
    padding: 1rem;
  }
  
  /* Configurator inputs mobile */
  [style*="grid-template-columns: repeat(3, 1fr)"] > * {
    grid-column: 1 / -1;
  }
  
  /* Hero actions mobile - ensure full width */
  .hero-actions > * {
    width: 100% !important;
  }
  
  /* Responsive Chat Navbar */
  .chat-header-navbar {
    padding: 0.75rem 1rem;
  }
  
  .chat-header-navbar .header-content {
    gap: 0.5rem;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }
  
  .back-to-home {
    font-size: 0.75rem;
    gap: 0.25rem;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .back-text {
    display: inline !important;
    white-space: nowrap;
  }
  
  .back-arrow {
    font-size: 1rem;
  }
  
  .chat-header-navbar .logo {
    font-size: 1rem;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.25rem;
  }
  
  .chat-header-navbar .logo-icon {
    font-size: 1.25rem;
  }
  
  .chat-header-navbar .logo-text {
    font-size: 1rem;
    white-space: nowrap;
  }
  
  .chat-header-navbar .main-nav {
    flex-direction: row !important;
  }
  
  .nav-link-login {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .back-arrow {
    font-size: 0.9rem;
  }
  
  .back-to-home {
    font-size: 0.7rem;
  }
  
  .chat-header-navbar .logo-text {
    font-size: 0.9rem;
  }
  
  .chat-header-navbar .logo-icon {
    font-size: 1.1rem;
  }
  
  .nav-link-login {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Responsive text */
@media (max-width: 768px) {
  .text-responsive {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }
  
  .heading-responsive {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* ============================================
   CHAT NAVBAR STYLES
   ============================================ */

.chat-header-navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-header-navbar .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}

.back-to-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--silva-800);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  flex-shrink: 0;
}

.back-to-home:hover {
  color: var(--amber-500);
}

.back-arrow {
  font-size: 1.2rem;
  font-weight: bold;
}

.back-text {
  white-space: nowrap;
}

.chat-header-navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  flex: 1;
  justify-content: center;
}

.chat-header-navbar .logo-icon {
  font-size: 2rem;
}

.chat-header-navbar .main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-link-login {
  text-decoration: none;
  color: var(--silva-800);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.nav-link-login:hover {
  background: var(--silva-50);
  color: var(--amber-500);
}

/* Responsive spacing */
@media (max-width: 768px) {
  .spacing-mobile {
    margin-bottom: 1.5rem;
  }
  
  .padding-mobile {
    padding: 1rem;
  }
  
  /* Force single column for inline grid styles */
  .card-grid[style*="grid-template-columns: repeat(auto-fit, minmax(400px"] {
    grid-template-columns: 1fr !important;
  }
  
  .card-grid[style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
    grid-template-columns: 1fr !important;
  }
  
  .card-grid[style*="grid-template-columns: repeat(auto-fit, minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Button action grids */
  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  /* Configurator responsive */
  div[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Hero list items */
  ul[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Card list items */
  ul.card-list[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}


