/* ====================================================
   GIRE360 S.A.S — Global Stylesheet
   Dark / Tech Premium Theme
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --bg-primary:    #0f172a;
  --bg-secondary:  #1e293b;
  --bg-card:       #1e293b;
  --border-color:  #334155;
  --accent-blue:   #38bdf8;
  --accent-green:  #4ade80;
  --accent-orange: #fb923c;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --glow-blue:     rgba(56,189,248,0.15);
  --glow-green:    rgba(74,222,128,0.12);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1a2f52 50%, #0f172a 100%);
  --font-heading:  'Poppins', 'Segoe UI', sans-serif;
  --font-body:     'Inter', 'Segoe UI', sans-serif;
  --transition:    0.3s ease;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; }
ul  { list-style: none; }

/* ---- Header ---- */
.header {
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 12px 48px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(15,23,42,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.logo {
  width: 140px;
  height: 58px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---- Navigation ---- */
.menu-container {
  display: flex;
  flex-grow: 1;
  align-items: center;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 4px;
}

.menu > a {
  color: var(--text-secondary);
  padding: 8px 14px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.9rem;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}

.menu > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.menu > a:hover { color: var(--text-primary); }
.menu > a:hover::after,
.menu > a.active::after { transform: scaleX(1); }
.menu > a.active { color: var(--accent-blue); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown > a {
  color: var(--text-secondary);
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.dropdown > a::before {
  content: '';
}

.dropdown > a > .chevron {
  display: inline-block;
  font-size: 0.7em;
  transition: transform var(--transition);
  margin-left: 2px;
}

.dropdown:hover > a > .chevron { transform: rotate(180deg); }

.dropdown > a:hover { color: var(--text-primary); }

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  min-width: 230px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--text-secondary);
  padding: 11px 18px;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(51,65,85,0.6);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content a i {
  margin-right: 10px;
  color: var(--accent-blue);
  width: 14px;
  text-align: center;
}

.dropdown-content a:hover {
  background: rgba(56,189,248,0.08);
  color: var(--text-primary);
  padding-left: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
  padding: 6px;
  gap: 5px;
}

.bar {
  width: 26px;
  height: 2px;
  background-color: var(--text-secondary);
  transition: 0.35s ease;
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 5px);
  background-color: var(--accent-blue);
}
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -5px);
  background-color: var(--accent-blue);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 28px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a { color: var(--accent-blue); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: var(--border-color); }
.breadcrumb .current { color: var(--text-primary); }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0ea5e9 100%);
  color: #0f172a;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56,189,248,0.4);
  color: #0f172a;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  background: rgba(56,189,248,0.08);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e 0%, var(--accent-green) 100%);
  color: #0f172a;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,222,128,0.35);
  color: #0f172a;
}

/* ---- Section helpers ---- */
.section-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56,189,248,0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56,189,248,0.25);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.7;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  border-radius: 2px;
  margin: 12px 0 36px;
}

.section-divider.center { margin: 12px auto 36px; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Cards ---- */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(56,189,248,0.08);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Keyframes ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}

.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ---- Loading Spinner ---- */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

/* ---- Form messages ---- */
.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  display: none;
  font-size: 0.9rem;
}

.form-message.success {
  background: rgba(74,222,128,0.1);
  color: var(--accent-green);
  border: 1px solid rgba(74,222,128,0.3);
}

.form-message.error {
  background: rgba(248,113,113,0.1);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.3);
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 28px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-section p,
.footer-section > a {
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  transition: color var(--transition);
  gap: 8px;
}

.footer-section > a:hover { color: var(--accent-blue); }

.footer-section p i,
.footer-section a i {
  color: var(--accent-blue);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons a {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition);
  font-size: 0.85rem;
}

.social-icons a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: rgba(56,189,248,0.1);
  transform: translateY(-2px);
}

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.83rem;
}

/* ---- Accordion (generic) ---- */
.accordion-item {
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: background var(--transition);
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover { background: rgba(56,189,248,0.06); }
.accordion-item.active .accordion-header { background: rgba(56,189,248,0.1); color: var(--accent-blue); }

.accordion-header i { transition: transform var(--transition); color: var(--text-secondary); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: var(--accent-blue); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.accordion-content p {
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-content { max-height: 400px; }

/* ---- WhatsApp Flotante ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  animation: wa-pulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
  animation: none;
  transform: scale(1.08) translateY(-2px);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.12); }
}

@media screen and (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 1.35rem; }
}

/* ---- Responsive ---- */
@media screen and (max-width: 1024px) {
  .header { padding: 12px 24px; }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .logo { margin-right: auto; }

  .hamburger { display: flex; }

  .menu-container {
    width: 100%;
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 8px 16px 16px;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }

  .menu-container.active { display: block; }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu > a {
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(51,65,85,0.4);
    font-size: 0.95rem;
  }

  .menu > a::after { display: none; }

  .dropdown { width: 100%; }

  .dropdown > a {
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(51,65,85,0.4);
    font-size: 0.95rem;
    border-radius: 0;
    justify-content: space-between;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(56,189,248,0.04);
    display: none;
    border-left: 2px solid var(--accent-blue);
    margin-left: 12px;
  }

  .dropdown.open .dropdown-content { display: block; }
  .dropdown-content a { padding: 10px 16px; font-size: 0.88rem; }
  .dropdown-content a:hover { padding-left: 20px; }

  .section-title { font-size: 1.6rem; }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
