/* ══════════════════════════════════════════════════════════
   ABIO Asesores - Website Styles
   Colors: #E5572B (naranja), #515C67 (gris), #f0f4f8 (fondo)
   ══════════════════════════════════════════════════════════ */

:root {
  --orange: #E5572B;
  --orange-dark: #c94820;
  --orange-light: #fef0eb;
  --gray: #515C67;
  --gray-dark: #374151;
  --gray-light: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --bg-dark: #1a1a2e;
  --text: #1f2937;
  --text-light: #6b7280;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

.text-accent { color: var(--orange); }

/* ── Navigation ──────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray);
  display: flex;
  align-items: baseline;
}

.logo-accent {
  color: var(--orange);
  font-weight: 600;
  font-size: 16px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
  background: var(--orange-light);
}

.btn-nav {
  background: var(--orange) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--orange-dark) !important;
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 14px rgba(229,87,43,0.3);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229,87,43,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-full { width: 100%; }

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(229,87,43,0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
}

.hero-label {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 320px;
}

.hero-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--orange), #f06336);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.hero-card-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.hero-card h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ── Sections ────────────────────────────────────────── */

.section {
  padding: 100px 0;
}

.section-gray {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header.light h2,
.section-header.light .section-desc {
  color: white;
}

.section-header.light .section-desc {
  color: rgba(255,255,255,0.7);
}

.section-label {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2,
h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── Services ────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
}

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

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

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-icon.fiscal { background: #fef2f2; color: #dc2626; }
.service-icon.laboral { background: #eff6ff; color: #2563eb; }
.service-icon.contable { background: #f0fdf4; color: #16a34a; }
.service-icon.otros { background: #fdf4ff; color: #9333ea; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-dark);
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card li {
  font-size: 13px;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ── About ───────────────────────────────────────────── */

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

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}

.about-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-card-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--orange), #f06336);
}

.about-card-content {
  padding: 40px;
  text-align: center;
}

.about-card-content svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.about-card-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.about-card-content p {
  font-size: 13px;
  color: var(--text-light);
}

/* ── Advantages ──────────────────────────────────────── */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.advantage {
  text-align: center;
  padding: 32px 24px;
}

.advantage-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.advantage-icon svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.advantage h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-dark);
}

.advantage p {
  font-size: 14px;
  color: var(--text-light);
}

/* ── Contact ─────────────────────────────────────────── */

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

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

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(229,87,43,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--orange);
}

.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: white;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form select {
  color: rgba(255,255,255,0.5);
}

.contact-form select option {
  background: #1a1a2e;
  color: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 4px;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 13px;
  margin-bottom: 4px;
}

.footer-cif {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .section-header h2, h2 { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { gap: 24px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-buttons { flex-direction: column; }
  .about-stats { flex-direction: column; gap: 16px; text-align: center; }
  .footer-content { grid-template-columns: 1fr; }
}
