/* Generales */
:root {
    --color-primary: #4CAF50; /* Verde ElectroViva */
    --color-secondary: #333; /* Negro/Gris oscuro para texto */
    --color-accent-orange: #FF7043; /* Naranjo para destacar */
    --color-accent-blue: #2196F3; /* Azul para complementar */
    --color-light-grey: #f4f4f4;
    --color-dark-grey: #222;
    --color-white: #ffffff;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--color-accent-orange);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark-grey);
    margin-bottom: 15px;
}

h1 {
    font-size: 3.2em;
    text-align: center;
    color: var(--color-white); /* Para el hero section */
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

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

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

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

.section {
    padding: 80px 0;
}

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

.bg-light-alt {
    background-color: #fcfcfc; /* Un gris muy sutil para alternar */
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    color: var(--color-white);
}

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

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

/* Header */
.header {
    background-color: var(--color-dark-grey);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 50px; /* Ajusta según el tamaño de tu logo */
    vertical-align: middle;
}

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

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--color-white);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Hamburguesa (menú móvil) */
.hamburger {
    display: none;
    font-size: 1.8em;
    color: var(--color-white);
    cursor: pointer;
}

/* Hero Section (Página de Inicio) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-background.jpg') no-repeat center center/cover;
    color: var(--color-white);
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.hero .btn {
    font-size: 1.1em;
}

/* Page Hero (otras páginas) */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/page-hero-bg.jpg') no-repeat center center/cover; /* Puedes cambiar esta imagen */
    color: var(--color-white);
    text-align: center;
    padding: 100px 20px;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    font-size: 3em;
}

.page-hero p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
}


/* Propuesta de Valor */
.value-propositions {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.value-item {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item h3 {
    color: var(--color-primary);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.commitment {
    font-style: italic;
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Servicios Grid (Home) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4em;
    color: var(--color-dark-grey);
}

.service-card p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555;
}

/* Contacto Section */
.contact-info {
    text-align: center;
    font-size: 1.2em;
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 10px;
}

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

/* Footer */
.footer {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-content > div {
    flex: 1;
    min-width: 250px;
}

.footer-brand h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.footer-brand p {
    color: #bbb;
}

.footer-links h4, .footer-social h4 {
    color: var(--color-accent-orange);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s ease;
}

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

.footer-social a {
    color: var(--color-white);
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

/* Quiénes Somos */
.mission-vision-values {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.block-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 30px;
    border-left: 5px solid var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.block-item h2 {
    text-align: left;
    margin-bottom: 15px;
    color: var(--color-dark-grey);
    font-size: 2em;
}

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

.value-card {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    font-size: 1.5em;
    color: var(--color-accent-blue);
    margin-bottom: 10px;
}

.value-card h3 i {
    margin-right: 8px;
    color: var(--color-primary);
}

/* Servicios - Full List */
.services-full-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item-full {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.service-item-full:nth-child(even) {
    flex-direction: row-reverse; /* Alternar la imagen a la derecha */
}

.service-item-full img {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-item-full div {
    flex: 2;
    min-width: 400px;
}

.service-item-full h3 {
    font-size: 2em;
    text-align: left;
    color: var(--color-dark-grey);
}

.service-item-full p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.service-item-full ul {
    list-style: none;
    padding-left: 0;
}

.service-item-full li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.service-item-full li i {
    color: var(--color-primary);
    margin-right: 10px;
}

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

.testimonial-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 5px solid var(--color-accent-orange);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #444;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
    margin-top: auto; /* Empuja el autor hacia abajo */
}

/* FAQ */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--color-accent-orange);
}

.faq-question::after {
    content: '\002B'; /* Plus sign */
    font-size: 1.5em;
    color: var(--color-white);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: "\2212"; /* Minus sign */
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    background-color: var(--color-white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding: 15px 0;
    margin-bottom: 0;
    color: #555;
}

/* Responsivo */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
    }
    .nav {
        order: 3; /* Coloca la navegación debajo del logo y la hamburguesa */
        width: 100%;
        display: none; /* Oculta por defecto para móvil */
        margin-top: 15px;
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--color-dark-grey);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-list li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-list a {
        display: block;
        padding: 15px 20px;
    }
    .hamburger {
        display: block;
        order: 2;
    }
    .nav.active {
        display: block; /* Muestra el menú cuando está activo */
    }

    .hero h1 {
        font-size: 2.8em;
    }
    .hero p {
        font-size: 1.1em;
    }

    .value-propositions {
        flex-direction: column;
        align-items: center;
    }

    .mission-vision-values {
        flex-direction: column;
        align-items: center;
    }
    .block-item {
        max-width: 100%;
        border-left: none;
        border-top: 5px solid var(--color-primary);
    }

    .service-item-full,
    .service-item-full:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    .service-item-full img {
        max-width: 100%;
        height: 250px;
    }
    .service-item-full div {
        min-width: unset;
        width: 100%;
    }
    .service-item-full h3 {
        text-align: center;
    }
    .service-item-full ul {
        text-align: left;
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
    .section {
        padding: 60px 0;
    }
    .hero {
        padding: 100px 20px;
    }
    .page-hero {
        padding: 80px 20px;
    }
    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-content > div {
        margin-bottom: 30px;
    }
    .footer-links ul {
        padding-left: 0;
    }
    .footer-social a {
        margin: 0 8px;
    }
    .testimonial-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    .service-item-full {
        padding: 20px;
    }
    .service-item-full h3 {
        font-size: 1.6em;
    }
    .service-item-full p {
        font-size: 0.9em;
    }
}
/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px; /* Distancia desde abajo */
    right: 30px; /* Distancia desde la derecha */
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Asegura que esté por encima de otros elementos */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05); /* Ligeramente más grande al pasar el mouse */
    background-color: #1DA851; /* Un poco más oscuro al hacer hover */
}

/* Responsivo para el botón flotante */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}
