@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Oswald:wght@400;600;700&display=swap');

:root {
    --primary-color: #ffd700;
    --secondary-color: #1a5f7a;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand img {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    height: 40px;
    transition: height 0.3s ease, transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-light .navbar-nav .nav-link {
    color: white;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar.navbar-scrolled .navbar-brand img {
    height: 35px;
}

.navbar.navbar-scrolled .navbar-nav .nav-link {
    color: var(--secondary-color);
    text-shadow: none;
}

.navbar.navbar-scrolled .navbar-nav .nav-link:hover,
.navbar.navbar-scrolled .navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-header {
    position: relative;
    background-color: black;
    height: 100vh;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
}

.video-header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
}

.video-header .container {
    position: relative;
    z-index: 2;
}

.video-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tech-feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-feature:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.process-step {
    transition: transform 0.3s ease;
}

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

.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.03);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .navbar-light .navbar-nav .nav-link {
        color: var(--secondary-color);
        text-shadow: none;
    }

    .navbar-light .navbar-toggler {
        border-color: white;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .navbar-light .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button a {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    transition: all 0.3s ease;
}

.whatsapp-button:hover a {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
}

.sistema-solar-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sistema-solar-item:hover,
.sistema-solar-item.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.sistema-solar-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#sistema-solar-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

#sistema-solar-info.show {
    opacity: 1;
    transform: translateY(0);
}

#sistema-solar-info img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#soluciones-energeticas .card-flip {
    perspective: 1000px;
    height: 400px;
    margin-bottom: 30px;
}

#soluciones-energeticas .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

#soluciones-energeticas .card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

#soluciones-energeticas .card-front,
#soluciones-energeticas .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

#soluciones-energeticas .card-front {
    background-color: #fff;
}

#soluciones-energeticas .card-back {
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

#soluciones-energeticas .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#soluciones-energeticas .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
}

#soluciones-energeticas .card-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#soluciones-energeticas .card-subtitle {
    font-size: 1rem;
    color: #ddd;
}

#soluciones-energeticas .card-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #soluciones-energeticas .card-flip {
        height: 350px;
    }

    #soluciones-energeticas .card-title {
        font-size: 1.3rem;
    }

    #soluciones-energeticas .card-text {
        font-size: 0.9rem;
    }
}
#premium-solar {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#premium-solar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(26, 95, 122, 0.1) 100%);
    z-index: 0;
}

#premium-solar .container {
    position: relative;
    z-index: 1;
}

#premium-solar h2 {
    color: #1a5f7a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

#premium-solar > p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px;
}

.premium-feature-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.premium-feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.premium-feature-card .feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.premium-feature-card .content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a5f7a;
    font-weight: 600;
}

.premium-feature-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

@media (max-width: 768px) {
    #premium-solar {
        padding: 60px 0;
    }

    #premium-solar h2 {
        font-size: 2rem;
    }

    .premium-feature-card .feature-image {
        height: 150px;
    }

    .premium-feature-card h3 {
        font-size: 1.1rem;
    }

    .premium-feature-card p {
        font-size: 0.9rem;
    }
}