:root {
  --primary-red: #ff0000;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.navbar-brand {
  font-size: 1rem;
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 0.85rem;
  }
}

@media (max-width: 350px) {
  .navbar-brand {
    font-size: 0.7rem;
  }
}

@media (max-width: 200px) {
  .navbar-brand {
    font-size: 0.6rem;
  }
}

@media (min-width: 992px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
}

.navbar-brand span {
  color: var(--primary-red);
  font-weight: bold;
}
.navbar-toggler {
  border: none;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url('../img/icons/burger-icon.png');
}

.section-offset {
  margin-top: 50px; /* altura del navbar */
}

/* Hero */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)), 
              url("../img/hero/hero.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero h1 span {
  color: var(--primary-red);
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
#services {
  scroll-margin-top: 70px;
}
/* Cards */
.service-card {
  border-radius: 20px;
  border: 1px solid #eee;
  padding: 30px;
  background: #fff;
  height: 100%;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card h5 {
  color: var(--primary-red);
}
.service-card.mantenimiento {
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), 
              url('../img/index/25.webp') center/cover;
}
.service-card.pintura {
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), 
              url('../img/index/19.webp') center/cover;
}
.service-card.repair {
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), 
              url('../img/index/32.webp') center/cover;
}
.service-card.emergency {
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), 
              url('../img/index/7.webp') center/cover;
}
.service-card.custom {
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), 
              url('../img/index/21.webp') center/cover;
}

/* Map */
.map-container iframe {
  border-radius: 20px;
  width: 100%;
  height: 350px;
  border: none;
}

/* CTA */
.cta {
  background-color: var(--primary-red);
  color: #fff;
  border-radius: 30px;
  padding: 60px 30px;
}

/* Footer */
footer {
  background: #111;
  color: #aaa;
  padding: 40px 0;
  margin-top: auto;
}

footer .small {
  font-size: 0.750rem;
  color: #999;
}

footer a.small {
  color: #666;
  transition: color 0.3s ease;
}

/*Contact form*/

.btn-send-form {
  background-color: #ff0000 !important;
}

.before-after-card {
  position: relative;
  overflow: hidden;
}

.before-after-card img {
  transition: transform 0.4s ease;
}

.before-after-card:hover img {
  transform: scale(1.05);
}

.label {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.label.before {
  background-color: #333;
}

.label.after {
  background-color: var(--primary-red);
}

.before-after-card {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
}

.before-after-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-us-list li {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #222;
}
#mission-vision-values h5 {
  color: var(--bs-primary);
}

/* Typewriter effect */
.cursor {
  display: inline-block;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* FAQ Accordion */
.accordion-button {
  background-color: #fff;
  font-weight: 600;
  color: #222;
}

.accordion-button:not(.collapsed) {
  background-color: #ff0000;
  color: #fff;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff0000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
