/* ==========================================================================
   GRUPO DEL VALLE - ESTILOS CORPORATIVOS MODERNOS (2026)
   ========================================================================== */

:root {
  --primary: #0b1528;
  --primary-light: #15243f;
  --primary-dark: #070d19;
  --accent: #ff6b2b;
  --accent-hover: #e85a1a;
  --accent-light: #fff0e8;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: 'Red Hat Display', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

/* === TOPBAR === */
.topbar {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-info a:hover {
  color: var(--accent);
}
.topbar-badge {
  background: rgba(255,107,43,0.15);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  z-index: 1000;
  padding: 12px 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  border: 1px solid var(--border);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--accent);
  padding-left: 24px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255,107,43,0.35);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,43,0.45);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: var(--accent);
  color: #ffffff;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, rgba(11,21,40,0.92) 0%, rgba(19,32,53,0.88) 100%),
              url('/img/hero-patrullas-edificio.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 0 110px;
  position: relative;
}
.hero-content {
  max-width: 760px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,43,0.2);
  color: var(--accent);
  border: 1px solid rgba(255,107,43,0.4);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 35px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === STATS BAR === */
.stats-bar {
  background: #ffffff;
  margin-top: -45px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item h3 {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === SECTION COMMONS === */
.section {
  padding: 85px 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}
.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,107,43,0.3);
}
.service-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.service-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.service-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}
.service-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

/* === ABOUT SECTION === */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  position: relative;
}
.about-img img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: #ffffff;
  padding: 24px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent);
}
.about-badge h4 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 4px;
}
.about-badge p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}
.about-features {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}
.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.about-feature-item h4 {
  font-size: 17px;
  margin-bottom: 4px;
}
.about-feature-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* === TEAM SECTION === */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.team-card {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 35px 25px;
  text-align: center;
  border-top: 4px solid var(--accent);
  transition: transform 0.25s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent);
  font-size: 38px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 4px solid var(--bg-light);
}
.team-card h3 {
  font-size: 21px;
  margin-bottom: 6px;
}
.team-role {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === TESTIMONIALS === */
.testimonials-section {
  background: var(--bg-light);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.testimonial-quote {
  font-size: 15px;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 22px;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.testimonial-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}
.testimonial-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 60px auto -50px;
  position: relative;
  z-index: 20;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 {
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 10px;
}
.cta-banner p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 600px;
}

/* === FOOTER === */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 100px 0 35px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo img {
  height: 48px;
  margin-bottom: 20px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 20px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: #94a3b8;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}
.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 14px;
  color: #94a3b8;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 15px;
}

/* === FLOATING WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,0.6);
  color: #ffffff;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 992px) {
  .services-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-split {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .services-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none; /* Mobile menu can be toggled */
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 40px 25px;
  }
  .stats-bar {
    padding: 25px 20px;
  }
}

/* ==========================================================================
   COMPONENTES PARA PÁGINAS INTERNAS
   ========================================================================== */

/* === INNER PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, rgba(11,21,40,0.92) 0%, rgba(19,32,53,0.88) 100%),
              url('/img/flota-corporativa-banderas.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 65px 0 70px;
  text-align: center;
}

/* === CLIENT LOGOS GRID === */
.clients-section {
  background: #ffffff;
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 45px;
}
.client-logo-item {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.3s ease;
}
.client-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}
.client-logo-item img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}
.page-header h1 {
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-header p {
  color: #cbd5e1;
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 18px;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}
.breadcrumbs a {
  color: #cbd5e1;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .active {
  color: var(--accent);
  font-weight: 600;
}

/* === CARDS & BOXES === */
.content-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,107,43,0.4);
}
.info-card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.info-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.info-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* === FEATURE LIST === */
.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
}
.feature-list li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* === EXECUTIVE QUOTE CARD === */
.quote-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 45px 50px;
  position: relative;
  border-left: 6px solid var(--accent);
  margin: 40px 0;
}
.quote-banner blockquote {
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e2e8f0;
}
.quote-author h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 3px;
}
.quote-author p {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === FORMS === */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,43,0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* === CONTACT LAYOUT === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 35px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.contact-info-text p, .contact-info-text a {
  color: var(--text-muted);
  font-size: 14px;
}
.contact-info-text a:hover {
  color: var(--accent);
}

/* === MOBILE TOGGLE & RESPONSIVE === */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

@media (max-width: 992px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .card-grid-3, .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .quote-banner {
    padding: 30px 25px;
  }
  .quote-banner blockquote {
    font-size: 16px;
  }
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 16px;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 15px;
  }
}

