:root {
  --accent: #d42127;
  /* Signature red */
  --text-main: #222;
  --text-muted: #666;
  --bg-body: #ffffff;
  --bg-light: #f9f9f9;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --border-radius: 4px;
  /* Slightly sharper corners for modern look */
  --transition: all 0.3s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.5em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* --- Header & Navigation --- */
#header {
  background: transparent;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.5s;
  z-index: 997;
}

#header .logo img {
  max-height: 50px;
}

/* Ensure logo is always visible */
@media (max-width: 991px) {
  #header .logo img {
    max-height: 45px;
    display: block;
  }
}

/* Default state (Transparent over Hero): White text */
.navbar a {
  color: #fff !important;
  /* Force white on hero */
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 15px;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--accent) !important;
}

.mobile-nav-toggle {
  color: #fff;
  /* White hamburger on hero */
}

/* Scrolled State (Sticky): Red background, White text */
#header.header-scrolled {
  background: var(--accent);
  /* Red background */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

#header.header-scrolled .navbar a {
  color: #fff !important;
  /* White text on red */
}

#header.header-scrolled .navbar a:hover,
#header.header-scrolled .navbar .active,
#header.header-scrolled .navbar .active:focus,
#header.header-scrolled .navbar li:hover>a {
  color: rgba(255, 255, 255, 0.8) !important;
  /* Slightly distinct hover */
  background: rgba(0, 0, 0, 0.1);
  /* Subtle background on hover */
  border-radius: 4px;
}

#header.header-scrolled .mobile-nav-toggle {
  color: #fff;
}

/* Sales Button in Navbar */
.navbar .nav-sales-btn,
.navbar .nav-sales-btn:focus {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px !important;
  margin-left: 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(212, 33, 39, 0.2);
}

.navbar .nav-sales-btn:hover {
  background: #fff !important;
  color: var(--accent) !important;
  box-shadow: 0 6px 15px rgba(212, 33, 39, 0.3);
  transform: translateY(-2px);
  text-decoration: none !important;
}

#header.header-scrolled .navbar .nav-sales-btn {
  background: #fff;
  color: var(--accent) !important;
  box-shadow: none;
}

#header.header-scrolled .navbar .nav-sales-btn:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .navbar .nav-sales-btn {
    margin: 15px 20px !important;
    display: inline-block !important;
    text-align: center;
  }
}

/* --- Mobile Navigation --- */
.navbar-mobile {
  background: var(--accent) !important;
  /* Red background */
}

.navbar-mobile ul {
  background: var(--accent) !important;
  /* Ensure list background is also red */
}

.navbar-mobile a,
.navbar-mobile a:focus {
  color: #fff !important;
  /* White text */
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(0, 0, 0, 0.1);
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  background: #fff !important;
  color: var(--accent) !important;
}

.navbar-mobile .dropdown ul {
  background: #fff !important;
  /* Keep dropdowns white for contrast */
}

.navbar-mobile .dropdown ul a {
  color: var(--text-main) !important;
}

.navbar-mobile .dropdown ul a:hover {
  color: var(--accent) !important;
}


/* --- Hero Section --- */
#hero {
  position: relative;
  overflow: hidden;
  height: 85vh;
  /* Breathable height */
}

#hero .carousel-item {
  height: 85vh;
  min-height: 350px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#hero .carousel-item::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.3);
  /* Lighter overlay for clarity */
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: none;
  /* Removed heavy shadows */
}

#hero h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

#hero .btn-get-started {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: #fff;
  background: var(--accent);
  border: none;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(212, 33, 39, 0.4);
  /* Modern glow shadow */
}

#hero .btn-get-started:hover {
  background: #b0181d;
  color: #fff;
  transform: translateY(-3px);
  /* Lift effect */
  box-shadow: 0 12px 25px rgba(212, 33, 39, 0.5);
}

/* Specific styling for the 'Cotiza Aquí' link in Slide 2 */
#hero h2 a {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 15px 35px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(212, 33, 39, 0.5);
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

#hero h2 a:hover {
  background: #fff !important;
  color: var(--accent) !important;
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Remove utility classes that add white background/padding */
#hero .text-bg-light {
  background-color: transparent !important;
  padding: 0 !important;
  opacity: 1 !important;
}

/* --- Section Headings --- */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.section-title h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.section-title h3 span {
  color: var(--text-main);
  /* Keep consistent color */
  border-bottom: 3px solid var(--accent);
  /* Minimal accent */
  padding-bottom: 5px;
}

.section-title p {
  margin-top: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- About Section --- */
.about .icon-box {
  padding: 30px 20px;
  transition: all ease-in-out 0.3s;
  background: var(--bg-body);
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle border */
  border-radius: var(--border-radius);
}

.about .icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: transparent;
}

.about .icon-box .icon {
  margin-bottom: 15px;
  float: none;
  display: inline-flex;
  border: none;
  background: rgba(212, 33, 39, 0.1);
  color: var(--accent);
  width: 48px;
  /* Reduced from 60px */
  height: 48px;
  /* Reduced from 60px */
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.about .icon-box .icon i {
  font-size: 20px;
  /* Reduced from 24px */
  color: var(--accent);
  /* Ensure icon color stays consistent */
}

/* Remove hover effect that fills icon */
.about .icon-box:hover .icon {
  background: var(--accent);
}

.about .icon-box:hover .icon i {
  color: #fff;
}


.about .icon-box .title {
  margin-left: 0;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 20px;
}

.about .icon-box .description {
  margin-left: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: left;
  /* Better readability */
}

/* --- Products Section --- */
.products {
  background-color: var(--bg-light);
}

.card.product-card {
  border: none;
  background: #fff;
  border-radius: 8px;
  /* Slightly softer corners */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  /* Extremely subtle default shadow */
  height: 100%;
}

.card.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card.product-card img {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: opacity 0.3s;
}

.card.product-card:hover img {
  opacity: 0.95;
}

.card.product-card .card-body {
  padding: 25px;
  text-align: center;
}

.card.product-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spec {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  background: rgba(212, 33, 39, 0.05);
  /* Subtle background for specs */
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
}

.card.product-card .btn-primary {
  background-color: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 8px 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.card.product-card .btn-primary:hover {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(212, 33, 39, 0.3);
}

/* --- Contact Section --- */
.contact .info {
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: none;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  /* Center all text */
}

.contact .info i {
  font-size: 32px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 15px;
  transition: all 0.3s ease-in-out;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
  box-shadow: none;
  padding: 30px;
  border-radius: 8px;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  border: 1px solid #e1e1e1;
  /* Lighter border */
  padding: 12px 15px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent);
}

.contact .php-email-form button[type="submit"] {
  background: var(--accent);
  border: 0;
  padding: 12px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 15px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #b0181d;
  /* Darker shade of accent */
}

/* --- Footer --- */
#footer {
  background: #fff;
  padding: 30px 0 0 0;
  color: var(--text-main);
  font-size: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#footer .copyright {
  text-align: center;
  padding: 20px 0 0 0;
  background: var(--accent);
  /* Red background for copyright */
  color: #fff;
  margin-top: 20px;
  width: 100%;
}

#footer .container {
  max-width: 100%;
  padding: 0;
}

/* Floating WhatsApp enhanced styling */
.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float:hover {
  background-color: #20ba5a;
  color: #FFF;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.float i {
  line-height: 0;
  margin: 0 !important;
}

.my-float {
  margin: 0 !important;
}

/* Pulsating effect */
.float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #25d366;
  opacity: 1;
  animation: pulse-whatsapp 2s infinite;
  z-index: -1;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Responsive Adjusments */
@media (max-width: 768px) {
  #hero h2 {
    font-size: 2rem;
  }

  .section-title h3 {
    font-size: 28px;
  }
}

/* --- Video Promo Section --- */
.video-promo {
  position: relative;
  height: 600px;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
}

.video-promo .video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.video-promo .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
}

.video-promo .container-fluid {
  z-index: 3;
  padding: 0 10%;
}

.video-promo .content-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-left: 5px solid var(--accent);
}

.video-promo .content-box h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.video-promo .content-box p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

.video-promo .content-box .btn-primary {
  background: var(--accent);
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff !important;
  transition: all 0.3s ease;
}

.video-promo .content-box .btn-primary:hover {
  background: #b0181d;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 33, 39, 0.4);
}

@media (max-width: 991px) {
  .video-promo {
    height: auto;
    padding: 80px 0;
  }

  .video-promo .overlay {
    background: rgba(0, 0, 0, 0.4);
  }

  .video-promo .content-box {
    margin: 0 15px;
    padding: 30px;
  }
}