/* ============================================================
   LUBRIFRENOS NACIONAL S.A.S — Main Stylesheet
   Colors:
     Primary Maroon:  #6B1D1D
     Forest Green:    #2E6B34
     Industrial Grey: #4A4A4A
     Light Grey BG:   #F5F5F5
     White:           #FFFFFF
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --clr-maroon: #6B1D1D;
  --clr-maroon-dark: #4E1414;
  --clr-green: #2E6B34;
  --clr-green-dark: #1F4D24;
  --clr-grey: #4A4A4A;
  --clr-grey-light: #F5F5F5;
  --clr-white: #FFFFFF;
  --clr-black: #111111;
  --clr-gold: #F5A623;
  --ff-heading: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
  --banner-height: 40px;
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 10px);
}

body {
  font-family: var(--ff-body);
  color: var(--clr-grey);
  background-color: var(--clr-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--clr-maroon);
  line-height: 1.25;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-inline: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--clr-grey);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Top Banner ---------- */
.top-banner {
  background-color: var(--clr-maroon);
  color: var(--clr-white);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  position: relative;
  z-index: 999;
  letter-spacing: 0.02em;
}

.top-banner i {
  margin-right: 0.4rem;
}

.top-banner a {
  color: var(--clr-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-banner a:hover,
.top-banner a:focus-visible {
  color: var(--clr-gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--clr-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

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

.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clr-grey);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-green);
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--clr-green);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--clr-maroon);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 85vh;
  background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)),
    url("assets/hero.webp") center / cover no-repeat;
  color: var(--clr-white);
  padding: 2rem 1rem;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--clr-white);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--clr-green);
  color: var(--clr-white);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--clr-green-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--clr-maroon);
  color: var(--clr-white);
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--clr-maroon-dark);
  transform: translateY(-2px);
}

/* ---------- About / Nosotros ---------- */
.about {
  padding: 5rem 0;
  background-color: var(--clr-white);
}

.about-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-img {
  flex: 1;
  min-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1.2;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-text .highlight {
  color: var(--clr-green);
  font-weight: 700;
}

/* ---------- Services ---------- */
.services {
  padding: 5rem 0;
  background-color: var(--clr-grey-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--clr-white);
  border-radius: 10px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--clr-green);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
  font-size: 2.8rem;
  color: var(--clr-green);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--clr-maroon);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--clr-grey);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 5rem 0;
  background-color: var(--clr-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--clr-grey-light);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-card .stars {
  color: var(--clr-gold);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--clr-grey);
  line-height: 1.6;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--clr-maroon);
  font-size: 0.95rem;
}

.testimonial-card .author span {
  font-weight: 400;
  color: var(--clr-grey);
  font-size: 0.85rem;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 0;
  background-color: var(--clr-white);
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-list details {
  background-color: var(--clr-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-list details[open] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clr-maroon);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color var(--transition);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--clr-green);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list summary:hover {
  background-color: var(--clr-grey-light);
}

.faq-list .faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 1rem;
  color: var(--clr-grey);
  line-height: 1.7;
  animation: faqFadeIn 0.35s ease-out;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Contact ---------- */
.contact {
  padding: 5rem 0;
  background-color: var(--clr-grey-light);
}

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

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--clr-maroon);
}

.contact-info ul {
  margin-bottom: 1.5rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.contact-info li i {
  color: var(--clr-green);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-info a {
  color: var(--clr-green);
  font-weight: 600;
}

.contact-info a:hover,
.contact-info a:focus-visible {
  text-decoration: underline;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.hours-table td {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--clr-maroon);
  padding-right: 1rem;
}

.contact-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--clr-maroon-dark);
  color: var(--clr-white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--clr-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--clr-green);
  border-radius: 2px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--clr-white);
  text-decoration: underline;
}

.footer-col .footer-logo {
  height: 45px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

/* Hero social links */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.hero-social a {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition), transform var(--transition);
}

.hero-social a:hover,
.hero-social a:focus-visible {
  color: var(--clr-white);
  transform: scale(1.2);
  text-decoration: none;
}

/* Contact section social links */
.contact-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.contact-social a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--clr-green);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.contact-social a i {
  font-size: 1.3rem;
}

.contact-social a:hover,
.contact-social a:focus-visible {
  color: var(--clr-green);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition), transform var(--transition);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--clr-white);
  transform: scale(1.15);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Floating Action Buttons ---------- */
.fab {
  position: fixed;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: none;
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab:hover,
.fab:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab-whatsapp {
  right: 1.5rem;
  bottom: 1.5rem;
  background-color: #25D366;
}

.fab-waze {
  left: 1.5rem;
  background-color: #05C8F7;
}

.fab-gmaps {
  left: 1.5rem;
  bottom: calc(1.5rem + 58px + 0.75rem);
  background-color: #4285F4;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: calc(1.5rem + 58px + 0.75rem);
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--clr-maroon);
  color: var(--clr-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  z-index: 998;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--clr-maroon-dark);
  transform: translateY(-2px);
}

/* ---------- Privacy Page ---------- */
.privacy-page {
  padding: 5rem 0 3rem;
  min-height: 60vh;
}

.privacy-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: var(--clr-maroon);
}

.privacy-page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.privacy-page p,
.privacy-page li {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.privacy-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-page .back-btn {
  margin-top: 2.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--clr-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .nav-list {
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 1.05rem;
  }

  .nav-list a::after {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

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

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

}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .top-banner {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }

  .fab {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 1rem;
  }

  .fab-whatsapp {
    right: 1rem;
    bottom: 1rem;
  }

  .fab-waze {
    left: 1rem;
  }

  .fab-gmaps {
    left: 1rem;
    bottom: calc(1rem + 50px + 0.5rem);
  }

  .back-to-top {
    bottom: calc(1rem + 50px + 0.5rem);
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* ---------- Focus Visible (a11y) ---------- */
:focus-visible {
  outline: 3px solid var(--clr-green);
  outline-offset: 2px;
}

/* ---------- Skip Link (a11y) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background-color: var(--clr-green);
  color: var(--clr-white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 6px 6px;
  z-index: 10000;
  font-weight: 700;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   404 — Página no encontrada
   Aplicar clase .page-404 al <body> de 404.html
   ============================================================ */
body.page-404 {
  background: var(--clr-grey-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.page-404 .logo {
  width: 160px;
  height: auto;
  margin-bottom: 2rem;
}

.page-404 .code {
  font-size: 7rem;
  font-weight: 800;
  color: var(--clr-maroon);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.page-404 h1 {
  font-size: 1.5rem;
  color: var(--clr-maroon);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.page-404 p {
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.page-404 .actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-404 .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.page-404 .btn:active { transform: scale(0.97); }

.page-404 .btn-primary {
  background: var(--clr-green);
  color: #fff;
}

.page-404 .btn-primary:hover { background: #256B2B; }

.page-404 .btn-secondary {
  background: transparent;
  color: var(--clr-green);
  border: 2px solid var(--clr-green);
}

.page-404 .btn-secondary:hover {
  background: var(--clr-green);
  color: #fff;
}

.page-404 .footer-note {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #999;
}

@media (max-width: 480px) {
  .page-404 .code { font-size: 5rem; }
  .page-404 h1 { font-size: 1.25rem; }
  .page-404 .btn { width: 100%; justify-content: center; }
}
