:root {
    --primary-color: #E31E24;
    /* Red from logo */
    --primary-dark: #B71C1C;
    --secondary-color: #1A1A1A;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-electro {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2px 5px;
    border-radius: 2px;
}

.logo-aguirre {
    color: var(--primary-color);
    font-family: cursive;
    /* Fallback */
    font-family: 'Outfit', sans-serif;
    /* Or a script font if loaded */
    font-style: italic;
}

.logo-srl {
    font-size: 0.8rem;
    color: var(--secondary-color);
    align-self: flex-end;
    margin-bottom: 3px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

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

.btn-contact {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color) !important;
}

.btn-contact:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('assets/hero_bg_optimized.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Features Section */
.features {
    background-color: var(--white);
}

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

.feature-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(227, 30, 36, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
}

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

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-list i {
    color: var(--primary-color);
}

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

/* Products Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(227, 30, 36, 0.3);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Relación de aspecto 1:1 uniforme */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Muestra la imagen completa sin recortes */
    padding: 25px;
    /* Espacio alrededor de la imagen */
    transition: transform 0.3s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
    /* Efecto zoom más sutil */
}

.placeholder-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.card-content h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--secondary-color);
}

.card-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Info Banner */
.info-banner {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.banner-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 30px;
}

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

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

.footer-info p {
    color: #aaa;
    max-width: 300px;
}

.footer h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

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

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #ccc;
}

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

.footer-hours p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Productos responsive */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .card-image img {
        padding: 15px;
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 1rem;
    }

    .card-content p {
        font-size: 0.8rem;
    }
}


/* Pilares Section Redesign */
.bg-light-alt {
    background-color: #f9f9f9;
}

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

/* Columna Texto */
.pilares-info {
    text-align: left;
}

.pilares-info .badge {
    display: inline-block;
    background-color: rgba(227, 30, 36, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pilares-info h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.pilares-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.pilares-benefits {
    margin-bottom: 35px;
}

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

.check-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Galería de Imágenes (Collage) */
.pilares-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    /* Extra padding for floated elements if needed */
}

.gallery-main {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow);
}

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

.gallery-main:hover img {
    transform: scale(1.05);
}

.gallery-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 190px;
    box-shadow: var(--shadow);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Badge flotante de experiencia/garantía */
.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 5px solid var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.exp-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Pilares */
@media (max-width: 968px) {
    .pilares-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pilares-info {
        text-align: center;
        order: 1;
        /* Texto primero en móvil */
    }

    .pilares-benefits li {
        justify-content: center;
    }

    .pilares-gallery {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }

    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
        animation: none;
        /* Disable float on mobile to avoid layout shifts if crowded */
    }
}

@media (max-width: 576px) {
    .pilares-info h2 {
        font-size: 2rem;
    }

    .pilares-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 250px;
    }

    .gallery-secondary {
        flex-direction: row;
    }

    .gallery-item {
        height: 150px;
    }
}


/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}


/* Branches Section */
.branches {
    background-color: var(--bg-light);
}

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

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

.branch-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.branch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.branch-info {
    margin-bottom: 20px;
}

.branch-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.branch-info i {
    color: var(--primary-color);
    width: 20px;
}

.map-frame {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 10px;
    margin-top: 15px;
}