/* Archivo de corrección de estilos para Lumenergía */

/* Reset básico */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container y grid system */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Columnas responsive */
[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

.col-xs-12 { width: 100%; }
.col-sm-4 { width: 33.333333%; }
.col-sm-6 { width: 50%; }
.col-md-2 { width: 16.666667%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333333%; }
.col-md-5 { width: 41.666667%; }
.col-md-7 { width: 58.333333%; }
.col-lg-4 { width: 33.333333%; }

@media (max-width: 768px) {
    [class*="col-md-"], [class*="col-lg-"], [class*="col-sm-"] {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Utilidades */
.pull-left { float: left; }
.pull-right { float: right; }
.text-center { text-align: center; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Header styles */
.header-top {
    background: #1e3a8a;
    color: white;
    padding: 15px 0;
    position: static;
    z-index: 1000;
    width: 100%;
    overflow: visible;
}

.logo {
    display: inline-block;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.header-right-info {
    color: white;
    font-size: 14px;
}

.header-right-info a {
    color: white;
    text-decoration: none;
}

.header-right-info a:hover {
    color: #ccc;
}

.list-numers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.list-numers li {
    display: flex;
    flex-direction: column;
}

.list-numers span {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Navigation */
.navbar {
    background: white;
    border: none;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: static;
    z-index: 999;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar-nav > li {
    position: relative;
}

.navbar-nav > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-nav > li > a:hover {
    background: #1e3a8a;
    color: white;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    display: none;
}

.navbar-nav > li:hover .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.sub-menu li a:hover {
    background: #f5f5f5;
}

/* Main slider */
.main-slider {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #1e3a8a;
    z-index: 1;
    clear: both;
    margin-top: 0;
}

.forcefullwidth_wrapper_tp_banner {
    width: 100%;
    height: 100%;
    position: relative;
}

.rev_slider_wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.tp-bgimg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.tp-caption h2 {
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    text-align: center;
}

/* Sections */
.sec-pad {
    padding: 80px 0;
}

.sec-title h3 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.sec-title h3 span {
    color: #1e3a8a;
}

/* About section */
.about-style-one {
    position: relative;
    z-index: 2;
    clear: both;
    background: white;
}

.about-content {
    position: relative;
    z-index: 3;
}

.about-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about-content h3 span {
    color: #1e3a8a;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-img-box {
    position: relative;
    z-index: 3;
}

.about-img-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background: #1e40af;
    color: white;
    text-decoration: none;
}

/* Services section */
.n-servicios {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
    z-index: 2;
    clear: both;
}

.n-servicios .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.n-servicios .row > div {
    margin-bottom: 30px;
    position: relative;
}

.n-servicios img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.pvd, .id, .plp {
    position: relative;
    margin-top: 20px;
    z-index: 3;
}

.back {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    z-index: 4;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box {
    position: relative;
    z-index: 5;
}

.box img {
    max-width: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.overlay {
    position: relative;
    z-index: 6;
}

.overlay h4 {
    color: #333;
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.overlay .content {
    position: relative;
    z-index: 7;
    width: 100%;
}

.overlay .content > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #1e3a8a;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: white;
    background: #1e3a8a;
    text-decoration: none;
}

/* Award winning section */
.award-winning {
    background: #1e3a8a;
    color: white;
    padding: 60px 0;
    position: relative;
    z-index: 2;
    clear: both;
}

.award-winning h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.award-winning p {
    font-size: 16px;
    line-height: 1.6;
}

.award-winning span {
    font-weight: bold;
}

/* Subscribe form */
.subscribe-form {
    display: flex;
    margin-top: 20px;
}

.subscribe-form input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.subscribe-form button {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #218838;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
    position: relative;
    z-index: 2;
    clear: both;
    margin-top: 0;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget p {
    color: #ccc;
    line-height: 1.6;
}

.footer-widget span {
    color: #1e3a8a;
    font-weight: bold;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    margin-bottom: 8px;
}

.links-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links-list a:hover {
    color: white;
}

.bottom-footer {
    background: #222;
    padding: 20px 0;
    text-align: center;
    color: #ccc;
}

/* Page wrapper fixes */
.page-wrapper {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Clear floats and fix overlapping */
.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* Fix for Revolution Slider */
.tp-revslider-mainul,
.tp-revslider-slidesli {
    position: relative !important;
    z-index: 1 !important;
}

.forcefullwidth_wrapper_tp_banner {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: -80px;
}

.rev_slider_wrapper {
    position: relative !important;
    z-index: 1 !important;
}

.rev_slider {
    position: relative !important;
    z-index: 1 !important;
}

/* Hidden sidebar fixes */
.hidden-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
}

.side-nav-toggler {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tp-caption h2 {
        font-size: 32px;
    }
    
    .header-right-info {
        margin-top: 10px;
        text-align: center;
    }
    
    .list-numers {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .main-slider {
        height: 400px;
    }
    
    .sec-pad {
        padding: 40px 0;
    }
    
    .pull-left,
    .pull-right {
        float: none;
        text-align: center;
        margin-bottom: 20px;
    }
}
