/**
* Template Name: eBusiness (Modified for Cuba Fix)
* Estilos adaptados a paleta tecnológica (Naranja y Azul)
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - PALETA CUBA FIX */
:root { 
  --background-color: #ffffff; 
  --default-color: #444444; 
  
  /* Colores principales */
  --heading-color: #111111; /* Negro fuerte para títulos */
  --accent-color: #fe8116;  /* Naranja Cuba Fix */
  
  --surface-color: #ffffff; 
  --contrast-color: #ffffff; 
  
  /* Variables personalizadas de la marca */
  --cuba-orange: #fe8116; 
  --cuba-blue: #44a8fd; 
  --cuba-dark: #111111; 
}

/* Nav Menu Colors */
:root {
  --nav-color: #ffffff;  
  --nav-hover-color: var(--cuba-orange); 
  --nav-mobile-background-color: #ffffff; 
  --nav-dropdown-background-color: #ffffff; 
  --nav-dropdown-color: #444444; 
  --nav-dropdown-hover-color: var(--cuba-orange); 
}

/* Color Presets */
.light-background {
  /* Fondo gris muy sutil para secciones alternas (estilo tech) */
  --background-color: #f8f9fa; 
  --surface-color: #ffffff;
}

.dark-background {
  /* Fondo Oscuro para Footer */
  --background-color: var(--cuba-dark);
  --default-color: #cccccc;
  --heading-color: #ffffff;
  --surface-color: #222222;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--cuba-blue);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--cuba-orange);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700; 
}

/* PHP Email Form Messages */
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--cuba-orange);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- ESTILOS SECCIÓN PROCESO DE COMPRA --- */
.btn-mp {
  background-color: #009EE3; 
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px; 
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-mp:hover {
  background-color: #007eb5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 158, 227, 0.3);
}

.d-grid.gap-2 {
  display: grid !important;
  gap: 0.5rem !important;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--cuba-orange), var(--cuba-blue)); 
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(254, 129, 22, 0.3);
  transition: transform 0.3s ease;
}

.process-item:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
}


.process-item h4 {
  color: #111; 
  margin-top: 15px;
}

.process-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent;
}

.process-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--cuba-orange);
}

.btn-cta-pulse {
  background-color: var(--cuba-dark);
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-cta-pulse:hover {
  background-color: var(--cuba-orange); 
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(254, 129, 22, 0.4);
}

/* Botón de WhatsApp */
.btn-whatsapp {
  display:block;
  width:70px;
  height:70px;
  color:#fff;
  position: fixed;
  right:20px;
  bottom:20px;
  border-radius:50%;
  line-height:80px;
  text-align:center;
  z-index:999;
  background-color: #25d366; 
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  color: #fff;
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.service-list li i {
  margin-right: 0.5rem;
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #000000;
  --default-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0px 2px 15px rgba(255, 255, 255, 0.05);
}

.header .logo { line-height: 1; }
.header .logo img { max-height: 50px; margin-right: 8px; }

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 5px;
  text-shadow: none; 
}

.header .logo h1 span {
  color: var(--cuba-orange); 
  font-style: italic;
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: #ffffff;
  background: var(--cuba-orange);
  font-size: 17px;
  font-weight: 500;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 4px 6px rgba(254, 129, 22, 0.3);
  border: none;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: #ffffff;
  background: var(--cuba-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(68, 168, 253, 0.4);
}

@media (max-width: 1200px) {
  .header .logo { order: 1; }
  .header .logo h1 { font-size: 24px; }
  .header .btn-getstarted { order: 2; margin: 0 15px 0 0; padding: 6px 15px; }
  .header .navmenu { order: 3; }
}

.scrolled .header { box-shadow: 0px 0 18px rgba(255, 255, 255, 0.1); }

.header .navmenu a, 
.header .navmenu a:focus {
  color: #ffffff !important; 
}

.header .navmenu a:hover,
.header .navmenu li:hover>a,
.header .navmenu .active, 
.header .navmenu .active:focus {
  color: var(--cuba-orange) !important; 
}

.header .navmenu>ul>li>a:before {
  background-color: var(--cuba-orange) !important; 
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
  .navmenu li { position: relative; }
  .navmenu>ul>li { white-space: nowrap; padding: 15px 14px; }
  .navmenu>ul>li:last-child { padding-right: 0; }

  .navmenu a, .navmenu a:focus {
    padding: 0 2px;
    font-size: 17px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i, .navmenu a:focus i {
    font-size: 12px; line-height: 0; margin-left: 5px; transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 3px;
    bottom: -15px;
    left: 0;
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
    border-radius: 10px;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:last-child a { padding-right: 0; }

  .navmenu .dropdown ul {
    margin: 0; padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block; position: absolute; visibility: hidden;
    left: 14px; top: 130%; opacity: 0;
    transition: 0.3s; border-radius: 10px; z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--cuba-blue);
  }

  .navmenu .dropdown ul li { min-width: 200px; }
  .navmenu .dropdown ul a { padding: 10px 20px; font-size: 15px; text-transform: none; color: var(--nav-dropdown-color) !important; }
  .navmenu .dropdown ul a:hover, .navmenu .dropdown ul .active:hover, .navmenu .dropdown ul li:hover>a {
    color: var(--cuba-orange) !important; background-color: #fcfcfc;
  }
  .navmenu .dropdown:hover>ul { opacity: 1; top: 100%; visibility: visible; }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: #fff; font-size: 28px; line-height: 0; margin-right: 10px; cursor: pointer; transition: color 0.3s;
  }
  .navmenu { padding: 0; z-index: 9997; }
  .navmenu ul {
    display: none; list-style: none; position: absolute; inset: 60px 20px 20px 20px;
    padding: 10px 0; margin: 0; border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto; transition: 0.3s; z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-dropdown-color) !important; padding: 10px 20px; font-family: var(--nav-font);
    font-size: 17px; font-weight: 500; display: flex; align-items: center; justify-content: space-between;
    white-space: nowrap; transition: 0.3s;
  }
  .mobile-nav-active .navmenu {
    position: fixed; overflow: hidden; inset: 0;
    background: rgba(17, 17, 17, 0.95); 
    transition: 0.3s;
  }
  .mobile-nav-active .navmenu a { color: #fff !important; }
  .mobile-nav-active .navmenu>ul { display: block; background: transparent; box-shadow: none; }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--cuba-dark);
  font-size: 14px;
  position: relative;
}
.footer .footer-top { padding-top: 50px; }
.footer .social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px; color: #ffffff; margin-right: 10px;
  transition: 0.3s; background: rgba(255,255,255,0.05);
}
.footer .social-links a:hover {
  color: #fff; background: var(--cuba-orange); border-color: var(--cuba-orange);
}
.footer h4 {
  font-size: 16px; font-weight: bold; position: relative; padding-bottom: 12px; color: #ffffff;
}
.footer .copyright {
  padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #cccccc;
}
.footer .credits { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.footer .credits a { color: var(--cuba-blue); }

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed; inset: 0; z-index: 999999; overflow: hidden;
  background: #ffffff; transition: all 0.6s ease-out;
}
#preloader:before {
  content: ""; position: fixed;
  top: calc(50% - 30px); left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--cuba-orange) transparent var(--cuba-blue) transparent;
  border-radius: 50%; width: 60px; height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}
@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Global Sections & Titles
--------------------------------------------------------------*/
section, .section {
  color: var(--default-color); background-color: var(--background-color);
  padding: 60px 0; scroll-margin-top: 90px; overflow: clip;
}
.section-title { text-align: center; padding-bottom: 60px; position: relative; }
.section-title h2 {
  font-size: 32px; font-weight: 700; margin-bottom: 20px; padding-bottom: 20px;
  position: relative; color: var(--heading-color);
}
.section-title h2:after {
  content: ""; position: absolute; display: block;
  width: 50px; height: 4px; background: var(--cuba-orange);
  left: 0; right: 0; bottom: 0; margin: auto; border-radius: 10px;
}
.section-title p { margin-bottom: 0; color: #666; }

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding-top: 121px; position: relative; overflow: hidden; padding-bottom: 119px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}
.hero .hero-content h2 {
  font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2;
  color: var(--heading-color);
}
.hero .hero-content h2 span { color: var(--cuba-orange); }
@media (max-width: 992px) { .hero .hero-content h2 { font-size: 2.5rem; } }
.hero .hero-content p { font-size: 1.1rem; margin-bottom: 2rem; color: #555; }
.hero .hero-content .hero-btns { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.hero .hero-content .hero-btns .btn {
  padding: 12px 30px; font-weight: 600; border-radius: 50px; transition: all 0.3s ease;
}
.hero .hero-content .hero-btns .btn-primary {
  background-color: var(--cuba-orange); border-color: var(--cuba-orange); color: #ffffff;
  box-shadow: 0 4px 15px rgba(254, 129, 22, 0.3);
}
.hero .hero-content .hero-btns .btn-primary:hover {
  background-color: var(--cuba-blue); border-color: var(--cuba-blue); transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(68, 168, 253, 0.4);
}
.hero .hero-content .hero-btns .btn-outline {
  background-color: transparent; border: 2px solid var(--cuba-blue); color: var(--cuba-blue);
}
.hero .hero-content .hero-btns .btn-outline:hover {
  background-color: var(--cuba-blue); color: #ffffff;
}

.hero .hero-content .hero-stats {
  display: flex; flex-direction: row; align-items: center; gap: 3rem; margin-top: 2.5rem;
}
.hero .hero-content .hero-stats .stat-item {
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero .hero-content .hero-stats .stat-item h3 {
  font-size: 2.5rem; font-weight: 800; color: var(--cuba-blue); margin-bottom: 0.2rem; line-height: 1;
}
.hero .hero-content .hero-stats .stat-item p {
  font-size: 0.85rem; color: #555555; margin: 0; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .hero .hero-content .hero-stats { justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
  .hero .hero-content .hero-stats .stat-item { align-items: center; text-align: center; min-width: 100px; }
  .hero .hero-content .hero-stats .stat-item h3 { font-size: 2rem; }
}

.hero .hero-image img {
  width: 100%; height: auto; border-radius: 20px; transition: transform 0.5s ease;
  border: 4px solid var(--cuba-blue);
}
.hero .hero-image img:hover { transform: scale(1.03); }

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .about-meta {
  color: var(--cuba-orange); font-weight: 600; margin-bottom: 1rem;
  display: inline-block; background: rgba(254, 129, 22, 0.1);
  padding: 5px 15px; border-radius: 20px;
}
.about .feature-list li i { color: var(--cuba-blue); font-size: 1.25rem; }
.about .image-wrapper .experience-badge {
  position: absolute; bottom: 5%; right: 5%;
  background-color: var(--cuba-blue); color: #ffffff;
  padding: 1.5rem; border-radius: 20px; text-align: center; min-width: 200px;
  animation: experience-float 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(68, 168, 253, 0.4);
}
.about .image-wrapper .experience-badge h3 { color: #ffffff; }

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; min-height: 320px; padding: 60px 30px 80px;
  background-color: #ffffff; border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: all 0.3s ease; position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.services .service-item::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
  background-color: var(--cuba-orange); border-top-left-radius: 20px; border-top-right-radius: 20px;
}
.services .service-item .service-icon {
  width: 72px; height: 72px;
  background-color: rgba(68, 168, 253, 0.15); /* Fondo celestito suave */
  color: var(--cuba-blue); font-size: 34px; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease; border-radius: 50%;
}
.services .service-item h3 {
  font-size: 26px; font-weight: 700; margin-bottom: 15px; color: var(--heading-color);
}
.services .service-item:hover {
  transform: translateY(-10px); box-shadow: 0 14px 30px rgba(254, 129, 22, 0.15);
  border-color: var(--cuba-orange);
}
.services .service-item:hover .service-icon {
  transform: scale(1.1); background-color: var(--cuba-orange); color: #fff;
}

/* Clases específicas para botones de producto */
.btn-product {
    margin-top: 15px;
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 15px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
}
.btn-buy {
    background-color: var(--cuba-orange);
    color: white;
}
.btn-buy:hover {
    background-color: var(--cuba-blue);
    color: white;
}
.btn-consult {
    border: 1px solid var(--cuba-blue);
    color: var(--cuba-blue);
}
.btn-consult:hover {
    background-color: var(--cuba-blue);
    color: white;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-box {
  background-color: #000000; /* Fondo negro */
  color: #ffffff; 
  padding: 3rem; 
  border-radius: 20px; 
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Sombra oscura para acompañar el negro */
}

.contact .info-box h3, .contact .info-box p, .contact .info-box a,
.contact .info-item .content h4, .contact .info-item .content p { color: #ffffff; }

.contact .info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 2rem; }
.contact .info-item:last-child { margin-bottom: 0; }
.contact .info-item .icon-box {
  width: 40px; height: 40px; background-color: #ffffff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.contact .info-item .icon-box i { font-size: 18px; color: var(--cuba-orange); }
.contact .info-item:hover .icon-box { background-color: var(--cuba-orange); }
.contact .info-item:hover .icon-box i { color: #ffffff; }

.contact .info-item .content { padding-top: 5px; }
.contact .info-item .content h4 {
  color: #ffffff; font-size: 18px; margin-bottom: 5px; font-weight: 700; line-height: 1.2;
}
.contact .info-item .content p {
  margin-bottom: 0.25rem; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.9);
}
.contact .info-item .content a { color: #ffffff; text-decoration: underline; }

.contact .contact-form {
  background-color: #ffffff; padding: 3rem; border-radius: 20px; height: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.05);
}
.contact .contact-form h3 { color: var(--heading-color); margin-bottom: 1.5rem; }
.contact .contact-form .form-control { border-radius: 10px; }
.contact .contact-form .form-control:focus { box-shadow: none; border-color: var(--cuba-orange); }
.contact .contact-form .btn {
  background-color: var(--cuba-orange); color: #ffffff; padding: 1rem 2rem;
  border-radius: 50px; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: 0.3s; font-weight: 600; border: none;
}
.contact .contact-form .btn:hover {
  background-color: var(--cuba-blue); transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(68, 168, 253, 0.4);
}
/*--------------------------------------------------------------
# Helpers
--------------------------------------------------------------*/
.text-orange { color: var(--cuba-orange); }
.bg-orange { background-color: var(--cuba-orange); }


/*--------------------------------------------------------------
# Galería Estilo Lightbox
--------------------------------------------------------------*/
.gallery .gallery-item {
  overflow: hidden;
  border-radius: 15px;
  border: 3px solid #fff; 
  box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
  cursor: pointer; 
  position: relative;
}

.gallery .gallery-item img {
  transition: all 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.9);
}