/* ===== IMOBYS INSTITUCIONAL - STYLES ===== */

:root {
  --primary: #1a3a5c;
  --primary-light: #234d7a;
  --primary-dark: #0f2a44;
  --gold: #c8a84b;
  --gold-light: #d4b865;
  --text: #1a2738;
  --text-light: #64748b;
  --bg: #f8fafc;
  --bg-dark: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --gradient: linear-gradient(135deg, #1a3a5c 0%, #234d7a 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(26,58,92,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,58,92,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.header.scrolled { box-shadow: var(--shadow-lg); }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

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

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

.nav-actions { display: flex; gap: 12px; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f0f8 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(26,58,92,0.1);
}

.stat { text-align: center; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

.hero-dashboard {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s;
}

.hero-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-header {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.dashboard-dot { width: 12px; height: 12px; border-radius: 50%; }
.dashboard-dot.red { background: #ff5f57; }
.dashboard-dot.yellow { background: #febc2e; }
.dashboard-dot.green { background: #28c840; }

.dashboard-content { padding: 24px; }
.dashboard-chart {
  height: 200px;
  background: linear-gradient(135deg, rgba(26,58,92,0.05) 0%, rgba(0,168,232,0.05) 100%);
  border-radius: 8px;
  margin-bottom: 16px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dashboard-stat {
  height: 60px;
  background: var(--bg);
  border-radius: 8px;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Features */
.features { padding: 100px 0; background: white; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 32px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 32px; height: 32px; }
.feature-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-desc { color: var(--text-light); line-height: 1.8; }

/* Products */
.products { padding: 100px 0; background: var(--bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-icon {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-icon svg { width: 32px; height: 32px; color: var(--primary); }
.product-name { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.product-desc { color: var(--text-light); margin-bottom: 24px; line-height: 1.8; }

.product-features { list-style: none; margin-bottom: 32px; }
.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.product-features li:last-child { border-bottom: none; }
.product-features li svg { width: 20px; height: 20px; color: var(--gold); }
.product-features li.disabled { color: var(--text-light); opacity: 0.5; }

/* Pricing */
.pricing { padding: 100px 0; background: white; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.pricing-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-header { text-align: center; margin-bottom: 24px; }
.pricing-name { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.pricing-desc { color: var(--text-light); font-size: 14px; }

.pricing-price {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
}

.price-value { font-size: 48px; font-weight: 900; color: var(--primary); }
.price-period { color: var(--text-light); font-size: 16px; }

.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { width: 20px; height: 20px; color: var(--gold); }

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About */
.about { padding: 100px 0; background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text { color: var(--text-light); line-height: 1.8; margin-bottom: 24px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.about-stat { text-align: center; }
.about-stat-value { font-size: 36px; font-weight: 800; color: var(--primary); }
.about-stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

.about-image {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  position: absolute;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.visual-card svg { width: 48px; height: 48px; color: var(--primary); }
.visual-card.delay-1 { animation-delay: 2s; top: 20%; left: 10%; }
.visual-card.delay-2 { animation-delay: 4s; bottom: 20%; right: 10%; }

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

/* Contact */
.contact { padding: 100px 0; background: white; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 24px; height: 24px; color: white; }
.contact-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { color: var(--text-light); }

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 14px; }

.contact-form-wrapper {
  background: var(--bg);
  padding: 40px;
  border-radius: 16px;
}

.contact-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(--text); font-size: 14px; }
.form-group input, .form-group textarea {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col:first-child { max-width: 300px; }
.footer-logo img { height: 32px; margin-bottom: 16px; opacity: 0.95; }
.footer-desc { color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer-title { font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; }
.footer-legal a:hover { color: white; }

/* Responsive */
@media (max-width: 968px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 42px; }
  .hero-image { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active { display: flex; }
  .mobile-menu-btn { display: flex; }
  .nav-actions { display: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 24px; }
  .section-title { font-size: 32px; }
  .features-grid, .products-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
