/* GLOBAL */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background-color: #fff;
}

/* COLOR PRINCIPAL */
:root {
  --main-orange: #E55A03;
  --dark-bg: #1f1f1f;
}

/* NAVBAR subrayado animado */
.navbar .nav-link {
  position: relative;
  font-weight: 500;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-orange);
  transition: width 0.2s ease;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35)),
    url("img/imghero.jpeg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(229, 90, 3, 0.35), transparent 55%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
  /* animación de entrada */
  opacity: 0;
  transform: translateY(18px);
  animation: hero-fade-in 0.9s ease-out forwards;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
}

/* Botón principal del hero usando color de marca */
.btn-hero-primary {
  background-color: var(--main-orange);
  border-color: var(--main-orange);
  color: #fff;
}

.btn-hero-primary:hover {
  background-color: #c84c02;
  border-color: #c84c02;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    text-align: left;
    padding: 3.5rem 0 3rem;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* Animación hero */
@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ICONOS */
.feature-icon,
.service-icon {
  font-size: 2.5rem;
  color: var(--main-orange);
}

@media (max-width: 768px) {
  .feature-icon { font-size: 2rem; }
  .service-icon { font-size: 2rem; }
}
/* POR QUÉ ELEGIRNOS */
.feature-box {
  border-radius: 0.75rem;
  border: 1px solid #f3f3f3;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.06);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 90, 3, 0.08);
}

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

/* SERVICIOS SECTION */
.services-section {
  background: var(--dark-bg);
}

.service-box {
  background: #2b2b2b;
  color: #fff;
  border-radius: 12px;
  border: 1px solid #333;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
  border-color: var(--main-orange);
  background-color: #333;
}

/* círculo para iconos de servicios */
.service-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 90, 3, 0.12);
}

.service-icon {
  font-size: 1.8rem;
  color: var(--main-orange);
}

/* NUESTROS TRABAJOS */
.trabajos-section h2 {
  font-size: 1.9rem;
}

.trabajos-section .carousel-inner {
  padding: 0.5rem 0;
}

/*fotos tarjetas */
.foto-carrusel {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  max-height: 340px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.foto-carrusel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}

/* Flechas del carrusel */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.55);
  border-radius: 50%;
  border: none;
}

.carousel-control-prev { left: 12px; }
.carousel-control-next { right: 12px; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* Sección de contacto */
.contact-card {
  border-radius: 0.75rem;
}

.contact-card .card-body {
  padding: 1.75rem;
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card i {
  color: var(--main-orange);
}

/* Caja del mapa */
.map-box {
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 320px;
}

/* SOBRE NOSOTROS */
.about-section {
  background: #141414;
}

.about-text {
  color: #d4d4d4;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-highlight {
  background: #1f1f1f;
  border-left: 4px solid var(--main-orange);
  border-radius: 6px;
  color: #e9e9e9;
  font-size: 1rem;
  max-width: 600px;
}

/* FOOTER */
.footer {
  background: #111;
}

/* BOTÓN FLOTANTE WHATSAPP */
.btn-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  z-index: 999;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-whatsapp i {
  font-size: 1.6rem;
}

.btn-whatsapp:hover {
  background-color: #20b558;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.45);
}

/* ANIMACIONES */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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