/* ==========================================
   DISEÑO CLÁSICO DE JAGOS (REPLICA)
   ========================================== */

:root {
  --primary-red: #e52820;
  --secondary-red: #c91f1a;
  --dark-red: #4a0806;
  --bg-dark: #000000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-grey: #666666;
  --bg-light: #f9f9f9;
  
  --font-main: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;

  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & styles */

/* ==========================================
   BARRA PROMOCIONAL SUPERIOR - JAGOS CARGO
   ========================================== */
.top-promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(90deg, #1a1a1a 0%, #2d0a09 40%, #4a0806 60%, #1a1a1a 100%);
  padding: 10px 20px;
  position: relative;
  z-index: 1100;
  border-bottom: 2px solid var(--primary-red);
  flex-wrap: wrap;
}

.top-promo-text {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-promo-text i {
  color: var(--primary-red);
  font-size: 1rem;
  animation: pulse-truck 2s ease-in-out infinite;
}

@keyframes pulse-truck {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.top-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 30px;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(229, 40, 32, 0.45);
  white-space: nowrap;
}

.top-promo-btn i {
  font-size: 0.72rem;
  transition: transform 0.3s ease;
}

.top-promo-btn:hover {
  background: transparent;
  border-color: var(--primary-red);
  color: var(--primary-red);
  box-shadow: 0 4px 20px rgba(229, 40, 32, 0.6);
  transform: translateY(-1px);
}

.top-promo-btn:hover i {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .top-promo-bar {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
  }

  .top-promo-text {
    font-size: 0.78rem;
  }

  .top-promo-btn {
    font-size: 0.74rem;
    padding: 6px 16px;
  }
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Cabecera (Header) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px clamp(20px, 5vw, 60px);
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brand img {
  height: 60px;
  width: auto;
  transition: transform var(--transition-smooth);
}

.brand:hover img {
  transform: scale(1.03);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #555555;
  letter-spacing: 0.5px;
  padding: 5px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--primary-red);
}

.nav a:hover::after {
  width: 100%;
}

/* 2. Banner Hero */
.hero-banner {
  position: relative;
  width: 100%;
  height: 480px; /* Fixed height matching the original layout */
  overflow: hidden;
  padding: 0 !important;
  margin-top: 25px; /* Separation from the menu */
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
  overflow: hidden;
}

/* Slider Arrows Navigation */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  z-index: 20; /* above the wave separator and slides */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.slider-arrow:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(229, 40, 32, 0.4);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-arrow {
  left: 30px;
}

.next-arrow {
  right: 30px;
}

@media (max-width: 768px) {
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .prev-arrow {
    left: 15px;
  }
  .next-arrow {
    right: 15px;
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Separadores Ondulados (Waves) */
.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 15;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 65px;
}

/* 3. Secciones generales */
section {
  position: relative;
  padding: 60px 0 100px;
}

.section-title {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-red);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

/* Nuestros Servicios */
.section-services {
  background-color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #eef2f5;
  box-shadow: var(--shadow-light);
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-media {
  width: 100%;
  height: 200px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-media img {
  transform: scale(1.05);
}

.card-icon-container {
  position: absolute;
  left: 50%;
  top: 170px;
  transform: translateX(-50%);
  z-index: 20;
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-red);
  border-radius: 50%;
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.svg-heart {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.card-body {
  padding: 45px 25px 30px;
  text-align: center;
  flex-grow: 1;
}

.card-body h3 {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 15px;
}

.card-body p {
  font-size: 14px;
  color: var(--text-grey);
  line-height: 1.6;
}

/* 4. Nuestros Productos */
.section-products {
  background-color: var(--bg-light);
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: -35px auto 40px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-grey);
  padding: 0 20px;
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 0 20px;
  gap: 20px;
}

.search-box input {
  padding: 10px 15px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-body);
  width: 240px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary-red);
}

.tabs-container {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: #3b5998; /* Azul */
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background-color: rgba(229, 40, 32, 0.05);
  color: var(--primary-red);
}

.tab-btn.active {
  color: var(--primary-red);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-item {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  aspect-ratio: 4 / 3;
  transition: var(--transition-smooth);
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-light);
}

.product-item:hover img {
  transform: scale(1.08);
}

/* 5. Nuestra Empresa */
.section-company {
  background: linear-gradient(to bottom, #ffffff 70%, #4a0806 100%);
}


.company-intro {
  text-align: center;
  max-width: 800px;
  margin: -35px auto 50px;
  font-size: 16px;
  color: #444444;
  padding: 0 20px;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}

.company-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.company-icon-col {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--primary-red);
  background-color: #ffffff;
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.company-row:hover .company-icon {
  transform: rotate(5deg) scale(1.05);
}

.company-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.company-icon i {
  font-size: 38px;
  color: var(--primary-red);
  transition: transform var(--transition-smooth);
}

.company-text-col {
  flex-grow: 1;
}

.red-box {
  background-color: var(--primary-red);
  color: var(--text-light);
  padding: 25px 35px;
  border-radius: 12px;
  box-shadow: var(--shadow-heavy);
  transition: transform var(--transition-smooth);
}

.company-row:hover .red-box {
  transform: translateY(-2px);
}

.red-box h3 {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.red-box p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
}

/* 6. Sección de Contacto (Gradient y Pie) */
.section-contact {
  padding: 0;
  background-color: var(--bg-dark);
}

.contact-gradient-bg {
  background: linear-gradient(to bottom, var(--dark-red) 0%, #3a0604 50%, #110202 100%);
  padding: 80px 0 100px;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-icon-header {
  margin-bottom: 15px;
}

.phone-main-icon {
  width: 45px;
  height: 45px;
  fill: #ffffff;
  opacity: 0.85;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.contact-subtitle {
  font-family: var(--font-main);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-body {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 50px;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.info-text {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
}

.contact-form-col {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 18px;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #333333;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary-red);
}

.form-field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.form-status {
  font-size: 13px;
  font-weight: 500;
}

.form-status[data-state="success"] {
  color: #2ecc71;
}

.form-status[data-state="error"] {
  color: #e74c3c;
}

.quote-form button {
  background-color: var(--primary-red);
  color: var(--text-light);
  border: none;
  padding: 12px 35px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
}

.quote-form button:hover {
  background-color: var(--secondary-red);
}

.quote-form button:disabled {
  background-color: #777777;
  cursor: not-allowed;
}

/* 7. Bottom Footer */
.bottom-footer {
  background-color: var(--bg-dark);
  padding: 40px 0 60px;
  position: relative;

}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 45% 30% 25%;
  gap: 40px;
  align-items: start;
}

.footer-col {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-col-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-address-list {
  list-style: none;
}

.footer-address-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-phone-text {
  display: flex;
  flex-direction: column;
}

.footer-phone {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
}

.footer-phone-label {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.footer-social-text a {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.footer-social-text a:hover {
  color: var(--primary-red);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .site-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-image-container {
    height: 250px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  
  .company-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .company-icon-col {
    width: 100px;
    height: 100px;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .contact-form-col {
    padding: 20px;
  }
  
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .contact-title {
    font-size: 32px;
  }
}
