/* =====================================================
   RayoSolar.com.mx - Public CSS
   ===================================================== */

:root {
  --primary:    #F5A623;
  --primary-dk: #D4891A;
  --bg:         #0A0E17;
  --bg2:        #0f1520;
  --card:       #141923;
  --border:     rgba(255,255,255,.08);
  --text:       #e2e8f0;
  --text-sub:   #94a3b8;
  --text-muted: #64748b;
  --radius:     10px;
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,14,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Bebas Neue', cursive; font-size: 1.8rem;
  color: #fff; text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-logo i { color: var(--primary); font-size: 1.5rem; }
.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  color: var(--text-sub); text-decoration: none; font-size: .9rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #0A0E17 !important;
  padding: .45rem 1.2rem; border-radius: 6px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-dk) !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #060a12 0%, #0d1a2e 50%, #0a1520 100%);
  display: flex; align-items: center; padding-top: 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,166,35,.08), transparent);
  pointer-events: none;
}

/* ---- PAGE HEADER (cotizacion, seguimiento) ---- */
.page-hero {
  background: linear-gradient(135deg, #060a12, #0d1a2e);
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem; color: #fff;
  letter-spacing: .05em;
}
.page-hero h1 span { color: var(--primary); }
.page-hero p { color: var(--text-sub); margin-top: .5rem; }

/* ---- SECTION ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--primary);
  display: block; margin-bottom: .75rem;
}
.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.8rem; color: #fff; line-height: 1.1;
  letter-spacing: .03em;
}
.section-title span { color: var(--primary); }
.section-sub { color: var(--text-sub); margin-top: .75rem; max-width: 540px; }

/* ---- CARDS ---- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: rgba(245,166,35,.4); transform: translateY(-4px); }
.card-body { padding: 1.75rem; }

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; border-radius: 20px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.badge-success { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.badge-warning { background: rgba(245,166,35,.15); color: #F5A623; border: 1px solid rgba(245,166,35,.3); }
.badge-info    { background: rgba(99,102,241,.15); color: #818cf8; border: 1px solid rgba(99,102,241,.3); }
.badge-primary { background: rgba(245,166,35,.15); color: var(--primary); border: 1px solid rgba(245,166,35,.3); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all var(--transition); border: none;
  font-family: 'Outfit', sans-serif;
}
.btn-primary { background: var(--primary); color: #0A0E17; }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,166,35,.3); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* ---- FORMS ---- */
.form-section { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-sub); margin-bottom: .5rem; }
.form-label .req { color: var(--primary); }
.form-control {
  width: 100%; padding: .75rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: var(--text);
  font-size: .95rem; font-family: 'Outfit', sans-serif;
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); background: rgba(245,166,35,.04); }
.form-control::placeholder { color: var(--text-muted); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

/* ---- ALERTS ---- */
.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #22c55e; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #ef4444; }
.alert-info { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.3); color: #818cf8; }

/* ---- TIMELINE ---- */
.timeline { display: flex; flex-direction: column; gap: 1.25rem; }
.timeline-item { display: flex; gap: 1rem; }
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(245,166,35,.1); border: 2px solid rgba(245,166,35,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .9rem; flex-shrink: 0;
}
.timeline-body { flex: 1; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; }
.timeline-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; }
.timeline-text { font-size: .9rem; color: var(--text-sub); }

/* ---- SOLAR SYSTEM CARD (cotizacion.php) ---- */
.sistema-option { cursor: pointer; transition: all var(--transition); }
.sistema-option:hover, .sistema-option.selected {
  border-color: var(--primary) !important;
  background: rgba(245,166,35,.06) !important;
  transform: translateY(-2px);
}
.sistema-option .radio-mark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sistema-option.selected .radio-mark { border-color: var(--primary); background: var(--primary); }
.sistema-option.selected .radio-mark::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #0A0E17;
}

/* ---- FOOTER ---- */
.footer { background: #060a12; border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: 'Bebas Neue', cursive; font-size: 1.8rem; color: #fff; }
.footer-brand-name span { color: var(--primary); }
.footer-desc { color: var(--text-muted); font-size: .88rem; margin-top: .75rem; line-height: 1.7; }
.footer-title { font-weight: 700; color: var(--text); font-size: .9rem; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: var(--text-muted); font-size: .82rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { color: var(--text-muted); transition: color var(--transition); }
.footer-socials a:hover { color: var(--primary); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
  animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background: #20b858; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,14,23,.98); padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .page-hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 2.2rem; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
