/* Custom styles for Nevadasuncloud */
:root {
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1ebe57;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  background-color: var(--whatsapp-green);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 5px;
  transition: background-color 0.3s ease;
}

.btn-whatsapp i {
  margin-right: 5px;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  color: #fff;
}

.btn-whatsapp:focus {
  outline: 2px solid var(--whatsapp-green);
  outline-offset: 2px;
}

/* Estilos para la imagen principal del home */
.hero-image-container {
  position: relative;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-image {
  width: 90%;
  max-width: 550px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main-image:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Optimización del hero banner */
.hero-banner {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-title h1 {
  font-size: 2.2rem;
  line-height: 1.2;
}

.hero-title p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Botones del hero */
.hero-buttons {
  gap: 15px !important;
}

@media (max-width: 767px) {
  .hero-buttons {
    gap: 10px !important;
    justify-content: center;
  }
  
  .hero-buttons .btn {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    text-align: center;
  }
}

.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  background-color: var(--whatsapp-green);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--whatsapp-green);
}

.btn-whatsapp-hero:hover {
  background-color: var(--whatsapp-green-hover);
  border-color: var(--whatsapp-green-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-whatsapp-hero i {
  margin-right: 8px;
  font-size: 1.1em;
}

/* Estilos para texto vendedor - paleta cálida y positiva */
.text-gradient {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-description {
  color: #5a6c7d;
  line-height: 1.6;
}

.hero-description strong {
  color: #e67e22;
  font-weight: 600;
}

.hero-description em {
  color: #f39c12;
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 991px) {
  .hero-banner {
    min-height: auto;
    padding: 40px 0;
  }
  
  .hero-image-container {
    margin-top: 30px;
    padding: 15px;
  }
  
  .hero-main-image {
    width: 85%;
    max-width: 350px;
  }
  
  .hero-title h1 {
    font-size: 1.8rem;
  }
  
  .hero-title p {
    font-size: 0.9rem;
  }
}

/* ============================================
   HERO RESPONSIVE FIX
   ============================================ */

@media (max-width: 768px) {

  /* Reduce padding general del hero */
  .hero-banner {
    padding: 30px 0 !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Ajustes del título principal */
  .hero-title h1 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px;
    text-align: center;
  }

  .hero-title {
    padding: 0 15px !important;
    text-align: center;
  }

  .hero-title p {
    font-size: 0.92rem !important;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  /* Botones centrados */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px !important;
  }

  .hero-buttons a {
    width: 80%;
    max-width: 320px;
    text-align: center;
  }

  /* Imagen */
  .hero-image-container {
    margin-top: 20px !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
  }

  .hero-main-image {
    width: 82% !important;
    max-width: 300px !important;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

  /* Ajustar el icono decorativo de la nube */
  .hero-shape img {
    width: 90px !important;
    opacity: 0.8;
    top: -10px !important;
  }
}

/* Ajustes adicionales para móviles muy pequeños */
@media (max-width: 420px) {
  .hero-title h1 {
    font-size: 1.35rem !important;
  }

  .hero-main-image {
    max-width: 260px !important;
  }
}

/* ===========================================
   HERO MINI-CARD (mobile optimized)
   =========================================== */

@media (max-width: 991px) {

  /* Mostrar contenedor mini-card en móvil */
  .hero-mini-card {
    display: flex !important;
    justify-content: center;
    margin-top: 18px !important;
  }

  .hero-mini-card img {
    width: 78% !important;
    max-width: 260px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  }

  /* Ocultar la imagen grande original */
  .hero-image-container,
  .hero-main-image {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
  }

  /* Ajustes de espaciado y header */
  :root {
    --header-height: 70px;
  }

  .hero-banner {
    padding-top: calc(var(--header-height) + 10px) !important;
    padding-bottom: 28px !important;
  }

  .hero-title {
    text-align: center !important;
    padding: 0 15px;
  }

  .hero-title h1 {
    font-size: 1.48rem !important;
    line-height: 1.25 !important;
    margin-bottom: 10px;
  }

  .hero-title p {
    font-size: 0.95rem !important;
    margin-bottom: 16px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons a {
    width: 86%;
    max-width: 360px;
    text-align: center;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 420px) {
  .hero-mini-card img {
    width: 86% !important;
    max-width: 230px !important;
  }
}

/* Hacer que el ícono del botón Nuestras soluciones esté siempre visible */
.btn-icon .icon i {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Alineación correcta del ícono en el botón Nuestras Apps */
.btn-gred {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-gred i {
  margin-right: 8px;
}

.btn-gred:hover {
  transform: translateY(-2px);
}

/* Optimización de la sección Sobre Nosotros */
#nosotros {
  padding: 80px 0 40px 0 !important;
  scroll-margin-top: 100px;
}

#nosotros .about-card {
  padding: 20px;
  margin-bottom: 20px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#nosotros .about-card-icon {
  font-size: 2.5rem !important;
  margin-bottom: 15px;
}

#nosotros .about-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#nosotros .about-card-body h5 {
  font-size: 1.1rem;
  margin-bottom: 10px !important;
}

#nosotros .about-card-body p {
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1;
}

#nosotros .section-header h2 {
  font-size: 1.8rem;
  line-height: 1.3;
}

#nosotros .col-md-6.mt-45 {
  margin-top: 20px !important;
}

/* Igualar altura de las cards */
#nosotros .row > .col-md-6 {
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {
  #nosotros {
    padding: 60px 0 30px 0 !important;
    scroll-margin-top: 70px;
  }
  
  #nosotros .about-card {
    padding: 15px;
    margin-bottom: 15px !important;
  }
  
  #nosotros .col-md-6.mt-45 {
    margin-top: 15px !important;
  }
}

/* Optimización de la sección Servicios */
#servicios {
  padding: 80px 0 50px 0 !important;
  scroll-margin-top: 100px;
}

#servicios .service-card {
  padding: 30px 25px;
  height: 100%;
}

#servicios .circle-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

#servicios .service-body h5 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

#servicios .service-body p {
  font-size: 0.9rem;
  line-height: 1.4;
}

#servicios .section-header h2 {
  font-size: 1.8rem;
  line-height: 1.3;
}

@media (max-width: 991px) {
  #servicios {
    padding: 50px 0 40px 0 !important;
    scroll-margin-top: 70px;
  }
  
  #servicios .service-card {
    padding: 25px 20px;
  }
  
  #servicios .circle-icon {
    width: 50px;
    height: 50px;
  }
}

/* Ajustes adicionales para móviles */
@media (max-width: 768px) {
  /* Servicios móvil */
  #servicios {
    padding: 80px 0 30px 0 !important;
    scroll-margin-top: 100px;
  }
  
  #servicios .service-card {
    padding: 18px 12px;
    margin-bottom: 20px;
  }
  
  #servicios .section-header h2 {
    font-size: 1.6rem;
  }
  
  /* Nosotros móvil */
  #nosotros {
    padding: 90px 0 25px 0 !important;
    scroll-margin-top: 100px;
  }
  
  #nosotros .about-card {
    padding: 12px;
    margin-bottom: 12px !important;
  }
  
  #nosotros .about-card-icon {
    font-size: 2rem !important;
    margin-bottom: 12px;
  }
  
  #nosotros .section-header h2 {
    font-size: 1.6rem;
  }
  
  #nosotros .col-md-6.mt-45 {
    margin-top: 10px !important;
  }
  
  /* Reducir espacio entre título y texto en móvil */
  #nosotros .section-header {
    margin-bottom: 15px !important;
  }
  
  #nosotros .mt-5.mt-lg-0 {
    margin-top: 10px !important;
  }
  
  /* Soluciones móvil */
  #soluciones {
    scroll-margin-top: 100px;
    padding-top: 80px !important;
  }
}

@media (max-width: 480px) {
  /* Servicios móvil pequeño */
  #servicios {
    padding: 75px 0 25px 0 !important;
    scroll-margin-top: 90px;
  }
  
  #servicios .service-card {
    padding: 15px 10px;
  }
  
  #servicios .circle-icon {
    width: 45px;
    height: 45px;
  }
  
  /* Nosotros móvil pequeño */
  #nosotros {
    padding: 80px 0 20px 0 !important;
    scroll-margin-top: 90px;
  }
  
  #nosotros .about-card {
    padding: 10px;
  }
  
  #nosotros .about-card-icon {
    font-size: 1.8rem !important;
  }
  
  /* Reducir aún más el espacio en móviles pequeños */
  #nosotros .section-header {
    margin-bottom: 10px !important;
  }
  
  #nosotros .mt-5.mt-lg-0 {
    margin-top: 5px !important;
  }
  
  /* Soluciones móvil pequeño */
  #soluciones {
    scroll-margin-top: 90px;
    padding-top: 75px !important;
  }
}

