/* ============================================
   SERVIMAQUINAS - ESTILOS COMPLETOS
   Versión: 2.0 - Refactorizada
   ============================================ */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e5f8e;
  --primary-dark: #124466;
  --primary-light: #e0eef7;
  --primary-bg: #f9fbfd;
  --text-dark: #1e1e2a;
  --text-gray: #4a6270;
  --text-light: #6c8695;
  --border-light: #eaf0f5;
  --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
  --radius-sm: 20px;
  --radius-md: 24px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --transition: 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.5;
  scroll-behavior: smooth;
  padding-top: 80px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
}
h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.highlight {
  color: var(--primary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ===== HEADER / NAVBAR ===== */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease-in-out;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.tagline {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a6e7a;
  margin-left: 8px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c53a2;
  transition: color 0.2s;
}
.nav-menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 80px;
  background: var(--primary-bg);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  text-align: center;
}

/* ===== VIDEO CARRUSEL ===== */
.video-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0a0a15;
}

.video-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  overflow: hidden;
  background: #0a0a15;
}

@media (min-width: 1024px) {
  .video-carousel-container {
    max-height: 75vh;
  }
}
@media (max-width: 768px) {
  .video-carousel-container {
    max-height: 60vh;
  }
}
@media (max-width: 480px) {
  .video-carousel-container {
    max-height: 50vh;
  }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  background: #0a0a15;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.video-slide-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a15;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-slide-wrapper video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #0a0a15;
}

/* Video Title Overlay */
.video-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 30px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    transparent 100%
  );
  color: white;
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
  text-align: center;
}

/* Control Button */
.slide-control-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: clamp(50px, 8vw, 80px);
  height: clamp(50px, 8vw, 80px);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 6;
  opacity: 0.95;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.slide-control-btn:hover {
  background: rgba(30, 95, 142, 0.9);
  transform: translate(-50%, -50%) scale(1.15);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 40px rgba(30, 95, 142, 0.4);
}

.slide-control-btn i {
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: clamp(34px, 5vw, 50px);
  height: clamp(34px, 5vw, 50px);
  border-radius: 50%;
  font-size: clamp(0.8rem, 1.5vw, 1.3rem);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.carousel-btn:hover {
  background: rgba(30, 95, 142, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
  left: clamp(8px, 2vw, 20px);
}
.carousel-next {
  right: clamp(8px, 2vw, 20px);
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: clamp(12px, 3vh, 25px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(8px, 1.5vw, 12px);
  z-index: 10;
  padding: clamp(5px, 1vh, 8px) clamp(12px, 2vw, 16px);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
}

.carousel-dot {
  width: clamp(8px, 1.2vw, 12px);
  height: clamp(8px, 1.2vw, 12px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.3);
}

.carousel-dot.active {
  background: var(--primary);
  border-color: white;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(30, 95, 142, 0.5);
}

/* ===== FEATURED MACHINE ===== */
.featured-machine {
  width: 100%;
  position: relative;
}

.machine-full-bg {
  width: 100%;
  min-height: 550px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  transition: background-image 0.8s ease-in-out;
}

.machine-full-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.machine-overlay-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  display: flex;
  justify-content: flex-start;
}

.machine-info-box {
  max-width: 550px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border-left: 5px solid #386b9e;
  margin-right: 600px;
}

.machine-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #8fc1f4;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.machine-info-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  color: white;
}

.machine-info-box h2 .highlight {
  color: #8fc1f4;
  background: none;
}

.machine-info-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

.machine-info-box .btn-primary {
  background: #8fc1f4;
  color: #153d55;
  border: none;
  padding: 12px 28px;
}
.machine-info-box .btn-primary:hover {
  background: #ffcd38;
  transform: translateX(5px);
}
.machine-info-box .btn-primary i {
  margin-left: 8px;
  transition: transform 0.2s;
}
.machine-info-box .btn-primary:hover i {
  transform: translateX(5px);
}

/* ===== HISTORY ===== */
.history {
  padding: 80px 0;
}

.history-grid {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.history-text {
  flex: 1.2;
}
.history-text p {
  margin-bottom: 1rem;
  color: #334e5c;
}

.history-image {
  flex: 0.8;
}
.history-image img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Mission & Vision */
.mission-vision {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.card-mv {
  flex: 1;
  background: #f4f8fc;
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: 0.2s;
}
.card-mv i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Values */
.values {
  margin-top: 2rem;
}
.values h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.values-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.value-item {
  background: white;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-light);
}
.value-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* ===== SERVICES ===== */
.services {
  background: #fafcff;
  padding: 80px 0;
}

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

.service-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s;
  border: 1px solid #eef3f8;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
.service-card i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

/* ===== BRANDS ===== */
.brands {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.brands .section-header p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0.8rem auto 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.brand-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: default;
}
.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
  border-color: #cde0ec;
}

.brand-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.brand-logo img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
}
.brand-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #1a2e3a;
}
.brand-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== USED MACHINERY ===== */
.used-machinery {
  padding: 80px 0;
  background: #f5f8fc;
}
.used-machinery .section-header p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0.8rem auto 0;
}

.machinery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.machinery-card {
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid #e8edf2;
}
.machinery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.machinery-gallery {
  position: relative;
}

.main-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #2c3e50;
  cursor: pointer;
  position: relative;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.main-image:hover {
  transform: scale(1.02);
}

.click-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.thumbnail-container {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.thumbnail.active {
  border-color: var(--primary);
  transform: scale(0.95);
}
.thumbnail:hover {
  border-color: #ffd966;
}

.machinery-content {
  padding: 1.5rem;
}
.machinery-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a2e3a;
  line-height: 1.4;
}
.machinery-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.machinery-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.min-order {
  background: #eef2f5;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.location {
  display: flex;
  align-items: center;
  gap: 4px;
}
.location::before {
  content: "📍";
  font-size: 0.7rem;
}

.seller-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eef2f5;
  font-size: 0.8rem;
}
.seller-years {
  color: #2c7a4a;
  font-weight: 500;
}
.verified {
  color: #27ae60;
  font-weight: 500;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25d366;
  color: white;
  padding: 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-whatsapp i {
  font-size: 1.2rem;
}
.btn-whatsapp:hover {
  background: #128c7e;
  transform: scale(1.02);
}

/* ===== MODAL / LIGHTBOX ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.modal-content-container {
  position: relative;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem 1.2rem;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
}
.modal-nav:hover {
  background: rgba(30, 95, 142, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.modal-prev {
  left: 20px;
}
.modal-next {
  right: 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 11;
  transition: 0.2s;
}
.modal-close:hover {
  color: #ffd966;
}

.modal-caption {
  text-align: center;
  color: white;
  font-size: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.modal-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  z-index: 11;
}

/* ===== CONTACT ===== */
.contact {
  padding: 80px 0;
  background: #ffffff;
}

.contact-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  background: #f1f6fa;
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.contact-info p {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
}
.social-links a {
  background: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  transition: 0.2s;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid #cfdfe8;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 1rem;
}
.contact-form button {
  width: fit-content;
}

.form-message {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: #0c2a38;
  color: #dfecf2;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo h3 {
  color: white;
  margin-bottom: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: #cbdde6;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #2c4b5a;
  padding-top: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .machine-info-box {
    margin-right: 200px;
    max-width: 450px;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    background: white;
    width: 80%;
    height: calc(100vh - 75px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.8rem;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
  }
  .nav-menu.active {
    left: 0;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }

  .history-grid {
    flex-direction: column;
  }
  .contact-grid {
    flex-direction: column;
  }

  .logo-img {
    height: 50px;
  }
  .logo-text {
    font-size: 1.2rem;
  }

  .footer-logo {
    align-items: center;
    text-align: center;
  }
  .footer-logo-img {
    height: 60px;
  }

  .machine-info-box {
    margin-right: 0;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .machine-full-bg {
    min-height: 500px;
  }
  .machine-info-box {
    padding: 1.8rem;
    margin-left: 0;
    margin-right: 0;
  }
  .machine-info-box h2 {
    font-size: 1.8rem;
  }
  .machine-badge {
    font-size: 0.65rem;
  }

  .machinery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-nav {
    font-size: 1.5rem;
    padding: 0.6rem 1rem;
  }
  .modal-prev {
    left: 5px;
  }
  .modal-next {
    right: 5px;
  }
  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  .brand-card {
    padding: 1.2rem 0.8rem;
  }
  .brand-logo {
    height: 70px;
  }

  .machinery-content h3 {
    font-size: 1rem;
  }
  .machinery-price {
    font-size: 1.3rem;
  }

  .video-carousel-container {
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 480px) {
  .video-carousel {
    border-radius: 14px;
  }
  .video-carousel-container {
    aspect-ratio: 9 / 16;
    max-height: 50vh;
  }
  .video-title-overlay {
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}
/* ============================================
   CONTROLES DE VIDEO - VISIBILIDAD
   ============================================ */

/* Botón de control - visible por defecto (mostrando poster) */
.video-slide-wrapper .slide-control-btn {
  opacity: 0.95;
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%) scale(1);
}

/* Al reproducir, se oculta después de 2 segundos */
.video-slide-wrapper .slide-control-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Al hover del wrapper, siempre visible */
.video-slide-wrapper:hover .slide-control-btn {
  opacity: 0.95 !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.video-slide-wrapper .slide-control-btn:hover {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.15) !important;
}

/* Botones de navegación del carrusel */
.carousel-btn {
  opacity: 0.5;
  transition: all 0.3s ease;
}

.video-carousel:hover .carousel-btn {
  opacity: 0.8;
}

.carousel-btn:hover {
  opacity: 1 !important;
  background: rgba(30, 95, 142, 0.9);
  transform: translateY(-50%) scale(1.1);
}

/* Dots */
.carousel-dot {
  opacity: 0.6;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  opacity: 1;
}

.carousel-dot.active {
  opacity: 1;
  background: #1e5f8e;
  border-color: white;
  transform: scale(1.3);
}

/* RESPONSIVE - Móviles siempre visibles */
@media (max-width: 768px) {
  .video-slide-wrapper .slide-control-btn {
    opacity: 0.9 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .carousel-btn {
    opacity: 0.6;
  }
}

@media (max-width: 480px) {
  .video-slide-wrapper .slide-control-btn {
    opacity: 0.9 !important;
    pointer-events: auto !important;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Botones de navegación del carrusel - siempre visibles pero más sutiles */
.carousel-btn {
  opacity: 0.3;
  transition: all 0.3s ease;
}

.video-carousel:hover .carousel-btn {
  opacity: 0.7;
}

.carousel-btn:hover {
  opacity: 1 !important;
  background: rgba(30, 95, 142, 0.9);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Dots - siempre visibles pero más sutiles */
.carousel-dot {
  opacity: 0.6;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  opacity: 1;
}

.carousel-dot.active {
  opacity: 1;
}

/* Título del video - siempre visible */
.video-title-overlay {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Botón de reproducción central - visible al hover */
.video-slide-wrapper .slide-control-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.video-slide-wrapper:hover .slide-control-btn {
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
}

.video-slide-wrapper .slide-control-btn:hover {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.15);
}

/* RESPONSIVE - Ajustes para móviles */
@media (max-width: 768px) {
  .video-slide-wrapper .slide-control-btn {
    opacity: 0.7;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  .carousel-btn {
    opacity: 0.5;
  }

  .video-carousel .carousel-btn {
    opacity: 0.6;
  }
}

@media (max-width: 480px) {
  .video-slide-wrapper .slide-control-btn {
    opacity: 0.8;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .carousel-btn {
    opacity: 0.6;
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
}
/* ============================================
   NAVBAR REDUCIDA - 60% DE ALTURA
   ============================================ */

/* HEADER / NAVBAR - Tamaño reducido */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out;
  padding: 0; /* Eliminar padding del header */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0; /* Reducido de 18px a 8px */
  min-height: 60px; /* Altura mínima reducida */
}

/* LOGO - Reducido */
.logo a {
  display: flex;
  align-items: center;
  gap: 8px; /* Reducido de 10px a 8px */
  text-decoration: none;
}

.logo-img {
  height: 48px; /* Reducido de 80px a 48px (60%) */
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.logo-text {
  font-size: 1.1rem; /* Reducido de 1.5rem a 1.1rem */
  font-weight: 800;
  color: #1e5f8e;
}

.tagline {
  font-size: 0.65rem; /* Reducido de 0.8rem a 0.65rem */
  font-weight: 500;
  color: #5a6e7a;
  margin-left: 4px;
}

/* NAV MENU - Enlaces reducidos */
.nav-menu {
  display: flex;
  gap: 1.5rem; /* Reducido de 2rem a 1.5rem */
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem; /* Reducido de 1.1rem a 0.9rem */
  color: #2c53a2;
  transition: color 0.2s;
  padding: 6px 0;
  position: relative;
}

.nav-menu a:hover {
  color: #1e5f8e;
}

/* MENU TOGGLE (hamburguesa) - Reducido */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem; /* Reducido de 1.8rem a 1.4rem */
  cursor: pointer;
  color: #1e5f8e;
  padding: 4px 8px;
}

/* BODY PADDING - Ajustado a la nueva altura */
body {
  padding-top: 60px; /* Reducido de 80px a 60px */
}

/* RESPONSIVE - Móvil */
@media (max-width: 900px) {
  .navbar {
    padding: 6px 0;
    min-height: 55px;
  }

  .logo-img {
    height: 40px; /* Aún más pequeño en móvil */
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .tagline {
    display: none; /* Ocultar tagline en móvil */
  }

  .nav-menu {
    position: fixed;
    top: 55px; /* Ajustado a la nueva altura */
    left: -100%;
    background: white;
    width: 80%;
    height: calc(100vh - 55px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    align-items: flex-start;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
  }

  body {
    padding-top: 55px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 4px 0;
    min-height: 50px;
  }

  .logo-img {
    height: 34px;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .nav-menu {
    top: 50px;
    height: calc(100vh - 50px);
  }

  body {
    padding-top: 50px;
  }

  .menu-toggle {
    font-size: 1.3rem;
  }
}

/* ============================================
   SCROLL BEHAVIOR - Navbar ocultable
   ============================================ */

header.hidden {
  transform: translateY(-100%);
}

header.visible {
  transform: translateY(0);
}

/* Transición suave */
header {
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease;
}

/* Sombra más pronunciada al hacer scroll */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
/* ============================================
   BOTÓN LLAMATIVO DE ALQUILER - VERSIÓN IMPACTANTE
   ============================================ */

.btn-alquiler-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff6b35, #ff4500, #ff6b35);
  background-size: 200% 200%;
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
  position: relative;
  overflow: hidden;
  animation: gradientShine 3s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Efecto de brillo en movimiento */
.btn-alquiler-nav::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  animation: shineMove 3s ease-in-out infinite;
}

/* Efecto de borde brillante */
.btn-alquiler-nav::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff6b35, #ffd700, #ff4500);
  background-size: 300% 300%;
  z-index: -1;
  animation: borderGlow 2s ease-in-out infinite;
  filter: blur(4px);
  opacity: 0.7;
}

/* Animaciones */
@keyframes gradientShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes shineMove {
  0% {
    transform: rotate(0deg) translateX(-100%);
  }
  100% {
    transform: rotate(360deg) translateX(100%);
  }
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Efecto hover */
.btn-alquiler-nav:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 35px rgba(255, 69, 0, 0.6);
  color: white !important;
}

.btn-alquiler-nav:hover .badge-hot {
  animation: pulse 0.5s ease-in-out infinite alternate;
}

/* Ícono cohete animado */
.btn-alquiler-nav i {
  font-size: 1.1rem;
  animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-4px) rotate(5deg);
  }
}

/* Badge "HOT" */
.btn-alquiler-nav .badge-hot {
  font-size: 0.8rem;
  animation: pulse 1.5s ease-in-out infinite;
  display: inline-block;
}

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

/* Estado activo (cuando estás en la página de alquiler) */
.btn-alquiler-nav.active {
  background: linear-gradient(135deg, #ffd700, #ff6b35, #ffd700);
  background-size: 200% 200%;
  animation: gradientShine 2s ease-in-out infinite;
  box-shadow: 0 4px 30px rgba(255, 215, 0, 0.5);
}

.btn-alquiler-nav.active::after {
  background: linear-gradient(135deg, #ffd700, #ff4500, #ffd700);
  background-size: 300% 300%;
  animation: borderGlow 1.5s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .btn-alquiler-nav {
    padding: 14px 20px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    animation: none;
  }

  .btn-alquiler-nav::before {
    animation: none;
  }

  .btn-alquiler-nav::after {
    animation: none;
  }

  .btn-alquiler-nav i {
    animation: none;
  }

  .btn-alquiler-nav .badge-hot {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn-alquiler-nav {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}
