: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: 65vh;
    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.2rem;
}

.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: 3.8rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
	margin-bottom: 10px;
}

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

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

.price-periods {
    font-size: 1rem;
	margin-bottom: 30px;
}
.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: 30px;
    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.4) 0%, rgba(77, 61, 14, 0.4) 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;
}
/* ============================================
   SLIDESHOW MODERNO - OFIENERGÉTICA
   ============================================ */

/* Contenedor principal del carousel */
.ahorrarFacturaCarousel {
    position: relative;
    overflow: hidden;
    background-color: #343433;
}

/* Wrapper de cada slide */
.ahorrarFacturaSlideWrapper {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Imagen de fondo con efecto parallax sutil */
.ahorrarFacturaSlideImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.carousel-item.active .ahorrarFacturaSlideImage {
    transform: scale(1.05);
}

/* Overlay oscuro elegante */
.ahorrarFacturaSlideOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(52, 52, 51, 0.85) 0%,
        rgba(52, 52, 51, 0.65) 50%,
        rgba(52, 52, 51, 0.75) 100%
    );
    z-index: 1;
}

/* Contenido del slide */
.ahorrarFacturaSlideContent {
    position: relative;
    z-index: 2;
	margin-top: -4rem;
    max-width: 900px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 0 auto;
	margin-top: -8rem !important;
}

/* Badge superior */
.ahorrarFacturaBadge {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.3);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2.1rem;
    box-shadow: 0 4px 15px rgba(227, 179, 42, 0.3);
}

.ahorrarFacturaBadge i {
    color: #ffffff;
}

/* Título principal */
.ahorrarFacturaSlideTitle {
    font-size: 5.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Texto descriptivo */
.ahorrarFacturaSlideText {
    font-size: 1.3rem;
    color: #f8f9fa;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Lista de beneficios */
.ahorrarFacturaSlideList {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.ahorrarFacturaSlideList li {
    font-size: 1.1rem;
    color: white;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.ahorrarFacturaSlideList li i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Botones de acción */
.ahorrarFacturaSlideActions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ahorrarFacturaBtnPrimary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 0.7rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(227, 179, 42, 0.4);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ahorrarFacturaBtnPrimary:hover {
    background-color: white;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 179, 42, 0.5);
}

.ahorrarFacturaBtnPrimary i {
    transition: transform 0.3s ease;
}

.ahorrarFacturaBtnPrimary:hover i {
    transform: translateX(5px);
}

/* Indicadores modernos */
.ahorrarFacturaIndicators {
    bottom: 30px;
    z-index: 3;
}

.ahorrarFacturaIndicators button {
    width: 50px;
    height: 4px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 1;
}

.ahorrarFacturaIndicators button.active {
    background-color: var(--primary-color);
    width: 70px;
    box-shadow: 0 2px 10px rgba(227, 179, 42, 0.6);
}

.ahorrarFacturaIndicators button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Animaciones de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-item.active .animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.carousel-item.active .animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.carousel-item.active .animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.carousel-item.active .animate-fade-in {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets (landscape) */
@media (max-width: 991.98px) {
    .ahorrarFacturaSlideWrapper {
        height: 65vh;
        min-height: 450px;
    }

    .ahorrarFacturaSlideContent {
        padding: 2rem 1.5rem;
        max-width: 700px;
    }

    .ahorrarFacturaSlideTitle {
        font-size: 2.8rem;
    }

    .ahorrarFacturaSlideText {
        font-size: 1.15rem;
    }

    .ahorrarFacturaSlideList li {
        font-size: 1rem;
    }

    .ahorrarFacturaBtnPrimary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* Tablets (portrait) y móviles grandes */
@media (max-width: 767.98px) {
    .ahorrarFacturaSlideWrapper {
        height: 60vh;
        min-height: 500px;
    }

    .ahorrarFacturaSlideContent {
        padding: 1.5rem 1rem;
        max-width: 100%;
        text-align: center;
		margin-top: 10px;
    }

    .ahorrarFacturaBadge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }

    .ahorrarFacturaSlideTitle {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .ahorrarFacturaSlideText {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .ahorrarFacturaSlideList li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .ahorrarFacturaSlideList li i {
        font-size: 1rem;
        margin-right: 0.75rem;
    }

    .ahorrarFacturaSlideActions {
        justify-content: center;
    }

    .ahorrarFacturaBtnPrimary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .ahorrarFacturaIndicators {
        bottom: 20px;
    }

    .ahorrarFacturaIndicators button {
        width: 30px;
        height: 3px;
    }

    .ahorrarFacturaIndicators button.active {
        width: 45px;
    }
}

/* Móviles pequeños */
@media (max-width: 575.98px) {
    .ahorrarFacturaSlideWrapper {
        min-height: 550px;
    }

    .ahorrarFacturaSlideTitle {
        font-size: 2.75rem;
    }

    .ahorrarFacturaSlideText {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .ahorrarFacturaSlideList li {
        font-size: 0.85rem;
    }

    .ahorrarFacturaBtnPrimary {
        font-size: 0.75rem;
        padding: 0.30rem 0.65rem;
		margin-bottom: 35px;
    }
}

/* Modo landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .ahorrarFacturaSlideWrapper {
        height: 100vh;
        min-height: 400px;
    }

    .ahorrarFacturaSlideContent {
        padding: 1rem;
    }

    .ahorrarFacturaSlideTitle {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .ahorrarFacturaSlideText {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .ahorrarFacturaSlideList {
        margin: 1rem 0;
    }

    .ahorrarFacturaSlideList li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .ahorrarFacturaBtnPrimary {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .ahorrarFacturaIndicators {
        bottom: 10px;
    }
}

/* Mejoras de rendimiento */
.ahorrarFacturaSlideImage {
    will-change: transform;
}

.ahorrarFacturaBtnPrimary {
    will-change: transform;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .ahorrarFacturaSlideImage,
    .ahorrarFacturaBtnPrimary,
    .carousel-item.active .animate-slide-up,
    .carousel-item.active .animate-slide-up-delay,
    .carousel-item.active .animate-slide-up-delay-2,
    .carousel-item.active .animate-fade-in {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}
.promo-badge-wrapper {
    top: 0.75rem !important;
}

.hero-fibra {
    height: 60vh;
    min-height: 450px;
    background-image: url('../img/fibra-optica-movil.jpg');
    background-size: cover;
    background-position: center;
    background-color: rgba(52, 52, 51, 0.7);
    background-blend-mode: multiply;
}


.promo-badge-alarm {
    animation: blink 2s ease-in-out infinite;
}

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

.hero-fibra p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
.equipment-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
	margin-top: 2.5rem;
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.equipment-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.equipment-item h5 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.equipment-item p {
    margin-bottom: 0;
    line-height: 1.4;
}
.text-primary {
    font-size: 1.4rem; /* O el tamaño que prefieras */
    font-weight: 700;
    line-height: 1.0;
}
h3.text-primary {
    font-family: 'Raleway', sans-serif !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    line-height: 1.0 !important; /* Más juntos los renglones */
    
    /* Tamaño base para móviles */
    font-size: 1.6rem !important;
    margin: 0.6rem 0 !important;
    text-align: center !important; /* Alineación izquierda */
}

/* Tablets */
@media (min-width: 577px) {
    h3.text-primary {
        font-size: 2.3rem !important;
        margin: 1.5rem 0 !important;
        margin-right: 2rem !important; /* Margen derecho en tablets */
    }
}

/* PCs grandes */
@media (min-width: 992px) {
    h3.text-primary {
        font-size: 3.6rem !important;
        margin: 3rem 0 3rem 0 !important;
        margin-right: 3rem !important; /* Más margen derecho en PCs */
        text-align: left !important;
        line-height: 0.8 !important; /* Aún más juntos en PCs */
    }
}

/* PCs extra grandes */
@media (min-width: 1200px) {
    h3.text-primary {
        font-size: 4.3rem !important;
        margin-right: 5rem !important; /* Aún más margen derecho en PCs grandes */
        line-height: 1.0 !important; /* Muy juntos para PCs grandes */
    }
}

/* Solo para PC (pantallas grandes) */
@media (min-width: 992px) {
    .equipment-item {
        margin-top: 1rem; /* Margen solo para PC */
    }
    
    /* Para alinear el texto a la izquierda en los cuadros también */
    .equipment-item h5,
    .equipment-item p {
        text-align: left !important;
    }
    
    .equipment-item {
        text-align: left !important;
        padding-left: 2rem !important; /* Más padding izquierdo en PCs */
    }
}

/* Para móviles y tablets no aplicamos margen top especial */
@media (max-width: 991px) {
    .equipment-item {
        margin-top: 0;
        text-align: center !important; /* Centrado en móviles/tablets */
    }
}

/* También ajusta el contenedor del mensaje promocional */
@media (min-width: 992px) {
    .text-center.mb-4 {
        text-align: left !important; /* Contenedor alineado a izquierda en PCs */
        padding-right: 2rem !important; /* Margen derecho al contenedor */
    }
}
   .hero-luz-template {
        height: 50vh;
        min-height: 400px;
        background-image: url('../img/tarifas-baratas-de-luz.jpg');
        background-size: cover;
        background-position: center;
        background-color: rgba(0, 0, 0, 0.6);
        background-blend-mode: multiply;
    }
    .price-card {
        border: 3px solid var(--primary-color);
        border-radius: 15px;
        overflow: hidden;
    }
    .price-header {
        background-color: var(--primary-color);
        color: var(--dark-color);
        padding: 1.5rem;
        text-align: center;
    }
    .price-body {
        padding: 2rem;
        background: #fff;
    }
    .energy-price-big {
        font-size: 3rem;
        font-weight: 800;
        color: var(--primary-color);
        line-height: 1;
    }
    .tramos-table th { background-color: #f8f9fa; }
	
	/* Para que los cuadros ocupen más espacio */
@media (min-width: 992px) {
    .col-lg-6 .equipment-item {
        min-height: 180px; /* Más altura */
        padding: 2rem !important; /* Más padding interno */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .col-lg-6 .equipment-item i {
        font-size: 3rem !important; /* Iconos más grandes */
        margin-bottom: 1.5rem !important;
    }
    
    .col-lg-6 .equipment-item h5 {
        font-size: 1.5rem !important; /* Títulos más grandes */
        margin-bottom: 0.75rem !important;
    }
    
    .col-lg-6 .equipment-item p {
        font-size: 1.1rem !important; /* Texto más grande */
    }
}

/* Para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 .equipment-item {
        min-height: 160px;
        padding: 1.75rem !important;
    }
}
/* Solo para PC */
@media (min-width: 992px) {
    .col-lg-6:first-child .equipment-item {
        margin-right: 2rem !important;
    }
}

/* O para ambos cuadros */
@media (min-width: 992px) {
    .col-lg-6 .equipment-item {
        margin-right: 3rem !important;
    }
    
    .col-lg-6:first-child .equipment-item {
        margin-right: 1rem !important; /* Más margen para el primero */
    }
}

.amazon-reward-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    /* border-left: 5px solid #ff9900; */ /* Eliminado el filo amarillo */
    margin-top: 2rem;
}

.amazon-reward-section h4 {
    color: #333;
    font-size: 1.3rem;
    font-family: 'Raleway', sans-serif;
}

.amazon-reward-section .text-muted {
    color: #666 !important;
    font-size: 1rem;
}

.amazon-card-img {
    max-height: 160px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Margen derecho solo en PCs */
@media (min-width: 992px) {
    .amazon-reward-section {
        margin-right: 3rem !important;
    }
}

/* Responsive para móviles/tablets */
@media (max-width: 991px) {
    .amazon-reward-section {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .amazon-reward-section {
        text-align: center;
        padding: 1rem;
    }
    
    .amazon-reward-section .d-flex {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .amazon-card-img {
        max-height: 60px;
    }
}
/* Estilo para el enlace de la tarjeta Amazon */
.amazon-reward-section a {
    transition: all 0.3s ease;
}

.amazon-reward-section a:hover .text-muted {
    color: #ff9900 !important; /* Color Amazon al hover */
}

.amazon-reward-section .small {
    font-size: 0.9rem;
}

/* Opcional: añadir flecha al enlace */
.amazon-reward-section a .text-muted::after {
    content: " →";
    opacity: 0;
    transition: opacity 0.3s ease;
}

.amazon-reward-section a:hover .text-muted::after {
    opacity: 1;
}
/* ===== HERO SECTION - Igual que luz pero con imágenes diferentes ===== */
.hero-fibra-alarma-template {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: multiply;
}

/* Estas clases se aplicarán desde PHP o JavaScript */
.hero-fibra-alarma-template.fibra {
    background-image: url('../img/las-mejores-ofertas-de-fibra-movil-tv.jpg');
}

.hero-fibra-alarma-template.alarma {
    background-image: url('../img/contratar-alarma-antiocupas.jpg');
}

/* ===== EQUIPMENT ITEMS - Igual que en luz ===== */
.equipment-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.equipment-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.equipment-item h5 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.equipment-item p {
    margin-bottom: 0;
    line-height: 1.4;
}

/* ===== SPEC LIST - Nuevo para características ===== */
.spec-list {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.spec-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 40px;
    margin-top: 0.2rem;
}

.spec-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.spec-item .text-muted {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ===== PRICE CARD - Reutilizado de luz ===== */
.price-card {
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
}

.price-header {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 1.5rem;
    text-align: center;
}

.price-body {
    padding: 2rem;
    background: #fff;
}

.energy-price-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

/* ===== AMAZON REWARD SECTION - Igual que en luz ===== */
.amazon-reward-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.amazon-reward-section h4 {
    color: #333;
    font-size: 1.4rem;
    font-family: 'Raleway', sans-serif;
}

.amazon-reward-section .text-muted {
    color: #666 !important;
    font-size: 0.8rem;
}

/* Margen derecho solo en PCs */
@media (min-width: 992px) {
    .amazon-reward-section {
        margin-right: 3rem !important;
    }
}

/* ===== OFFER CARDS (Carrusel) - Reutilizado de luz ===== */
.offers-list-section {
    background-color: var(--primary-color) !important;
}

.offer-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
}

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

.offer-card .icon {
    text-align: center;
    margin-bottom: 1rem;
}

.offer-card .icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.offer-card h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    min-height: 3.5rem;
    line-height: 1.3;
}

.offer-card .small {
    color: #666;
    text-align: center;
    min-height: 3rem;
    font-size: 0.9rem;
}

.price-section {
    text-align: center;
    padding: 1rem 0;
}

.price-flat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-unit {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.price-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.25rem;
}

.price-discount {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.offer-check {
    color: var(--primary-color);
}

/* ===== SWIPER ===== */
.offers-swiper {
    padding: 1rem 0 3rem 0;
}

.swiper-slide {
    height: auto;
}
/* Ajustes solo para móviles */
@media (max-width: 576px) {
    .info-text-mobile {
        font-size: 0.75rem !important;   /* más pequeño */
        text-align: justify !important;  /* justificado */
        line-height: 1.25;               /* mejor lectura */
    }
}
@media (max-width: 576px) {
    .mobile-margin-top {
        margin-top: 2.0rem !important; /* Ajustable */
    }
}
/* Tarjeta estilo 'offer-card' */
            .promotion-card {
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                background-color: var(--primary-color); /* CAMBIO: Fondo Dorado */
                border: 1px solid rgba(0,0,0,0.1);      /* Sutil borde */
            }
			
			.hero-promociones {
    background-color: #e3b32a;
    position: relative;
}
.btn-catalogo-promo {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.btn-catalogo-promo:hover {
    background-color: #666;
    border-color: #666;
    color: #fff;
}