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

:root {
    --primary: #FFB800;
    /* Solar Yellow */
    --primary-hover: #E6A600;
    --secondary: #0056B3;
    /* Energy Blue */
    --bg-light: #FFFFFF;
    --bg-card: #F8F9FA;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.social-links a {
    color: var(--text-main);
    font-size: 1.8rem;
    transition: var(--transition);
    margin-right: 20px;
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

.d-desktop {
    display: inline-block;
}

@media (max-width: 768px) {
    .d-desktop {
        display: none !important;
    }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: #333;
    color: #fff;
}

nav.scrolled {
    background: rgba(51, 51, 51, 0.95);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo img {
        height: 60px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
}

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

.mobile-menu-btn {
    display: none !important;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
    /* Above nav-links */
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(30, 30, 30, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    /* Fallback color */
    z-index: 1;
    /* Create stacking context */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    line-height: 65px;
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 80%;
    }
}

/* Sections */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        gap: 20px;
    }
}

/* Cards */
.card {
    display: block;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }
}

.icon-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-group i {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.whatsapp-float span {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 10px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 15px;
        bottom: 20px;
        right: 20px;
    }
}

/* Forms - Extracted from asesoramiento.html and contacto.html */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
}

/* Contact Info - Extracted from contacto.html */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

/* Page Headers */
.page-header {
    padding: 180px 5% 50px;
    text-align: center;
    background: var(--bg-card);

}

/* Solution Specifics */
.solution-img {
    height: 400px;
}

/* Utility classes */
.bg-card {
    background: var(--bg-card);
}

.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.footer {
    padding: 50px 5%;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
}

.developer-signature {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* List checks */
.list-checks {
    list-style: none;
    margin-top: 20px;
}

.list-checks li {
    margin-bottom: 10px;
}

.list-checks i {
    color: var(--primary);
    margin-right: 10px;
}

/* Additional Helper Classes */
.text-muted {
    color: var(--text-muted);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.btn-block {
    width: 100%;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.p-40 {
    padding: 40px;
}

.btn-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
}

.map-container {
    width: 100%;
    height: 450px;
    border-top: 1px solid var(--glass-border);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* More Helper Classes */
.align-center {
    align-items: center;
}

.mt-15 {
    margin-top: 15px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-15 {
    margin-bottom: 15px;
}

.pb-10 {
    padding-bottom: 10px;
}

.border-bottom {
    border-bottom: 1px solid var(--glass-border);
}

.list-none {
    list-style: none;
}

.w-100 {
    width: 100%;
}

.h-500 {
    height: 500px;
}

.h-150 {
    height: 150px;
}

.h-200 {
    height: 200px;
}

.overflow-hidden {
    overflow: hidden;
}

.p-0 {
    padding: 0;
}

.font-small {
    font-size: 0.9rem;
}

.mt-40 {
    margin-top: 40px;
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-item {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    min-width: 300px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-control:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 20px;
    }

    .carousel-item {
        flex: 0 0 85%;
    }

    .carousel-control {
        display: none;
        /* Use native touch scroll on mobile */
    }
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--text-main);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: #000;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-light);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    width: 80%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

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

.modal-body-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 768px) {
    .modal-body-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
}

.product-carousel .carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* Lightbox Gallery Styles */
.glightbox-trigger {
    cursor: pointer;
    transition: var(--transition);
}

.glightbox-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail {
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 0 2px var(--primary);
}