:root {
  --gold: #d4af37;
  --black: #000000;
  --dark-gray: #111111;
  --light-gray: #333333;
  --white: #ffffff;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #1ebe5b;
  --whatsapp-green-active: #075e54;
  --whatsapp-green-border: #25d366;
  --whatsapp-green-border-hover: #1ebe5b;
  --whatsapp-green-border-active: #075e54;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* UTILITY CLASSES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.requerido {
  color: var(--white);
  font-size: x-small;
} 

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 4px;
  background-color: var(--gold);
  transform: skewX(-20deg);
}

.angled-border {
  position: relative;
  padding: 2rem;
  margin: 2rem 0;
}

.angled-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--gold);
  transform: skew(-5deg);
  z-index: -1;
}

.gold-text {
  color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--gold);
  color: var(--black);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  transform: skewX(-15deg);
}

.btn span {
  display: block;
  transform: skewX(15deg);
}

.btn:hover {
  color: var(--gold);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 100%;
  background-color: var(--black);
  transform: skewX(15deg);
  z-index: -1;
  transition: all 0.5s ease;
}

.btn:hover::before {
  width: 120%;
}

.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 1s ease;
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.logo {
  max-width: 120px;
}

.logo img {
  width: 100%;
  height: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: skewX(-15deg);
}

nav ul li a:hover {
  color: var(--gold);
}

nav ul li a:hover::after {
  width: 100%;
}

.close-nav {
  display: none;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  background-image: url("./img/hero.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--black);
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  position: relative;
  line-height: 1.2;
}

.hero h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100px;
  height: 5px;
  background-color: var(--gold);
  transform: skewX(-20deg);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
}

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

/* ABOUT SECTION */
.about {
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

.container-about {
  width: 100%;
}

.about-container {
  display: flex;
  align-items: center;
  position: relative;
}

.about-image {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-image: url("./img/quienes-somos.webp");
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: all 1s ease;
}

.about-image.active {
  left: 0;
}

.about-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.about-content {
  padding: 3rem;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 25px;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  font-size: 2rem;
  color: var(--gold);
}

.feature-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-text p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}

/* SERVICES SECTION */
.services {
  padding: 6rem 0;
  background-color: var(--dark-gray);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--black);
  transform: skewY(-3deg);
}

.services::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--black);
  transform: skewY(-3deg);
}

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

.service-pdr {
  background-image: url("./img/servicios/pdr.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-pulido {
  background-image: url("./img/servicios/pulido_detallado.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-pintura {
  background-image: url("./img/servicios/pintura.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-reparacion-estructural {
  background-image: url("./img/servicios/reparacion_estructural.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-reparacion-carroceria {
  background-image: url("./img/servicios/reparacion_carroceria.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-plastico {
  background-image: url("./img/servicios/reparacion_piezas_plasticas.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card {
  padding: 2rem;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: skew(-3deg);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--gold);
  transition: all 0.3s ease;
}

.service-card:hover::before {
  width: 100%;
  opacity: 0.8;
  background-color: var(--black);
}

.service-card.hover-effect::before {
  width: 100%;
  opacity: 0.8;
  background-color: var(--black);
}

.service-card-content {
  transform: skew(0deg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2.5rem;
  color: #111;
  background-color: #c7a44d;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -20px 0 1.5rem -20px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 15%,
    rgba(0, 0, 0, 0.5) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

.service-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
  color: #f0f0f0;
  padding: 1rem 1.5rem;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 15%,
    rgba(0, 0, 0, 0.5) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

.service-link {
  display: inline-block;
  text-decoration: none;
  background-color: #c7a44d;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 2px;
  transform: skewX(-25deg);
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.service-link span {
  display: inline-block;
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  transform: skewX(25deg);
}

.service-link:hover {
  background-color: #d6b55f;
}
.service-link i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* TESTIMONIALS */
.testimonials {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  margin-top: 3rem;
  position: relative;
}

.testimonial-slide {
  padding: 2rem;
  background-color: var(--dark-gray);
  border-radius: 5px;
  margin: 0 1rem;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.testimonial-text::before {
  content: "\201C";
  font-size: 4rem;
  position: absolute;
  top: -2rem;
  left: -1rem;
  color: var(--gold);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid var(--gold);
}

.testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.testimonial-author-info p {
  font-size: 0.9rem;
  color: #aaa;
}

/* CONTACT SECTION */

input {
  font-size: 16px;
}

textarea {
  font-size: 16px;
}

select {
  font-size: 16px;
}

.contact {
  padding: 6rem 0;
  background-color: var(--dark-gray);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--black);
  transform: skewY(3deg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-details a {
  text-decoration: none;
  transition: color 0.3s ease;
  color: var(--white);
}

.contact-details a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.contact-details-footer {
  margin-bottom: 2rem;
}

.contact-details-footer a {
  text-decoration: none;
  transition: color 0.3s ease;
  color: var(--white);
}

.contact-details-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

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

.contact-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-right: 1rem;
  min-width: 20px;
}

.contact-text p {
  margin: 0;
  line-height: 1.6;
}

.contact-form {
  background-color: var(--black);
  padding: 2rem;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 5px;
  background-color: var(--gold);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* MAP SECTION */
.map {
  height: 400px;
  background-color: #333;
  position: relative;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FOOTER */
footer {
  background-color: var(--black);
  padding: 4rem 0 2rem;
  position: relative;
}

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

.footer-logo {
  max-width: 80px;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: -25px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-about p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #aaa;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-gray);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--gold);
  color: var(--black);
  transform: translateY(-5px);
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-newsletter h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--gold);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #aaa;
}

.footer-contact p i {
  color: var(--gold);
  margin-right: 0.8rem;
  margin-top: 5px;
}

.newsletter-form {
  position: relative;
  margin-top: 1.5rem;
}

.newsletter-input {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--light-gray);
  border: none;
  color: var(--white);
  border-radius: 30px;
  padding-right: 50px;
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50px;
  background-color: var(--gold);
  border: none;
  border-radius: 0 30px 30px 0;
  color: var(--black);
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background-color: #c4a22f;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}

.whatsapp-nav {
  border: 2px solid var(--whatsapp-green-border);
  border-radius: 30px !important;
  padding: 0.5rem 1rem !important;
  background-color: var(--whatsapp-green) !important;
  color: var(--white) !important;
  margin-top: -12px !important;
  transition: transform 0.3s ease !important;
}

.whatsapp-nav:hover {
  background-color: var(--whatsapp-green-hover) !important;
  border-color: var(--whatsapp-green-border-hover) !important;
  transform: scale(1.05) !important;
}

.whatsapp-nav:active {
  background-color: var(--whatsapp-green-active) !important;
  border-color: var(--whatsapp-green-border-active) !important;
}

.whatsapp-nav ::before {
  content: "\f232";
  font-family: "Font Awesome 6 Brands";
  font-weight: 900;
  margin-right: 0.5rem;
}

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

.whatsapp-nav a {
  color: var(--white) !important;
  text-decoration: none !important;
}

.whatsapp-nav a:hover {
  color: var(--white) !important;
}

.whatsapp-nav a:active {
  color: var(--white) !important;
}

.whatsapp-nav a:focus {
  outline: none !important;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5b;
  text-decoration: none;
}

.justificado {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: justify;
}

/* --- Estilos del Carrusel Infinito de Logos --- */

.logo-scroller {
  max-width: 900px; /* Ancho máximo del carrusel */
  margin: auto;
  overflow: hidden; /* Oculta los logos que están fuera del área visible */
  /* Máscara para un efecto de desvanecimiento suave en los bordes */
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.logo-scroller-inner {
  display: flex; /* Pone los logos uno al lado del otro */
  gap: 2rem; /* Espacio entre logos */
  width: max-content; /* Evita que los logos se apilen verticalmente */
  /* Animación: nombre, duración, tipo, repetición */
  animation: scroll 25s linear infinite;
}

/* Pausa la animación cuando el mouse está sobre el carrusel */
.logo-scroller:hover .logo-scroller-inner {
  animation-play-state: paused;
}

/* La animación que mueve los logos de derecha a izquierda */
@keyframes scroll {
  to {
    transform: translateX(-50%); /* Mueve el contenedor la mitad de su ancho */
  }
}

/* Estilo de cada logo/item */
.client-logo-item {
  height: 60px; /* Define una altura uniforme para todos los logos */
  width: auto; /* El ancho se ajusta automáticamente para mantener la proporción */
  /* Ya no necesitamos fondo, padding, etc. */
}

/* RESPONSIVE STYLES */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.8rem;
  }

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

  .about-container {
    flex-direction: column;
  }

  .about-image {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 80px 30px;
    transition: all 0.5s ease;
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 1.5rem 0;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .whatsapp-nav {
    margin-top: 15px !important;
    text-align: center !important;
  }

  .close-nav {
    display: block;
    position: absolute;
    top: 33px;
    right: 23px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 10;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-content,
  .contact-form {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

#formulario-web-message {
  border: 1px solid var(--gold);
  border-radius: 50px;
  background: var(--black);
  padding: 1rem 1rem;
  margin: 2rem auto;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#formulario-web-message:empty {
  display: none !important;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  background: none;
}

#formulario-web-message {
  font-size: 1rem;
  color: var(--gold);
}
.newsletter-message {
  border: 1px solid var(--gold);
  border-radius: 50px;
  background: var(--black);
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  text-align: center;
}

.newsletter-message.success {
  color: var(--gold);
}

.newsletter-message.error {
  color: var(--gold);
}