/* ============================================
   RESET & BASE
============================================ */

:root {
  --dark-text: #2c3e50;
  --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --light-bg: #f8f9fa;
  --primary-color: #007bff;
  --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.25);
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --secondary-color: #6c757d;
  --success-color: #28a745;
}

/* ============================================
   BASE & BODY
============================================ */

html {
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}


/* ============================================
   NAVBAR
============================================ */
.navbar {
  background-color: #152238;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.4s ease-in-out;
}

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

.navbar .nav-link {
  color: white !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: all 0.3s;
}

.navbar .nav-link:hover {
  color: #00bfff !important;
}

.navbar-brand {
  background-color: #0099ff;
  border-bottom: 4px solid #FFD700;
  padding: 0.2rem 1.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-brand h1 {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Logo responsive */
.navbar .navbar-brand.d-block.d-lg-none h1 {
  font-size: 1.5rem;
}

/* ============================================
   HEADINGS
============================================ */
section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ============================================
   HERO / CAROUSEL
============================================ */
#hero .carousel-item {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

#hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* ============================================
   SCROLL DOWN BUTTON
============================================ */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  text-decoration: none;
  z-index: 20;
}

.scroll-down span {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #fff;
  width: 0;
  height: 0;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -14px); }
  60% { transform: translate(-50%, -7px); }
}

/* ============================================
   SECTION BACKGROUND COLORS
============================================ */
#home,
#about,
#service,
#team {
  background-color: #ffffff;
}

#testimonial,
#contact {
  background-color: #ffffff;
  color: white;
}

.bg-gallery {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/gallery.jpg), no-repeat center center;
    background-size: cover;
}


/* ============================================
   GALLERY TITLE
============================================ */
h2.gallery-title {
  font-weight: 700;
  margin: 3rem 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   GALLERY ITEMS
============================================ */
.gallery-item {
  position: relative;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 5 / 6;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* ============================================
   GALLERY OVERLAY
============================================ */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(52, 142, 226, 0.39);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ============================================
   OVERLAY ICON
============================================ */
.overlay-icon {
  width: 60px;
  height: 60px;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  background-color: #007bff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ============================================
   OWL CAROUSEL CLEANUP
============================================ */
.owl-carousel,
.owl-stage,
.owl-item,
.owl-stage-outer {
  margin: 0 !important;
  padding: 0 !important;
}

.owl-nav,
.owl-dots {
  display: none !important;
}

/* ============================================
   LIGHTBOX
============================================ */
#lightbox {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 10px;
}
/* ============================================
   OBJECT FIT UTILITIES
============================================ */
.obj-fit {
  object-fit: cover;
  height: 210px;
}

/* ============================================
   SERVICE CARD
============================================ */
.service-card {
  border-radius: 1rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   DARK BUTTON STYLE
============================================ */
.btn-dark {
  background: #444;
  border: none;
}

.btn-dark:hover {
  background: #333;
}
/* ============================================
   SECTION TITLE
============================================ */
.section-title h6 {
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title h1 {
  color: #050b13;
  font-family: Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 50px;
}

/* ============================================
   MACHINE INFO CARD
============================================ */
.machine-info {
  background-color: #f2f5ff;
  color: rgb(13, 2, 75);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  height: 100%;
  justify-content: center;
  padding: 30px 25px;
  text-align: center;
}

.machine-info h5 {
  color: rgb(0, 0, 0);
  font-weight: 600;
  margin-bottom: 15px;
}

.machine-info p {
  font-family: Arial, sans-serif;
  font-style: italic;
  margin-bottom: 8px;
}

/* ============================================
   MACHINE IMAGE CONTAINER
============================================ */
.machine-img-container {
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.machine-img-container img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 767.98px) {
  .machine-info {
    padding: 20px;
    text-align: left;
  }

  .machine-img-container {
    min-height: 200px;
  }
}
/* ============================================
   BORDER UTILITIES
============================================ */
.border-primary {
  border-color: #009CFF !important;
}

.border-right {
  border-right: 4px solid #0180ff !important;
}

/* ============================================
   TESTIMONIAL BOX STYLES
============================================ */
.testimonial-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}

/* Margin aplicado cuando está dentro del carrusel */
.owl-carousel .testimonial-box {
  margin: 15px;
}

/* ============================================
   CSS VARIABLES
============================================ */


/* ============================================
   TESTIMONIAL SECTION WRAPPER
============================================ */
.testimonial-section {
  background: var(--gradient-bg);
  overflow: hidden;
  position: relative;
}

.testimonial-section::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,117.3C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

/* ============================================
   SECTION TITLE
============================================ */
.section-title {
  position: relative;
  z-index: 2;
}

.section-title h6 {
  color: var(--primary-color);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 4px;
  text-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
  text-transform: uppercase;
}

.section-title h1 {
  color: var(--dark-text);
  font-family: inherit;
  font-weight: 800;
  position: relative;
  text-shadow: 0 4px 8px rgba(44, 62, 80, 0.2);
}

.section-title h1::after {
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  border-radius: 2px;
  bottom: -10px;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
  content: '';
  height: 4px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 80px;
}

/* ============================================
   TESTIMONIAL BOX
============================================ */
.testimonial-box {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: none;
  margin: 20px;
  overflow: hidden;
  padding: 40px 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.testimonial-box::after,
.testimonial-box::before {
  content: '';
  position: absolute;
  transition: all 0.4s ease;
}

.testimonial-box::before {
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  border-radius: 20px 20px 0 0;
  height: 5px;
  left: 0;
  right: 0;
  top: 0;
}

.testimonial-box::after {
  background: radial-gradient(circle, rgba(0, 123, 255, 0.03) 0%, transparent 70%);
  height: 200%;
  right: -50%;
  top: -50%;
  transform: scale(0);
  width: 200%;
}

.testimonial-box:hover {
  transform: translateY(-15px) scale(1.02);
}

.testimonial-box:hover::after {
  transform: scale(1);
}

/* ============================================
   TESTIMONIAL CONTENT
============================================ */
.testimonial-avatar {
  border: 5px solid #ffffff;
  height: 120px;
  position: relative;
  transition: all 0.3s ease;
  width: 120px;
  z-index: 2;
}

.testimonial-box:hover .testimonial-avatar {
  transform: scale(1.1);
}

.testimonial-icon {
  animation: pulse 2s infinite;
  color: var(--success-color);
  font-size: 3rem;
  margin-bottom: 25px;
  position: relative;
  text-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
  z-index: 2;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.testimonial-text {
  color: var(--dark-text);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  margin: 30px 0;
  position: relative;
  z-index: 2;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-family: serif;
  font-size: 4rem;
  line-height: 1;
  opacity: 0.3;
  position: absolute;
}

.testimonial-text::before {
  left: -10px;
  top: -20px;
}

.testimonial-text::after {
  bottom: -30px;
  right: -10px;
}

.testimonial-author {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  z-index: 2;
}

/* ============================================
   OWL CAROUSEL NAVIGATION
============================================ */
.owl-carousel .owl-dots {
  margin-top: 40px;
  text-align: center;
}

.owl-carousel .owl-dots .owl-dot {
  background: rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  height: 15px;
  margin: 0 8px;
  transition: all 0.3s ease;
  width: 15px;
}

.owl-carousel .owl-dots .owl-dot.active {
  background: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  transform: scale(1.3);
}

.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

.owl-carousel .owl-nav button {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-medium);
  color: var(--primary-color);
  display: flex;
  font-size: 1.5rem;
  height: 60px;
  justify-content: center;
  transition: all 0.3s ease;
  width: 60px;
}

.owl-carousel .owl-nav button:hover {
  background: var(--primary-color);
  box-shadow: var(--shadow-heavy);
  color: white;
  transform: scale(1.1);
}

.owl-carousel .owl-nav .owl-next {
  right: -80px;
}

.owl-carousel .owl-nav .owl-prev {
  left: -80px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 768px) {
  .owl-carousel .owl-nav .owl-next {
    right: -30px;
  }

  .owl-carousel .owl-nav .owl-prev {
    left: -30px;
  }

  .testimonial-box {
    margin: 10px;
    padding: 30px 20px;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }
}

/* ============================================
   FADE-IN ANIMATION
============================================ */
.fade-in {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
