:root {
    --primary-color: #FFA500;
    --secondary-color: #0056b3;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #003366, #FFA500);
    overflow-x: hidden;
    position: relative;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/hero-section2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.chart-container {
    max-width: 700px; 
    margin: 0 auto;
    text-align: justify;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.solar-benefits {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.div-cards {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.energia-solar {
    text-align: justify;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
    height: 100%;
}

.energia-solar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 1);
}

.image-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.image-container:hover .img-paneles {
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 1);
    transform: translateX(5px);
    width:auto;
    height: auto;
    transition: transform 2s ease;
    display: block;
    transform: scale(1.1);
}

#dataTable_wrapper {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sol {
    position: absolute;
    top: 50px;
    left: 0;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #FFD700 40%, #FFA500 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px 80px rgba(255, 215, 0, 0.2);
    animation: moverSol 50s linear infinite;
    z-index: 999;
    pointer-events: none;
}

@media (max-width: 768px) {
    .sol {
        width: 50px;
        height: 50px;
        box-shadow: 0 0 30px 50px rgba(255, 215, 0, 0.2);
    }
}

@keyframes moverSol {
    0% {
        left: -120px;
        top: 80px;
    }
    50% {
        left: 50%;
        top: 30px;
        transform: translateX(-50%);
    }
    100% {
        left: 100vw;
        top: 50px;
    }
}

/* Estilos responsivos adicionales */
@media (max-width: 992px) {
    .energia-solar {
        margin-bottom: 30px;
        transform: none;
    }
    
    .solar-benefits ul h6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .feature-icon {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}


/* Estilos para la sección de ventajas con Flexbox */
.solar-benefits {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
    margin: 0 auto;
    max-width: 1200px;
}

.solar-benefits:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 1);
}

.ventajas-row {
    width: 100%;
    gap: 20px;
}

.ventaja-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px 20px;
    text-align: center;
    flex: 1 1 250px;
    max-width: 350px;
    font-weight: 500;
    color: #343a40;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ventaja-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Media queries para asegurar que los elementos estén centrados en todos los dispositivos */
@media (max-width: 768px) {
    .ventaja-item {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-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: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b956;
    transform: scale(1.1);
}

/* Efecto pulsante */
.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Para dispositivos móviles */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}


.whatsapp-container {
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 1050;
    display: flex;
    align-items: center;
}

/* Tooltip a la izquierda del botón */
.whatsapp-tooltip {
    background: #20b956;
    color: #000;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    position: relative;
    opacity: 0;
    top: -50px;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    margin-right: 36px; /*   Aumentamos separación */
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #20b956;
}

/* Mostrar tooltip SOLO al hacer hover sobre el botón */
.whatsapp-button:hover + .whatsapp-tooltip,
.whatsapp-tooltip:hover {
    opacity: 1;
    pointer-events: auto;
}

/* Botón flotante con posición relativa para el badge */
.whatsapp-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Badge rojo */
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    animation: badge-jump 4s infinite ease-in-out;
}

@keyframes badge-jump {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    93% {
        transform: translateY(-20px); /* Subida */
    }
    94% {
        transform: translateY(2px); /* Rebote hacia abajo */
    }
    95% {
        transform: translateY(-8px); /* Segundo rebote hacia arriba */
    }
    98% {
        transform: translateY(0); /* Vuelve al centro */
    }
}

.card-body {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

.img-paneles.img-fluid.rounded {

    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}


/* empresa.css */

/* Justificar texto dentro de tarjetas */
.card p,
.card li {
  text-align: justify;
}


/* Opcional: suavizar listas */
.card ul {
  padding-left: 1.5rem;
}


.card {
    text-align: justify;
    padding: 1px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
    height:auto;
}

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


.logo-empresa {
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-bottom:auto;
  }
  
  .logo-empresa:hover {
    transform: scale(1.2);
  }
  
  /* Botón elegante para el texto debajo del logo */
  .card-custom a p {
    background-color: #f8f9fa;
    border: 10px solid #475563;
    border-radius: 0.5rem;
    padding: 2px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    color: #1e5994;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
  }
  
  .card-custom a p:hover {
    background-color: #e9ecef;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Centrado dentro de las columnas */
  .card-custom .col-md-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .card-custom a p {
    font-family: 'Inter', sans-serif;
  }
  

  .solar-animado {
    color: #FFD700;
    font-weight: bold;
    animation: brillar 3s infinite ease-in-out;
    display: flex;
    align-items: center;
  }
  
  .solar-animado i {
    animation: rotarSol 5s linear infinite;
    font-size: 1.8rem;
    margin-right: 0.5rem;
    color: #FFD700;
  }
  
  /* Animación de rotación */
  @keyframes rotarSol {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Animación de brillo dorado */
  @keyframes brillar {
    0%, 100% {
      color: #FFD700;
      text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700, 0 0 20px #FFA500;
    }
    50% {
      color: #FFF8DC;
      text-shadow: 0 0 10px #FFFF99, 0 0 20px #FFD700, 0 0 30px #FFA500;
    }
  }
  


/* Estilo base de los enlaces del navbar */
.navbar .nav-link {
    color: white;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
  }
  
  /* Efecto solar al pasar el mouse */
  .navbar .nav-link:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 8px #FFD700, 0 0 12px #FFA500;
    transform: scale(1.05);
  }
  
  /* Opcional: subrayado solar que aparece al hacer hover */
  .navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .navbar .nav-link.active {
    color: #FFD700 !important;
    text-shadow: 0 0 8px #FFD700, 0 0 12px #FFA500;
    font-weight: 700;
    transform: scale(1.05);
  }
  
  .navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    opacity: 1;
  }
  

  .img-card-cover {
    height: 300px;             /* Altura ajustable */
    overflow: hidden;          /* Oculta lo que se salga */
  }
  
  .img-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* Recorte elegante sin deformar */
    display: block;
  }
  