* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #d4d4d4;
    color: #333;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
}

.logo span {
    color: #0062ae;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    margin-left: 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #0062ae;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 5%;
    background: #d4d4d4;
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1.2;
}

.title-blue {
    color: #0062ae;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.title-black {
    color: #000;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.line-victron {
    width: 270px;
    height: 5px;
    background: #e17421;
    margin: 10px 0 20px 0;
}

.three-lines-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 25px;
    color: #333;
}
/* Estilo para la palabra VICTRON BLUE POWER */
.blue-power {
    color: #0062ae;         /* El azul oficial que estás usando */
    text-transform: uppercase; /* Convierte a Mayúsculas automáticamente */
    font-weight: 900;       /* Negrita máxima (Black) */
    display: inline;        /* Para que se mantenga en la misma línea del texto */
}

.social-links-hero {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-links-hero a {
    text-decoration: none;
    color: #0062ae;
    font-weight: 900;
    font-size: 0.95rem;
    border: 2px solid #0062ae;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.social-links-hero a i {
    font-size: 1.3rem;
}

.social-links-hero a:hover {
    background: #0062ae;
    color: #fff;
}

.support-logos {
    display: flex;
    gap: 20px;
    align-items: center;
}

.support-logos img {
    height: 45px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

/* HERO IMAGE & SOL DECORATION */
.hero-image {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.sun-decoration {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 100px;
    height: 100px;
    z-index: 10;
}

.sun-rotate {
    width: 100%;
    height: 100%;
    animation: rotateSun 20s linear infinite;
}

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

.img-wrapper {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    line-height: 0;
    position: relative;
    z-index: 2;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
}

/* SECCIÓN SISTEMAS */
.services-section {
    padding: 100px 5%;
    background: #4a4a4a;
    text-align: center;
}

.white-text {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

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

.service-img-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.15);
}

.card-content h3 {
    color: #0062ae;
    font-weight: 900;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
}

/* SECCIÓN PROYECTOS */
.projects-section {
    padding: 100px 5%;
    background: #d4d4d4;
    text-align: center;
}

.line-victron-center {
    width: 150px;
    height: 5px;
    background: #e17421;
    margin: 20px auto 50px auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 98, 174, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    color: #fff;
    gap: 15px;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 3.2rem;
}

.project-overlay span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* SECCIÓN CONTACTO */
.contact-section {
    padding: 100px 5%;
    background: #4a4a4a;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.btn-submit {
    background: #e17421;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #f38533;
}

/* FOOTER */
.main-footer {
    padding: 50px;
    background: #000;
    color: #888;
    text-align: center;
}

/* BOTONES FLOTANTES */
.btn-home-float {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); /* CENTRADO EXACTO */
    background: #0062ae;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none;
}

.btn-home-float.show {
    opacity: 1;
    visibility: visible;
}

.btn-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
}

/* ANIMACIONES REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* MENU MOVIL */
.menu-toggle {
    display: none;
}

/* MEDIA QUERIES */
@media screen and (max-width: 1024px) {
    .hero-container { flex-direction: column; text-align: center; gap: 20px; }
    .hero-image { justify-content: center; }
    .title-blue, .title-black { font-size: 2.8rem; }
    .line-victron { margin: 10px auto; }
    .three-lines-text { margin: 0 auto 20px; }
    .social-links-hero, .support-logos { justify-content: center; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .menu-toggle { display: block; font-size: 1.8rem; color: #0062ae; cursor: pointer; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #f0f0f0;
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 15px 0; margin-left: 0; font-size: 1rem; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { aspect-ratio: 1/1; height: auto; }
    .service-img-wrapper { height: 100%; }
    .projects-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 400px) {
    .title-blue, .title-black { font-size: 1.8rem !important; }
    .line-victron { width: 180px; }
    .social-links-hero { flex-direction: column; align-items: center; }
    .social-links-hero a { width: 90%; justify-content: center; font-size: 1.1rem; }
}