/* Variables comunes */
:root {
    --transition-base: all 0.3s ease;
    --shadow-base: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 15px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(to right, #000000, #2196f3);
    --gradient-hover: linear-gradient(to right, #1a1a1a, #1976d2);
}

/* Cards Base */
.card {
    margin-bottom: 2rem;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-base);
    transition: var(--transition-base);
    background: rgba(255,255,255,0.9);
}

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

/* Botones Base */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    transition: var(--transition-base);
}

.btn-primary, .btn-light {
    background: var(--gradient-dark);
    border: none;
    color: white;
}

.btn-primary:hover, .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--gradient-hover);
    color: white;
}

.btn-outline-primary, .btn-outline-light {
    border: 2px solid;
    background: transparent;
}

.btn-outline-primary {
    border-color: #2196f3;
    color: #2196f3;
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-primary:hover, .btn-outline-light:hover {
    background: var(--gradient-dark);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

/* Listas */
.list-group-item {
    border: none;
    margin-bottom: 5px;
    border-radius: 10px !important;
    transition: var(--transition-base);
}

.list-group-item:hover {
    background-color: rgba(33,150,243,0.1);
    transform: translateX(5px);
}

/* Formularios */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33,150,243,0.25);
}

/* Enlaces Sociales */
.social-link {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition-base);
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: white;
}

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: var(--shadow-hover);
}

/* Popups */
.material-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    max-width: 90%;
    width: 500px;
}

.material-popup.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
}

.material-popup img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.material-popup h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.material-popup p {
    color: #666;
    margin-bottom: 1.5rem;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    z-index: 1;
}

.close-popup:hover {
    color: var(--primary-color);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.popup-overlay.active {
    display: block;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

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

/* Media Queries */
@media (max-width: 1200px) {
    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-container {
        width: 35px;
        height: 35px;
    }
    
    .logo-sun, .logo-panel {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 45vh;
        padding: 30px 0;
        background-image: url('../img/hero-mobile.jpg');
        background-size: cover;
        background-position: center;
    }
    
    .hero-section.index-hero {
        min-height: 50vh;
    }
    
    .hero-section .container {
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0;
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .logo-container {
        width: 30px;
        height: 30px;
    }
    
    .logo-sun, .logo-panel {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-section.index-hero {
        min-height: 60vh;
    }
    
    .hero-section .container {
        padding: 1.5rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
}

/* Cards */
.card {
    margin-bottom: 2rem;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: rgba(255,255,255,0.9);
}

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

.card-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, #000000, #2196f3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: linear-gradient(to right, #1a1a1a, #1976d2);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #2196f3;
    color: #2196f3;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(to right, #000000, #2196f3);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: linear-gradient(to right, #000000, #2196f3);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-light {
    background: linear-gradient(to right, #000000, #2196f3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    color: white;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: linear-gradient(to right, #1a1a1a, #1976d2);
    color: white;
}

/* Lists */
.list-group-item {
    border: none;
    margin-bottom: 5px;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(33,150,243,0.1);
    transform: translateX(5px);
}

/* Accordion */
.accordion-button {
    background: linear-gradient(to right, var(--light-bg), white);
    border-radius: 10px !important;
    margin-bottom: 5px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Form */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33,150,243,0.25);
}

/* Social Links */
.social-link {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Material Popups */
.material-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 90%;
    width: 500px;
}

.material-popup.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
}

.material-popup img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.material-popup h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.material-popup p {
    color: #666;
    margin-bottom: 1.5rem;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    z-index: 1;
}

.close-popup:hover {
    color: var(--primary-color);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.popup-overlay.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
}

footer p {
    color: white;
    margin-bottom: 0.5rem;
}

footer a {
    color: white;
    text-decoration: none;
}

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

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slides {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: cover;
}

.slides.active {
    opacity: 1;
}

/* Controles del slideshow */
.slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-arrow:hover {
    background: var(--primary-color);
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

/* Barra de progreso */
.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.slideshow-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.1s linear;
}

/* Títulos de sección */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/header-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.75;
    z-index: -1;
    border-radius: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(33, 150, 243, 0.8),
        rgba(33, 150, 243, 0.4));
    z-index: -1;
    border-radius: 10px;
}

.section-title h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section.index-hero {
    min-height: 60vh;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    background-image: url('../img/hero-mobile.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
}

.hero-section .row {
    width: 100%;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    margin-top: 0.3rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Media Queries para Hero */
@media (max-width: 768px) {
    .hero-section.index-hero {
        min-height: 50vh;
    }
    
    .hero-section .container {
        min-height: 30vh;
        padding: 0 1rem;
    }
    
    .hero-section.index-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section.index-hero .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-section.index-hero .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-section.index-hero .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0;
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section.index-hero {
        min-height: 40vh;
    }
    
    .hero-section .container {
        min-height: 30vh;
    }
    
    .hero-section.index-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section.index-hero .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-section.index-hero .hero-buttons .btn {
        max-width: 200px;
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Categorías FAQ */
.faq-categories {
    margin-bottom: 40px;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-card.active {
    background: var(--primary-color);
    color: #fff;
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card h5 {
    margin: 0;
    font-size: 1.1rem;
}

/* Acordeón personalizado */
.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-accordion .accordion-button {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    background: #fff;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: #fff;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.custom-accordion .accordion-body {
    padding: 20px;
    background: #f8f9fa;
}

.faq-answer {
    font-size: 1.05rem;
    line-height: 1.6;
}

.faq-tags {
    margin-top: 15px;
}

.faq-tags .badge {
    padding: 8px 12px;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Sección de preguntas no resueltas */
.unanswered-questions {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.unanswered-questions h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.unanswered-questions .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* Animaciones */
.faq-category {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Planes de Mantenimiento */
.maintenance-plan {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

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

.maintenance-plan .card-img-top {
    height: 200px;
    overflow: hidden;
}

.maintenance-plan .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.maintenance-plan:hover .card-img-top img {
    transform: scale(1.1);
}

.maintenance-plan .card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.maintenance-plan .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maintenance-plan .list-unstyled i {
    color: var(--success-color);
}

/* Servicios Adicionales */
.service-card {
    text-align: center;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

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

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

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 0;
}

/* Pasos de Instalación */
.installation-step {
    position: relative;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    overflow: hidden;
}

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

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.installation-step h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-right: 50px;
}

.installation-step p {
    color: #666;
    margin-bottom: 1rem;
}

.installation-step .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.installation-step .list-unstyled i {
    color: var(--success-color);
}

/* Consejos de Seguridad */
.safety-tip {
    text-align: center;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

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

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

.safety-tip h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.safety-tip p {
    color: #666;
    margin-bottom: 0;
}

/* Ejemplo de Instalación */
.installation-example {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

.installation-example .card-body {
    padding: 2rem;
}

.installation-example h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.installation-example .list-group-item {
    background: transparent;
    border-left: none;
    border-right: none;
    padding: 1rem 0;
}

.installation-example .list-group-item:first-child {
    border-top: none;
}

.installation-example .list-group-item:last-child {
    border-bottom: none;
}

.installation-example .alert {
    border-radius: 10px;
    background: rgba(33, 150, 243, 0.1);
    border: none;
    color: var(--primary-color);
}

.installation-example .alert i {
    font-size: 1.2rem;
}

/* Contenedor de animación */
.image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.animated-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Tarjetas de Materiales */
.material-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

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

.material-card .card-img-top {
    height: 200px;
    overflow: hidden;
}

.material-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.material-card:hover .card-img-top img {
    transform: scale(1.1);
}

.material-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.material-card p {
    color: #666;
    margin-bottom: 1rem;
}

.material-card .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.material-card .list-unstyled i {
    color: var(--success-color);
}

/* Componentes Adicionales */
.additional-material {
    text-align: center;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

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

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

.additional-material h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.additional-material p {
    color: #666;
    margin-bottom: 1rem;
}

.additional-material .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.additional-material .list-unstyled i {
    color: var(--success-color);
}

/* Productos Amazon */
.amazon-product {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

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

.amazon-product .card-img-top {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 1rem;
}

.amazon-product .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.amazon-product:hover .card-img-top img {
    transform: scale(1.1);
}

.amazon-product h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    min-height: 48px;
}

.product-features {
    margin-bottom: 1rem;
}

.product-features .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.product-price {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 1rem;
}

.original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.amazon-product .btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.amazon-product .btn-primary i {
    font-size: 1.2rem;
}

.amazon-disclaimer {
    background: rgba(33, 150, 243, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.amazon-disclaimer p {
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.amazon-disclaimer i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Chatbot */
.chatbot-container {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.chatbot-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chatbot-header i {
    font-size: 1.5rem;
}

.chatbot-header h5 {
    margin: 0;
    font-size: 1.2rem;
}

.chatbot-frame {
    border: none;
    width: 100%;
    height: 430px;
    background: white;
}

/* Testimonios */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-author img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author h5 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.testimonial-author p {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
}

/* Responsive para testimonios */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #FFD700 !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-sun {
    font-size: 2rem;
    animation: rotate 10s linear infinite;
}

.logo-panel {
    font-size: 2rem;
    color: #FFD700;
}

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

/* Navbar */
.navbar {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(33, 150, 243, 0.5));
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar .nav-link.active {
    color: #FFD700 !important;
}

.navbar .nav-link.active::after {
    width: 100%;
    background: #FFD700;
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .logo-container {
        padding: 0.3rem 0.8rem;
    }
    
    .logo-sun, .logo-panel {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-container {
        padding: 0.2rem 0.6rem;
    }
    
    .logo-sun, .logo-panel {
        font-size: 1.2rem;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.whatsapp-button i {
    font-size: 2.5rem;
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 75px;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-button i {
        font-size: 2rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Contenedores de Anuncios */
.ad-container {
    margin: 2rem 0;
    text-align: center;
}

.ad-wrapper {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top {
    margin-top: 0;
}

.ad-bottom {
    margin-bottom: 0;
}

.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 999;
}

@media (max-width: 1200px) {
    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-container {
        margin: 1rem 0;
    }
    
    .ad-wrapper {
        min-height: 60px;
    }
}

/* Sección de Noticias */
.news-section {
    padding: 4rem 0;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.news-category {
    background: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.news-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.news-read-more i {
    font-size: 0.9rem;
}

.news-section .section-title {
    margin-bottom: 3rem;
}

.news-section .section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-section .section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Animaciones para noticias */
.news-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries para Noticias */
@media (max-width: 768px) {
    .news-section {
        padding: 3rem 0;
    }
    
    .news-section .section-title h2 {
        font-size: 2rem;
    }
    
    .news-card {
        margin-bottom: 2rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 420px) {
    .navbar {
        padding: 0.25rem 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
        width: 100%;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
        padding: 0.25rem 0;
    }
    
    .logo-container {
        height: 18px;
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-toggler {
        padding: 0.125rem 0.25rem;
        border: none;
    }
    
    /* Asegurar que nada se desborde */
    .navbar-collapse {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
    }
}

/* Para todas las pantallas móviles */
@media (max-width: 768px) {
    .navbar {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
} 