:root {
    --primary-color: #e3b32a;
    --secondary-color: #343433;
    --dark-color: #343433;
    --light-color: #f8f9fa;
    --primary-hover-color: #c99a1b;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.main-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.main-nav .nav-link:hover, .main-nav .nav-link.active {
    color: var(--primary-color);
}
#whatsapp-link {
    padding: 8px 16px;
    font-size: 14px;
}

#whatsapp-link i {
    font-size: 16px;
}
.btn-quote {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

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

.top-nav {
    background-color: var(--secondary-color) !important;
}

.top-links .nav-link {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.top-links .nav-link:hover {
    color: var(--primary-hover-color);
}

.top-nav-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.15);
}

.top-links .nav-link.link-tagline {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
    color: white;
}

.top-links .nav-link.link-tagline:hover {
    color: var(--primary-color);
}

.d-lg-none .top-links .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    background-color: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.d-lg-none .top-links .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateX(5px);
}

.legal-text {
    font-size: 0.8rem;
    text-align: justify;
    line-height: 1.5;
}

.legal-text h1 {
    font-size: 1.5rem;
    text-align: center;
}

.legal-text h2 {
    font-size: 1.1rem;
    text-align: left;
}

.legal-text p, .legal-text ul {
    text-align: justify;
}

.legal-text li {
    margin-bottom: 0.3rem;
}
.carousel-inner-wrapper {
    width: 100%;
    height: 100%;
}

#hero-carousel .carousel-item {
    height: 75vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: center; 
    align-items: center; 
    padding-top: 0;
}

#hero-carousel .carousel-caption {
    position: static; 
    margin: 100px auto 0 auto;
    width: 90%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

#hero-carousel .carousel-caption .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}
/* Estilos para las tarjetas de reseñas */
    .review-card {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 1.5rem;
        height: 100%;
        text-align: left;
    }

    .review-quote-icon {
        font-size: 2rem;
        color: var(--primary-color);
        opacity: 0.5;
    }

    .review-stars {
        color: var(--primary-color);
        margin: 0.5rem 0;
    }

    .review-author {
        font-weight: 600;
        margin-top: 1rem;
    }

    /* Estilos para el segundo slide */
    .value-proposition-list {
        list-style: none;
        padding-left: 0;
        display: inline-block; /* Para que no ocupe todo el ancho */
        text-align: left;
    }
    .value-proposition-list li {
        margin-bottom: 0.5rem;
    }
    .value-proposition-list i {
        color: var(--primary-color);
        margin-right: 10px;
    }
    
    @media (max-width: 767px) {
        #hero-carousel .carousel-caption {
            width: 95%;
            padding: 1.5rem 1rem;
			margin: 60px auto 0 auto;
        }
    }

/* === ESTILOS PARA SECCIÓN DE RESEÑAS GOOGLE === */

.google-reviews-section {
    border-top: 1px solid #eee;
}

.google-rating-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-rating-header .google-stars {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.google-rating-header .fab.fa-google {
    color: #4285f4;
    font-size: 1.3rem;
}

.google-rating-header .stars {
    color: #ffc107;
}

.google-reviews-swiper {
    overflow: hidden;
    padding: 10px 0 30px;
}

.google-review-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.google-review-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.reviewer-name {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
}

.review-stars {
    color: #ffc107;
    font-size: 0.8rem;
}

.google-icon {
    color: #4285f4;
    font-size: 1.2rem;
    margin-left: 10px;
    flex-shrink: 0;
}

.review-text {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

/* Estilos del paginador de Swiper */
.google-reviews-swiper .swiper-pagination {
    bottom: 0;
}

.google-reviews-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.4;
    width: 8px;
    height: 8px;
}

.google-reviews-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

/* Responsive para diferentes pantallas */
@media (min-width: 768px) {
    .google-reviews-section {
        display: block !important;
    }
    
    .google-reviews-section .container h2 {
        font-size: 2.2rem;
    }
    
    .google-rating-header {
        margin-bottom: 3rem;
    }
    
    .google-review-card {
        padding: 2rem;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        margin-right: 15px;
    }
    
    .reviewer-name {
        font-size: 1rem;
    }
    
    .review-text {
        font-size: 1rem;
    }
}

/* === ESTILOS PARA MODAL DE DETALLES DE OFERTA === */

/* Modal principal */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover-color));
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}

.modal-header .btn-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    font-size: 1.2rem;
    padding: 0;
    width: auto;
    height: auto;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cuerpo del modal */
.modal-body {
    padding: 2rem;
    background-color: #fafafa;
}

/* Títulos de sección */
.modal-body h6 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Listas de información */
.modal-body .list-unstyled {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.modal-body .list-unstyled li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body .list-unstyled li:last-child {
    border-bottom: none;
}

.modal-body .list-unstyled li strong {
    color: var(--dark-color);
    font-weight: 600;
    min-width: 140px;
}

/* Separador */
.modal-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 2rem 0;
}

/* Formulario */
.modal-body form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Campos del formulario */
.modal-body .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.modal-body .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(227, 179, 42, 0.25);
    outline: none;
}

/* Checkbox de privacidad */
.modal-body .form-check {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.modal-body .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    border: 2px solid var(--primary-color);
}

.modal-body .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-body .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(227, 179, 42, 0.25);
}

.modal-body .form-check-label {
    margin-left: 0.5rem;
}

/* Botón de envío */
.modal-body .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover-color));
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 179, 42, 0.3);
    background: linear-gradient(135deg, var(--primary-hover-color), #b8871a);
}

/* Efectos de animación */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Estilos para datos destacados */
.modal-body .list-unstyled li:has(strong:contains("Ahorro estimado")) {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid #28a745;
    font-size: 1.1rem;
    font-weight: 600;
    color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body form {
        padding: 1.5rem;
    }
    
    .modal-body .list-unstyled li {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .modal-body .list-unstyled li strong {
        min-width: auto;
        margin-bottom: 0.2rem;
    }
}

/* Animación de entrada para las listas */
.modal-body .list-unstyled {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-faq { 
    height: 50vh; 
    min-height: 400px;
    background-image: url('../img/dudas-factura-luz.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: rgba(52, 52, 51, 0.6);
    background-blend-mode: multiply;
}
.hero-faq h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
}

.loading-spinner img {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.faq-section {
    background-color: var(--primary-color);
}

.faq-section .accordion-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--dark-color);
    font-weight: 600;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--dark-color);
    color: var(--primary-color);
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 .25rem rgba(52, 52, 51, 0.5);
}

.faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e3b32a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-item {
    border-color: rgba(0,0,0,0.2);
}

.faq-section .accordion-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

.section-padding {
    padding: 30px 0;
}

.section-title {
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--dark-color);
}

.feature-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

.feature-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.feature-card .card-body {
    display: flex;
    flex-direction: column;
}
.feature-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
}
.feature-card .btn {
    margin-top: auto;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.footer {
    background-color: var(--dark-color);
    color: var(--primary-color);
    padding: 40px 0;
    font-size: 0.9rem;
}
.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: var(--primary-hover-color);
}
.footer .social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
}

/* --- Estilo para el eslogan en la barra de navegación superior --- */
.brand-tagline {
    font-family: 'Caveat', cursive;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* --- Estilo para el texto del logo en móvil --- */
.brand-text-mobile {
    font-family: 'Caveat', cursive;
    color: var(--dark-color);
    font-weight: 700;
    margin-left: 10px;
    font-size: 0.65rem;
    line-height: 1;
}
.privacy-text {
    font-size: 11px;
    line-height: 1.4;
    color: #666;
    margin-left: 0;
}

.privacy-text strong {
    color: #333;
}

.privacy-text a {
    color: #e3b32a;
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.privacy-footer {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    margin-left: 25px; /* Para alinear con el texto del label */
}

.privacy-footer a {
    color: #e3b32a;
    text-decoration: none;
}

.privacy-footer a:hover {
    text-decoration: underline;
}
/* --- Estilos para las Páginas de Servicios (Luz, Gas, Solar) --- */
.hero-luz, .hero-gas, .hero-solar, .hero-calculadora, .hero-ofertas {
    height: 60vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-color: rgba(52, 52, 51, 0.6); /* Gris corporativo semitransparente */
    background-blend-mode: multiply; /* Oscurece la imagen para que el texto resalte */
}

.hero-luz h1, .hero-gas h1, .hero-solar h1, .hero-calculadora h1, .hero-ofertas h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-luz { background-image: url('../img/calculadora-tarifas-luz.jpg'); }
.hero-gas { background-image: url('../img/ofertas-de-gas.jpg'); }
.hero-solar { background-image: url('../img/instalar-placas-solares.jpg'); }
.hero-ofertas { background-image: url('../img/cambiar-compania-luz.jpg'); height: 50vh; min-height: 400px; }
.hero-calculadora { background-image: url('../img/calculadora-empresas-luz.jpg'); height: 50vh; min-height: 400px; }


.benefits-section .icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.benefits-section .col-lg-4:hover .icon-circle {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--dark-color);
    color: var(--primary-color);
}

/* --- Estilos para la Página de Ofertas --- */
.offers-list-section {
    background-color: var(--primary-color);
}

.offers-list-section .offer-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* Muy importante para el efecto ribbon */
}

.offers-list-section .offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.offers-list-section .offer-card .icon {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.offers-list-section .offer-card h3 {
    font-weight: 700;
    color: var(--dark-color);
}
/* --- Estilos para la Página de Contacto --- */
.hero-contacto {
    height: 50vh;
    min-height: 400px;
    background-image: url('../img/oficina-de-ahorro-luz-gas-baeza.jpg');
    background-size: cover;
    background-position: center;
    background-color: rgba(52, 52, 51, 0.6);
    background-blend-mode: multiply;
}
/* --- Estilos para el carrusel de Ofertas --- */
.offers-list-section {
    padding: 40px 0 30px; /* Reducir padding inferior de toda la sección */
}

.offers-swiper {
    overflow: hidden;
    padding: 15px 0 5px; /* Reducir padding vertical */
    margin-bottom: 0; /* Eliminar margen inferior */
}

.offers-swiper .swiper-wrapper {
    align-items: stretch;
    margin-bottom: 0; /* Eliminar margen inferior del wrapper */
}

.offers-swiper .swiper-slide {
    height: auto; /* Permitir que la altura se ajuste al contenido */
}


/* Tarjetas con altura flexible */
.offers-list-section .offer-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%; /* Ocupar todo el ancho del slide */
}

/* Estructura interna de la tarjeta */
.offers-list-section .offer-card .icon {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.offers-list-section .offer-card h3 {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.offers-list-section .offer-card > p {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.offers-list-section .offer-card .price-section {
    margin: 1rem 0;
    flex-shrink: 0;
}

.offers-list-section .offer-card ul {
    margin: 1rem 0;
}

.offers-list-section .offer-card .btn {
    margin-top: auto; /* Empujar el botón hacia abajo */
    flex-shrink: 0;
}

#offer-filters .nav-link {
    font-weight: 600;
    color: var(--dark-color);
    background-color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    border-radius: 50px;
}

#offer-filters .nav-link.active {
    background-color: var(--dark-color);
    color: var(--primary-color);
}
@media (max-width: 767.98px) {
    #offer-filters .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (min-width: 992px) {
    .offers-swiper {
        padding: 20px 0 10px;
    }
    
    .offers-list-section .offer-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .offers-list-section {
        padding: 30px 0 20px;
    }
    
    .offers-swiper {
        padding: 10px 0 5px;
    }
    
    .offers-list-section .offer-card {
        padding: 1.5rem;
    }
    
    .offers-list-section .container > .text-center {
        margin-top: 20px !important;
    }
}
.hero-contacto h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.contact-info-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
	margin-bottom: 20px;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-card .info-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-info-card .info-item p {
    margin-bottom: 0;
}

.map-container {
    width: 100%;
    height: 400px;
}

/* --- Estilos para la imagen en la tarjeta de contacto --- */
.contact-image-container .img-fluid {
    border-radius: 8px; /* Bordes redondeados */
}

/* --- Estilos para la sección de precios dentro de la tarjeta --- */
.price-section {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.price-flat .price-main {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.price-flat .price-unit {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 5px;
}

.price-flat .price-label {
    font-weight: 600;
    color: var(--dark-color);
}

.price-periods {
    font-size: 0.9rem;
}
.price-periods .price-period {
    padding: 2px 0;
}

/* --- Estilo para el descuento en la tarjeta --- */
.price-discount {
    background-color: #28a745; /* Verde llamativo */
    color: white;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block; /* Para que no ocupe todo el ancho */
    font-size: 0.75rem;
}
.hero-empresas {
    height: 60vh;
    min-height: 450px;
    background-image: url('../img/tarifas-luz-para-autonomos.jpg');
    background-size: cover;
    background-position: center;
    background-color: rgba(52, 52, 51, 0.6);
    background-blend-mode: multiply;
}

.hero-empresas h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-particulares {
    height: 60vh;
    min-height: 450px;
    background-image: url('../img/cambiar-empresa-luz-particulares.jpg');
    background-size: cover;
    background-position: center;
    background-color: rgba(52, 52, 51, 0.6);
    background-blend-mode: multiply;
}

.hero-particulares h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* --- Estilos para la página de la Calculadora --- */
.bg-yellow-section {
    background-color: var(--primary-color);
}

.result-card .card-header {
    background-color: var(--secondary-color);
}

.result-card .result-price-standard {
    font-size: 2.5rem;
    font-weight: 700;
}
.result-price-ofi { font-size: 2.8rem; font-weight: 700; color: var(--primary-color); }
.result-ahorro { font-size: 2.2rem; font-weight: 700; color: #198754; }
.result-label-ahorro { font-weight: 600; font-size: 1.2rem; }


@media (max-width: 991.98px) {
    .navbar-collapse { background: white; padding: 1rem; border-radius: 0.5rem; margin-top: 0.5rem; }
    
    #hero-carousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    #hero-carousel .carousel-caption {
        bottom: 10%;
        padding: 1.5rem;
    }
    #hero-carousel .carousel-caption h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    #hero-carousel .carousel-caption h1 {
        font-size: 1.8rem;
    }
    #hero-carousel .carousel-caption p {
        display: none; /* Ocultar párrafo en pantallas muy pequeñas */
    }
    #hero-carousel .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* === ESTILOS PARA FORMULARIO DE CALCULADORA === */

/* Tarjetas principales */
.calculator-container .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Header de las tarjetas */
.calculator-container .card-header {
    background: linear-gradient(135deg, var(--dark-color), #2c2c2b);
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.calculator-container .card-header h5 {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Cuerpo de las tarjetas */
.calculator-container .card-body {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 2.5rem;
}

/* Alertas de error */
.calculator-container .alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

/* Títulos de sección */
.calculator-container h6 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Labels de los campos */
.calculator-container .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.calculator-container .form-label.fw-bold {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Campos del formulario */
.calculator-container .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.calculator-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(227, 179, 42, 0.25), inset 0 2px 4px rgba(0,0,0,0.05);
    outline: none;
    background: white;
}

.calculator-container .form-control:valid {
    border-color: #28a745;
}

/* Campos requeridos */
.calculator-container .form-control[required] {
    border-left: 4px solid var(--primary-color);
}

/* Separadores */
.calculator-container hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 2.5rem 0;
    opacity: 0.7;
}

/* Filas del formulario */
.calculator-container .row {
    margin-bottom: 1rem;
}

.calculator-container .mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Botón de cálculo */
.calculator-container .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover-color));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(227, 179, 42, 0.3);
}

.calculator-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 179, 42, 0.4);
    background: linear-gradient(135deg, var(--primary-hover-color), #b8871a);
}

.calculator-container .btn-primary:active {
    transform: translateY(-1px);
}

/* Grupos de campos relacionados */
.calculator-container .row .col-md-6,
.calculator-container .row .col-md-4 {
    position: relative;
}

.calculator-container .row .col-md-6 .form-control,
.calculator-container .row .col-md-4 .form-control {
    transition: all 0.3s ease, transform 0.2s ease;
}

.calculator-container .row .col-md-6:hover .form-control,
.calculator-container .row .col-md-4:hover .form-control {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Indicadores visuales para campos requeridos */
.calculator-container .form-label:after {
    content: '';
}

.calculator-container input[required] + .form-label:after,
.calculator-container .form-label:has(~ input[required]):after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Efectos de animación para la carga */
.calculator-container .card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-container .card-body {
        padding: 2rem 1.5rem;
    }
    
    .calculator-container .card-header {
        padding: 1.2rem 1.5rem;
    }
    
    .calculator-container .card-header h5 {
        font-size: 1.1rem;
    }
    
    .calculator-container .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .calculator-container .row {
        margin-bottom: 0.5rem;
    }
}

/* Estados hover para toda la tarjeta */
.calculator-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Mejora visual para campos de consumo */
.calculator-container input[name*="consumo"] {
    border-left-color: #17a2b8;
}

.calculator-container input[name*="potencia"] {
    border-left-color: #28a745;
}

.calculator-container input[name="dias"] {
    border-left-color: #6f42c1;
}

.calculator-container input[name="factura_anterior"] {
    border-left-color: var(--primary-color);
    font-weight: 600;
}
.calculator-container .card-header.bg-dark {
    background: #e3b32a !important; /* Fondo sólido dorado */
    color: var(--dark-color) !important;
    position: relative;
    overflow: hidden;
    padding: 2rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--dark-color);
}

/* Quitamos shimmer para no tapar el color sólido */
.calculator-container .card-header.bg-dark::before {
    content: none;
}

.calculator-container .card-header.bg-dark h5 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: none !important; /* 🔹 Quitamos la sombra */
}

.calculator-container .card-header.bg-dark h5::before {
    content: '';
    display: inline-block;
    width: 1.4em;   /* un poco más ancho que el texto */
    height: 1.4em;  /* un poco más alto que el texto */
    background-image: url('../img/ahorra-en-tus-facturas-luz-ofienergetica.ico');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5rem;
    vertical-align: middle;
}


.calculator-container .card-header.bg-dark h5::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--dark-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Header para el formulario */
.calculator-container .card-header:not(.bg-dark) {
    background: linear-gradient(135deg, var(--dark-color), #2c2c2b) !important;
    color: white !important;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.calculator-container .card-header:not(.bg-dark)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.calculator-container .card-header:not(.bg-dark) h5 {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    position: relative;
    padding-left: 1rem;
}

.calculator-container .card-header:not(.bg-dark) h5::before {
    content: '📋';
    position: absolute;
    left: -0.5rem;
    top: 0;
}

/* Efecto hover para ambos headers */
.calculator-container .card-header.bg-dark:hover {
    background: #d4a11f !important; /* tono más oscuro en hover */
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.calculator-container .card-header:not(.bg-dark):hover {
    background: linear-gradient(135deg, #2c2c2b, var(--dark-color)) !important;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .calculator-container .card-header.bg-dark {
        background: #e3b32a !important; /* fondo plano corporativo */
        box-shadow: none !important;   /* sin sombras */
        transform: none !important;    /* sin escalado */
        padding: 0.8rem;
    }
	
	.calculator-container .card {
		border-radius: 0;
		margin-top: -30px;
		transform: none;
	}

    .calculator-container .card-header.bg-dark:hover {
        background: #e3b32a !important; 
        transform: none !important;
    }

    .calculator-container .card-header.bg-dark h5 {
        font-size: 0.7rem !important; /* texto más pequeño */
    }

    .calculator-container .card-header.bg-dark h5::before {
        content: none !important; /* sin icono */
    }
}
/* Estilos para la página de promociones */
.hero-promociones {
    background: 
        linear-gradient(135deg, rgba(52, 52, 52, 0.8) 0%, rgba(77, 61, 14, 0.8) 100%),
        url('../img/promociones-contrato-luz/black-friday-energia.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 80px 0;
}
.promocion-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.promocion-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.promocion-badge .badge {
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 20px;
}

.promocion-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.promocion-title {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.promocion-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.promocion-content {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 25px;
}

.promocion-content p {
    margin-bottom: 15px;
}

.promocion-content ul, .promocion-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.promocion-content li {
    margin-bottom: 8px;
}

.promocion-fechas {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.fecha-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.fecha-item:last-child {
    margin-bottom: 0;
}

.fecha-item i {
    width: 20px;
    color: #6c757d;
}

.no-promociones-section {
    padding: 80px 0;
}

.no-promociones-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #343434 0%, #515151 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-promo {
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-promo:hover {
    transform: translateY(-5px);
}

.icon-feature {
    color: #e3b32a;
}

.cta-section {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-promociones {
        min-height: 300px;
        padding: 60px 0;
    }
    
    .promocion-card {
        padding: 20px;
    }
    
    .promocion-title {
        font-size: 1.5rem;
    }
    
    .no-promociones-card {
        padding: 40px 20px;
    }
    
    .cta-section .btn {
        margin-bottom: 10px;
        width: 100%;
    }
}
/* === ESTILOS TARJETAS PORTADA (FIBRA/ALARMA) === */
.service-promo-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa; /* Fondo asegurado */
}

.service-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-promo-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.service-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-promo-card:hover .service-promo-img {
    transform: scale(1.05);
}

.promo-overlay-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.promo-badge-top {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}