/* ============================================
   HRO Solutions — Sitio web minimalista
   Colores: Navy #072C5C + Oro #C9A227
   ============================================ */

:root {
  --navy: #072C5C;
  --navy-dark: #051E3E;
  --navy-light: #0A3A75;
  --gold: #C9A227;
  --gold-light: #D4B44A;
  --gold-dark: #A8871E;
  --white: #FFFFFF;
  --off-white: #F8F9FB;
  --gray-50: #F1F3F6;
  --gray-100: #E4E8EE;
  --gray-200: #C5CCD6;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --text: #1F2937;
  --shadow: 0 4px 20px rgba(7, 44, 92, 0.08);
  --shadow-lg: 0 10px 40px rgba(7, 44, 92, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --max-width: 1120px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
}

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

.header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
}

.logo-text {
  display: none; /* New logo already includes the name */
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--navy);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
  background: var(--navy);
  color: white !important;
  border-radius: 50px;
}

.nav-cta:hover {
  background: var(--navy-light);
}

.nav-cta::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  padding: 9rem 0 5.5rem;
  background: linear-gradient(160deg, #F8FAFC 0%, #EEF2F7 50%, #E8EEF5 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1px solid var(--gray-100);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0a1f3d;
  aspect-ratio: 4/5;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 5;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dots button.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ---------- About ---------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.about-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gray-100);
  background: white;
}

.about-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.about-card p {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.about-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--gray-700);
}

/* ---------- Divisiones ---------- */
.divisiones {
  background: var(--off-white);
}

.divisiones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.division-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.division-card .card-img {
  height: 150px;
  overflow: hidden;
  background: #072C5C;
}

.division-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.division-card:hover .card-img img {
  transform: scale(1.05);
}

.division-card .card-body {
  padding: 1.5rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.division-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.division-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.division-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0.7rem 1rem;
}

/* Featured general catalog */
.catalogo-general {
  background: var(--navy);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.catalogo-general::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.08));
  pointer-events: none;
}

.catalogo-general-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.catalogo-general-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.catalogo-general-text p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 480px;
  line-height: 1.6;
}

.catalogo-general .btn-gold {
  flex-shrink: 0;
}

/* ---------- Contacto ---------- */
.contacto {
  background: var(--white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contacto-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item .icon-box {
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

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

.contacto-cta {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  border: 1px solid var(--gray-100);
}

.contacto-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contacto-cta p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
}

.contacto-cta .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img,
.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-links h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-carousel {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .divisiones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-general-inner {
    flex-direction: column;
    text-align: center;
  }

  .catalogo-general-text p {
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .divisiones-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 7.5rem 0 4rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
