/*
Theme Name: DEnergia
Theme URI: https://denergia.com.ar
Author: Navega mi Sitio
Author URI: https://denergia.com.ar
Description: Theme basado en la industria energética.
Version: 1.0
*/

/* Definición de variables */
:root {
    --color-azul-marino: #00274D;
    --color-blanco-humo: #F5F5F5;
    --color-amarillo-oro: #FFD700;
    --color-naranja: #FF8C00;
    --color-verde-petroleo: #004D40;
    --color-texto: #333333;
}

/* Tipografías */
body {
    font-family: 'Lato', sans-serif;
    font-weight: 400; /* Normal, puedes ajustar a 300 (light) o 700 (bold) si es necesario */
    color: var(--color-texto);
}
/* Estilo para las redes sociales en el header */
header .redes-sociales a {
    color: var(--color-azul-marino); /* Blanco humo por defecto */
    font-size: 1.5rem; /* Tamaño de los íconos */
    transition: color 0.3s ease; /* Transición suave para cambio de color */
}
 
header .redes-sociales a:hover {
    color: var(--color-naranja); /* Verde petróleo al pasar el ratón */
}
/* Estilo para las redes sociales en el footer */
footer .redes-sociales a {
    color: var(--color-blanco-humo); /* Blanco humo por defecto */
    font-size: 1.5rem; /* Tamaño de los íconos */
    transition: color 0.3s ease; /* Transición suave para cambio de color */
}

footer .redes-sociales a:hover {
    color: var(--color-naranja); /* Verde petróleo al pasar el ratón */
}

.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 8px;
    margin-bottom: 1rem;

}

.social-share span {
    font-weight: bold;
    margin-right: 10px;
}

.social-share .btn {
    white-space: nowrap;
    flex-shrink: 1; 
}


.social-share > span {
    font-weight: bold;
    margin-right: 8px;
}





    /* Estilo para títulos */
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Nunito', sans-serif;
        font-weight: 700; /* Puedes ajustar el peso según prefieras */
    }

    h2.pre-title {
        font-size: 1.25em;
    }

    /* Estilo para párrafos */
    p {
        font-family: 'Lato', sans-serif;
        font-weight: 400; /* Normal, puedes ajustar a 300 (light) o 700 (bold) si es necesario */
    }

/* Header Styles */
.navbar {
    background-color: var(--color-azul-marino); /* Azul Marino para el fondo del header */
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--color-blanco-humo); /* Blanco Humo para enlaces */
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--color-amarillo-oro); /* Amarillo Oro al pasar el ratón */
}

.navbar-dark .navbar-toggler {
    border-color: var(--color-blanco-humo); /* Blanco Humo */
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28%255, %255, %255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* featured*/

.featured-news, .main-news, .latest-news, .highlighted-news , .secondary-news{
border-bottom: 1px solid #ccc;
}

.featured-news .featured-post {
    background-color: #f8f9fa;
    padding: 20px;
}

.featured-news .featured-post .featured-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #00274D; /* Color azul oscuro */
}

.featured-news .featured-post .featured-content p {
    font-size: 1.2rem;
    color: #666;
}

.featured-news .featured-post .btn-primary {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Modal para diseño Instagram */
#instagram-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#instagram-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.instagram-preview {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
}

.instagram-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,39,77,0.8), transparent);
}

.instagram-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #fff;
    text-align: left;
}

#close-instagram-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* DOLAR */ 
/* Estilos base para la banda del ticker (escritorio) */
.dolar-ticker-band {
    background-color: var(--color-verde-petroleo);
    color: var(--color-blanco-humo);
    padding: 10px 0;
    width: 100%;
}

.dolar-ticker-band .ticker-content {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    justify-content: center;
}

.dolar-ticker-band .ticker-item {
    flex: 0 0 auto;
    margin: 0 10px;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Ocultar la barra de scroll en navegadores Webkit */
.dolar-ticker-band .ticker-content::-webkit-scrollbar {
    display: none;
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
    .dolar-ticker-band .ticker-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        overflow-x: visible;
        justify-items: center;
    }
    .dolar-ticker-band .ticker-item {
        /* Reducir tamaño y padding para dispositivos móviles */
        font-size: 0.7rem;
        padding: 2px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    /* El nombre (strong) se muestra en bloque y con fuente un poco mayor */
    .dolar-ticker-band .ticker-item strong {
        display: block;
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    /* Cada <span> se muestra en bloque, uno debajo del otro */
    .dolar-ticker-band .ticker-item span {
        display: block;
    }
    .dolar-ticker-band {
        padding: 0;
    }
}





/* Redes Sociales */
.ml-auto a {
    color: var(--color-blanco-humo); /* Blanco Humo para los íconos de redes sociales */
    transition: color 0.3s ease;
}

.ml-auto a:hover {
    color: var(--color-amarillo-oro); /* Amarillo Oro al pasar el ratón */
}

/* Estilo para la sección Balance 2024 */
.balance-2024-section {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #333333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.balance-2024-section .section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

.balance-2024-section .card.balance-highlight {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.balance-2024-section .card.balance-highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}



.balance-2024-section .card-title a {
    color: #ffa500;
    font-weight: bold;
    text-decoration: none;
}

.balance-2024-section .card-title a:hover {
    text-decoration: underline;
}

.balance-2024-section .balance-list {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-2024-section .balance-list h3 {
    color: #333333;
    font-weight: bold;
    margin-bottom: 10px;
}

.balance-2024-section .balance-list ul {
    padding-left: 0;
}

.balance-2024-section .balance-list ul li {
    font-size: 1rem;
    line-height: 1.5;
}

.balance-2024-section .balance-list ul li a {
    color: #ffa500;
    text-decoration: none;
}

.balance-2024-section .balance-list ul li a:hover {
    text-decoration: underline;
}


/* Títulos de secciones */
.section-title {
    position: relative;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2rem; /* Ajusta según el diseño */
    padding: 10px 20px;
    color: #FFFFFF; /* Color del texto */
    background-color: #FF8C00; /* Fondo del título */
    margin-bottom: 20px;
    display: inline-block; /* Para ajustar el ancho al contenido */
}

.section-title::before {
    content: '';
    position: absolute;
    left: -12px; /* Controla la posición de la línea */
    top: 0;
    height: 100%;
    width: 20px; /* Ancho de la línea */
    background: #FF8C00; /* Color de la línea */
    clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); /* Crea el efecto de pico sobresaliente */
    z-index: -1;
    transform: skewX(-10deg); /* Agrega un efecto de inclinación */
}



.news-title {
    font-size: 1.5rem;
}

/* Colores */
.bg-primary {
    background-color: var(--color-azul-marino) !important;
}

.text-primary {
    color: var(--color-azul-marino) !important;
}

/* Botones */
.btn-primary {
    background-color: var(--color-naranja);
    border-color: var(--color-naranja);
}

.btn-primary:hover {
    background-color: var(--color-amarillo-oro);
    border-color: var(--color-amarillo-oro);
}
/* Contact Form 7 - Estilo Bootstrap */
.wpcf7-form .form-group {
    margin-bottom: 1rem;
}

.wpcf7-form label {
    font-weight: bold;
    color: var(--color-texto);
}

/* Estilo de los inputs y textarea */
.wpcf7-form .form-control {
    border: 1px solid var(--color-verde-petroleo);
    padding: 10px;
    border-radius: 5px;
    background-color: var(--color-blanco-humo);
    color: var(--color-texto);
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.wpcf7-form .form-control:focus {
    border-color: var(--color-amarillo-oro);
    box-shadow: 0 0 5px var(--color-amarillo-oro);
}

/* Botón de enviar */
.wpcf7-form .btn-primary {
    background-color: var(--color-naranja);
    border: none;
    padding: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.wpcf7-form .btn-primary:hover {
    background-color: var(--color-amarillo-oro);
}

/* Mensajes de éxito y error */
.wpcf7-response-output {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: var(--color-verde-petroleo);
    color: var(--color-blanco-humo);
}

.wpcf7-response-output.wpcf7-validation-errors {
    background-color: #ffcccc;
    color: #990000;
}


/* Información bursátil */



header {
    background-color: var(--color-blanco-humo);
    padding: 15px 0;
    border-bottom: 3px solid #004D40;
}

.navbar-brand img {
    max-width: 150px;
}

.text-light {
    color: var(--color-azul-marino) !important;
}





/* General Styles */
.card-title {
    font-family: 'Lato', sans-serif;
}

.highlighted-news img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.other-news img {
    max-width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}

.card {
    border: none !important;
    border-radius: 0 !important;
}

.card-body {
    background-color: var(--color-blanco-humo);
}



/* Estilos para íconos de redes sociales en el header */
.header-social-icons a {
    color: var(--color-azul-marino); /* Azul Marino */
    font-size: 1.5rem; /* Tamaño de los íconos */
    transition: color 0.3s ease; /* Transición suave para cambio de color */
}

.header-social-icons a:hover {
    color: var(--color-verde-petroleo); /* Verde Petróleo al pasar el ratón */
}

.header-social-icons a i {
    vertical-align: middle; /* Alinea los íconos al centro verticalmente */
}

/* Footer */
.footer {
    background-color: var(--color-verde-petroleo); /* Verde Petróleo */
    color: var(--color-blanco-humo); /* Blanco Humo */
}

.footer a {
    color: var(--color-blanco-humo); /* Blanco Humo para enlaces */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--color-amarillo-oro); /* Amarillo Oro al pasar el ratón */
}

.footer-logo img {
    max-width: 150px;
}

.footer h5 {
    margin-bottom: 1rem;
}

.footer address {
    font-style: normal;
    line-height: 1.5;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 10px;
}

.social-links a:hover {
    color: var(--color-amarillo-oro); /* Amarillo Oro al pasar el ratón */
}

/* SIDEBAR */
/* Estilos generales del sidebar */
.sidebar {
    padding: 20px;
    background-color: #F5F5F5; /* Fondo claro para separar del contenido principal */
    border-radius: 8px; /* Bordes redondeados */
}

/* Estilos para los títulos de los widgets */
.widget-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem; 
    color: #FF8C00; /* Naranja Energía */
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 6px;
    background-color: #004D40; /* Verde Petróleo */
    border-radius: 2px; /* Bordes redondeados para suavizar la línea */
}

/* Estilo de los enlaces dentro del sidebar */
.sidebar a {
    color: #004D40; /* Verde oscuro */
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #FF8C00; /* Cambio de color al pasar el mouse */
}

/* Estilos para listas sin estilo de puntos */
.widget ul {
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    font-weight: 600;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: #FFFFFF; /* Fondo blanco para destacar los enlaces */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.widget ul li a:hover {
    background-color: #FF8C00; /* Fondo naranja al pasar el mouse */
    color: #FFFFFF; /* Texto blanco */
}

/* Estilo para la nube de etiquetas */
.tagcloud a.tag-cloud-link {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px 5px 0 0;
    background-color: #004D40;
    color: #FFFFFF !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem; /* Tamaño ajustable */
    transition: background-color 0.3s;
}

.tagcloud a:hover {
    background-color: #FF8C00;
}

/* Estilo de los iconos de redes sociales */
.social-widget .list-inline-item a {
    font-size: 1.2rem;
    color: #004D40; /* Verde petróleo */
    transition: color 0.3s;
}

.social-widget .list-inline-item a:hover {
    color: #FF8C00; /* Cambio de color al pasar el mouse */
}


/* Contenedor principal */
#stock-ticker {
    background-color: var(--color-verde-petroleo);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Título del stock-ticker */
#stock-ticker h2.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Tabla de datos */
#stock-list table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-blanco-humo);
}

#stock-list th, #stock-list td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#stock-list th {
    background-color: var(--color-azul-marino);
    color: var(--color-blanco-humo);
    font-weight: bold;
}

#stock-list td {
    font-size: 0.9rem;
}

#stock-list .price-up {
    color: var(--color-amarillo-oro);
}

#stock-list .price-down {
    color: var(--color-naranja);
}

/* Última actualización */
#update-time {
    font-size: 0.8rem;
    font-style: italic;
    text-align: right;
}

/* Responsive: Columnas ajustadas para pantallas pequeñas */
@media (max-width: 768px) {
    #stock-list th, #stock-list td {
        font-size: 0.8rem;
        padding: 5px;
    }

    #update-time {
        text-align: center;
        margin-top: 10px;
    }
}


/* Media Query para pantallas más pequeñas (móviles) */
@media (max-width: 768px) {
    .featured-news .featured-post .featured-content h1 {
        font-size: 2rem; /* Ajusta el tamaño según lo necesario */
        line-height: 1.2; /* Ajusta el espaciado entre líneas para mejor legibilidad */
    }
}

@media (max-width: 480px) {
    .featured-news .featured-post .featured-content h1 {
        font-size: 1.8rem; /* Ajuste adicional para dispositivos muy pequeños */
        line-height: 1.2;
    }
}