/* Base Styles - Colores del Logo SUPER ÉXITO SUÉXITO */
:root {
    --primary-color: #1A237E; /* Azul oscuro del logo */
    --secondary-color: #FF8C00; /* Naranja del logo */
    --accent-color: #FFA500;
    --dark-color: #1A237E;
    --light-color: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --text-color: #333333;
    --border-color: #dee2e6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 20px;
}

.section-subtitle {
    color: #666;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #0d1654;
    border-color: #0d1654;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* Header Styles */
header {
    background-color: var(--light-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.logo img {
    max-height: 60px;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

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

/* Cambio de color al hacer scroll */
header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--gray-light);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    display: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-privacy {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
}

.hero-privacy i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Nosotros Section */
.nosotros {
    background-color: var(--light-color);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.nosotros-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.nosotros-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.nosotros-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nosotros-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nosotros-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Marcas Section */
.marcas {
    background-color: var(--gray-light);
    padding: 60px 0;
    display: none; /* Ocultar temporalmente hasta tener los logos */
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.marca-item {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
}

.marca-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.marca-item img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.marca-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Productos Section */
.productos {
    background-color: var(--light-color);
}

/* Tabs Navigation */
.productos-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    background-color: var(--light-color);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 16px 35px;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    flex: 1;
    min-width: 200px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: var(--gray-light);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
    transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.productos-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.producto-categoria {
    background-color: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.producto-categoria:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.producto-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-categoria:hover .producto-img img {
    transform: scale(1.1);
}

.producto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.95), rgba(26, 35, 126, 0.3));
    padding: 25px;
    color: var(--light-color);
    display: flex;
    align-items: flex-end;
    min-height: 100px;
}

.producto-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--light-color);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.producto-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-list {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
}

.producto-list li {
    padding: 10px 0;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--gray-medium);
}

.producto-list li:last-child {
    border-bottom: none;
}

.producto-list i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Estilo especial para listas largas en grid de 2 columnas */
#electricos .producto-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
}

#electricos .producto-list li {
    border-bottom: 1px solid var(--gray-medium);
}

/* Ajustar altura de imagen en servicios eléctricos */
#electricos .producto-img {
    height: 280px;
}

#electricos .producto-img img {
    object-fit: cover;
    object-position: center center;
    transform: scale(0.8);
}

@media (max-width: 768px) {
    #electricos .producto-list {
        grid-template-columns: 1fr;
    }
}

/* Valores Section */
.valores {
    background-color: var(--light-color);
}

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

.valor-item {
    text-align: center;
    padding: 35px 25px;
    background-color: var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.valor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.valor-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.valor-item:hover .valor-icon {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.valor-icon i {
    font-size: 2rem;
    color: var(--light-color);
}

.valor-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.valor-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* Contacto Section */
.contacto {
    background-color: var(--gray-light);
}

.contacto-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contacto-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contacto-info-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.contacto-info-card h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.contacto-info-card p {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contacto-info-card i {
    color: var(--primary-color);
    font-size: 1rem;
}

.contacto-form-section {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contacto-form-section h3 {
    color: var(--dark-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--light-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-check {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-check label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light-color);
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section p i {
    color: var(--secondary-color);
    margin-right: 8px;
    width: 16px;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: var(--light-color);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h2 {
        font-size: 1.9rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nosotros-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .valores-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .tab-btn {
        font-size: 0.98rem;
        padding: 14px 25px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        height: 350px;
        order: 2;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-privacy {
        justify-content: center;
        text-align: center;
    }
    
    .contacto-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-form-section {
        padding: 30px 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .marcas {
        padding: 40px 0;
    }
    
    .marcas-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .marca-item {
        padding: 30px;
        min-height: 150px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        min-height: 450px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .productos-tabs {
        flex-direction: column;
        gap: 8px;
        padding: 6px;
    }
    
    .tab-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        min-width: auto;
    }
    
    .tab-btn.active {
        transform: translateY(0);
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .producto-img {
        height: 220px;
    }
    
    .producto-overlay h3 {
        font-size: 1.3rem;
    }
    
    .producto-info {
        padding: 25px 20px;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .valor-item {
        padding: 30px 20px;
    }
    
    .nosotros-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contacto-form-section {
        padding: 25px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
