:root {
    --primary-color: #0088cc;
    --secondary-color: #ff5722;

    /* Light Theme */
    --bg-color: #ffffff;
    --text-color: #666666;
    --heading-color: #1a1a1a;
    --card-bg-color: #ffffff;
    --section-bg-color: #f5f8fa;
    --border-color: #e5e5e5;
    --footer-bg-color: #111111;
    --footer-text-color: #999999;
    --footer-bottom-bg-color: #000000;
    --white: #fff; /* for text on dark backgrounds */
    
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #999;
    --heading-color: #f5f8fa;
    --card-bg-color: #2a2a2a;
    --section-bg-color: #222222;
    --border-color: #333;
    --footer-bg-color: #000000;
    --footer-text-color: #777;
    --footer-bottom-bg-color: #111111;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--section-bg-color);
}

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

/* ==========================================================================
   Custom Scrollbar (Escritorio)
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 40px;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--heading-color);
    color: var(--bg-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-light {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--heading-color);
    color: var(--bg-color);
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.topbar {
    background-color: var(--heading-color);
    color: var(--bg-color);
    padding: 10px 0;
    font-size: 14px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    color: var(--primary-color);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--bg-color);
    font-size: 14px;
}

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

.dark-mode-toggle {
    background: transparent;
    border: none;
    color: var(--bg-color);
    font-size: 16px;
    cursor: pointer;
}

.header {
    background-color: var(--bg-color);
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--heading-color);
    font-size: 28px;
    font-weight: 800;
}

.logo span {
    color: var(--primary-color);
}

.logo-img {
    height: auto;
    width: 80%;
}

.main-menu {
    margin-left: 5%; 
    margin-right: 5%;    
}

.main-menu ul {
    display: flex;
    gap: 25px;
}

.main-menu a {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.main-menu a:hover, .main-menu a.active {
    color: var(--primary-color);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-menu a:hover::after, .main-menu a.active::after {
    width: 100%;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 30px;
}

.phone-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-contact i {
    font-size: 30px;
    color: var(--secondary-color);
}

.phone-contact span {
    display: block;
    font-size: 13px;
    color: var(--text-color);
}

.phone-contact strong {
    color: var(--heading-color);
    font-size: 18px;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--heading-color);
}

/* ==========================================================================
   Contact Form (Netlify)
   ========================================================================== */
.netlify-form input, .netlify-form textarea {
    background-color: var(--bg-color);
    color: var(--heading-color);
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
}
.netlify-form input:focus, .netlify-form textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 150px 0;
    background-color: var(--primary-color);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/appliances_main_80.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0,136,204,0.8) 100%); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero .subtitle {
    color: var(--white);
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 55px;
    line-height: 1.1;
    margin: 20px 0;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.hero-btns .btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.hero-btns .btn-primary:hover {
    background-color: var(--white);
    color: var(--heading-color);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover, .feature-card.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,136,204,0.3);
}

.feature-card:hover h3, .feature-card.active h3 {
    color: var(--white);
}

.feature-card .icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card:hover .icon, .feature-card.active .icon {
    color: var(--white);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.img-placeholder {
    background-color: var(--section-bg-color);
    height: 500px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.img-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
}

.about-carousel {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 10px solid var(--bg-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.experience-badge h2 {
    color: var(--white);
    font-size: 40px;
    margin: 0;
    line-height: 1;
}

.experience-badge p {
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: var(--white);
}

.about-list {
    margin: 30px 0;
}

.about-list li {
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-list i {
    color: var(--primary-color);
    background-color: rgba(0,136,204,0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
}

.service-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 20px;
}

/* ==========================================================================
   Service Modal (Cajas Flotantes)
   ========================================================================== */
.service-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.show {
    display: flex;
    opacity: 1;
}

.service-modal-content {
    background-color: var(--bg-color);
    margin: 15px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-modal.show .service-modal-content {
    transform: translateY(0);
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--heading-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    background: var(--bg-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.service-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.service-modal-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-modal-text h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-modal-text p {
    margin-bottom: 30px;
    color: var(--text-color);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    background-color: var(--secondary-color);
    padding: 60px 0;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--white);
    opacity: 0.9;
    margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo a {
    color: var(--white);
}

.footer-logo a h2 {
    color: var(--white);
    font-size: 24px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--footer-text-color);
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: var(--footer-bottom-bg-color);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-bg {
        background-attachment: scroll;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        padding: 20px 0;
        margin-left: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .main-menu a {
        padding: 10px 0;
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header {
        padding: 10px 0 !important;
    }

    .logo-img {
        max-width: 160px;
    }

    .header-action {
        display: none;
    }
    
    .phone-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .topbar-left {
        display: none;
    }
    
    .topbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .service-card {
        padding: 25px 20px;
    }
    
    .floating-whatsapp {
        display: flex;
    }
    
    .experience-badge {
        right: 0;
        bottom: -20px;
        width: 140px;
        height: 140px;
        padding: 20px;
    }
    
    .experience-badge h2 {
        font-size: 30px;
    }
    .experience-badge p {
        font-size: 12px;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .service-modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .service-modal-image img {
        height: 200px;
        min-height: 200px;
    }
    .service-modal-text {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .services-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 32px;
    }
}
