/* ═══════════════════════════════════════════════
   styles.css – Variables globales, reset, utilidades
   ═══════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─────────────────────── */
:root {
  --navy:        #0b1f3a;
  --navy-mid:    #0f2a4e;
  --navy-light:  #1a3a5c;
  --orange:      #f97316;
  --orange-dark: #ea6c0a;
  --blue:        #2563eb;
  --blue-light:  #dbeafe;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --orange-light:#ffedd5;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --white:       #ffffff;
  --text-dark:   #111827;
  --text-mid:    #374151;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.20);

  --transition:  all .25s cubic-bezier(.4,0,.2,1);
  --font:        'Nunito', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── LAYOUT UTILITIES ──────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  background: var(--white);
}

.section--light {
  background: var(--gray-50);
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 48px;
}

.section__title + .cards-grid,
.section__title + .features-grid {
  margin-top: 48px;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}

.btn--orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.45);
}

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

.btn--full {
  width: 100%;
}

/* ─── FORM INPUTS ────────────────────────────── */
.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  padding-top: 14px;
  line-height: 1.5;
}

.form-select {
  cursor: pointer;
  padding-right: 40px;
}

/* ─── MODAL FIELD WRAPPER ────────────────────── */
.modal-field,
.contact-field {
  position: relative;
  margin-bottom: 16px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.input-icon--top {
  top: 18px;
  transform: none;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ─── TOAST ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 9999;
  pointer-events: none;
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast--success { border-left: 4px solid var(--green); }
.toast--error   { border-left: 4px solid #ef4444; }

/* ─── CONTACT FORM ───────────────────────────── */
.contact-form-wrapper {
  max-width: 560px;
  margin: 48px auto 0;
}

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeInUp .6s ease both;
}

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* ─── RESPONSIVE HELPERS ─────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section__title { font-size: 1.6rem; }
  .btn { padding: 13px 24px; }
}
