/* ========================================
   AM SOLUCIONES COLOMBIA - Main Stylesheet
   ======================================== */

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

:root {
  --primary: #1b2a4a;
  --primary-light: #253760;
  --accent: #e8991c;
  --accent-hover: #d08515;
  --accent-light: #f5b84d;
  --accent-bg: #fdf5e8;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --bg: #faf9f7;
  --bg-warm: #f5f0eb;
  --border: #e5e0da;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius: 4px;
  --radius-lg: 6px;
  --transition: 0.25s ease;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; font-weight: 700; }
h1 { font-size: 3rem; letter-spacing: -0.5px; }
h2 { font-size: 2.1rem; letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,153,28,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

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

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--primary); }

/* --- Hero (split layout, warm gradient) --- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: var(--primary);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27,42,74,0.95) 0%,
    rgba(27,42,74,0.7) 40%,
    rgba(232,153,28,0.3) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 3.25rem;
}
.hero-content h1 .highlight {
  color: var(--accent);
  display: block;
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* --- Page Hero (inner pages — warm accent bar) --- */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.section-warm { background: var(--bg-warm); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- Service Image Cards (homepage — 4 cards with photos) --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.service-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-img-card:hover img {
  transform: scale(1.05);
}
.service-img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.85) 0%, rgba(27,42,74,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background var(--transition);
}
.service-img-card:hover .service-img-card-overlay {
  background: linear-gradient(to top, rgba(27,42,74,0.9) 0%, rgba(27,42,74,0.35) 60%, transparent 100%);
}
.service-img-card-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}
.service-img-card-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.5;
}
.service-img-card-overlay .card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}
.service-img-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}
.card-arrow svg { width: 18px; height: 18px; stroke: var(--white); }

/* --- About Teaser (homepage) --- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-teaser-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg);
}
.about-teaser-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-teaser-content .section-label { text-align: left; }
.about-teaser-content h2 { margin-bottom: 1rem; }
.about-teaser-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* --- Stats Strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-weight: 800;
}
.stat-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Values (horizontal tags) --- */
.values-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.value-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}
.value-tag svg {
  width: 18px; height: 18px;
  color: var(--accent);
}

/* --- Features Grid (used on about page) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card { text-align: center; padding: 2rem 1.5rem; }
.feature-icon {
  width: 52px; height: 52px;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  color: var(--accent);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* --- Services Detail (services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}
.service-detail:not(:last-child) { border-bottom: 1px solid var(--border); }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-content h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-detail-content p { color: var(--text-light); margin-bottom: 1.25rem; }
.service-detail-content ul { list-style: none; padding: 0; }
.service-detail-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}
.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg);
}
.service-detail-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- About Page --- */
.about-story { max-width: 720px; margin: 0 auto; }
.about-story p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.25rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.value-icon {
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  color: var(--accent);
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.value-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- CTA Section (warm amber gradient) --- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, #d48a12 100%);
  color: var(--white);
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.cta-section .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.cta-section .btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(27,42,74,0.3);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--primary);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  align-self: start;
}
.contact-info-card h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 0.5rem; }
.contact-info-card > p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-detail { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-detail svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.contact-detail-text span,
.contact-detail-text a { color: var(--white); font-size: 0.95rem; }

.contact-hours {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.contact-hours h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.contact-hours p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0.25rem; }

/* --- Footer --- */
.footer {
  background: var(--bg-warm);
  color: var(--text);
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .logo { display: inline-block; margin-bottom: 1rem; }
.footer-brand .logo img { height: 60px; width: auto; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: var(--text-light); }

.footer h4 {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-light); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-contact-item { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a,
.footer-contact-item span { color: var(--text-light); }
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { max-width: 480px; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail.reverse { direction: ltr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }

  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero-content h1 { font-size: 2.1rem; }
  .hero-image { display: none; }

  .service-cards { grid-template-columns: 1fr; gap: 1rem; }
  .service-img-card { aspect-ratio: 16/9; }

  .about-teaser { grid-template-columns: 1fr; gap: 1.5rem; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat-item h3 { font-size: 2rem; }

  .values-bar { gap: 0.5rem; }
  .value-tag { font-size: 0.85rem; padding: 0.6rem 1rem; }

  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.25rem 1rem; }

  .service-detail { padding: 2rem 0; gap: 1.5rem; }

  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-info-card { padding: 1.75rem; }

  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .value-card { padding: 1.5rem; }

  .cta-section { padding: 3rem 0; }

  .footer { padding: 3rem 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2rem; }

  .page-hero { padding: 6.5rem 0 2.5rem; }
}
