/*
* File: style.css
* Description: Stylesheet for '5 Errores Comunes en Consultorías de Negocio' website.
* Design System: Corporate, Eco-minimalism
* Color Scheme: Neutral
* Animation Style: Scroll-dependent effects
*/

/* ---------------------------------- */
/*          1. VARIABLES              */
/* ---------------------------------- */
:root {
    /* Fonts */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Colors */
    --color-text-dark: #222222;
    --color-text-body: #333333;
    --color-text-light: #FFFFFF;
    --color-text-muted: #6c757d;
    
    --color-background-light: #FFFFFF;
    --color-background-neutral: #F8F9FA;
    --color-background-dark: #1E1E1E;

    --color-accent: #3A6B35; /* Muted, eco-friendly green */
    --color-accent-hover: #2E532A;
    --color-border: #E0E0E0;

    /* Sizing & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 5px;

    /* Transitions */
    --transition-speed: 0.3s ease;
}

/* ---------------------------------- */
/*          2. GLOBAL STYLES          */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-body);
    background-color: var(--color-background-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.2rem;
}

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

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

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

ul {
    list-style: none;
}

.main-container {
    width: 100%;
    margin: 0 auto;
}

.section {
    padding: 6rem 2rem;
}

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

.section__title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--color-text-dark);
}

/* General button styles */
button, .hero__cta, .contact-form__button {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    background-color: var(--color-accent);
    color: var(--color-text-light);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover, .hero__cta:hover, .contact-form__button:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: var(--color-text-light);
    text-decoration: none;
}


/* ---------------------------------- */
/*        3. HEADER & NAVIGATION      */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

.header__container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}
.header__logo:hover {
    text-decoration: none;
}

.header__nav-list {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    font-weight: 600;
    color: var(--color-text-body);
    position: relative;
    padding-bottom: 5px;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.header__nav-link:hover::after {
    width: 100%;
}
.header__nav-link:hover {
    text-decoration: none;
    color: var(--color-text-dark);
}

.header__burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
}

.header__burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* ---------------------------------- */
/*          4. HERO SECTION           */
/* ---------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

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

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero__title {
    font-size: 4rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: var(--color-text-light);
}

/* ---------------------------------- */
/*         5. ABOUT US SECTION        */
/* ---------------------------------- */
.about__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about__gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about__gallery .image-container img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------- */
/*       6. INNOVATION SECTION        */
/* ---------------------------------- */
.innovation__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-widget {
    background-color: var(--color-background-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-widget__value {
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-widget__label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.stat-widget__description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ---------------------------------- */
/*        7. 5 MISTAKES (ACCORDION)   */
/* ---------------------------------- */
.accordion__container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion__item {
    border-bottom: 1px solid var(--color-border);
}
.accordion__item:first-of-type {
    border-top: 1px solid var(--color-border);
}

.accordion__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.25rem;
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    font-weight: 700;
}

.accordion__header:hover {
    background-color: rgba(0,0,0,0.02);
}

.accordion__icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-speed);
}

.accordion__header[aria-expanded="true"] .accordion__icon {
    transform: rotate(45deg);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion__content p {
    padding: 0 1rem 1.5rem;
    margin-bottom: 0;
}


/* ---------------------------------- */
/*        8. PARTNERS SECTION         */
/* ---------------------------------- */
.partners__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.partners__container img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
}

.partners__container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------------------------------- */
/*      9. ACCOLADES (TESTIMONIALS)   */
/* ---------------------------------- */
.accolades__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card.testimonial-card {
    background-color: var(--color-background-neutral);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card .card-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
}

.testimonial-card__image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 5px var(--color-background-light), 0 0 0 6px var(--color-border);
}

.testimonial-card__text {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    position: relative;
}
.testimonial-card__text::before {
    content: '“';
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: -1rem;
}

.testimonial-card__footer strong {
    color: var(--color-text-dark);
    display: block;
}

/* ---------------------------------- */
/*     10. RESOURCES SECTION          */
/* ---------------------------------- */
.resources__container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.resource-item {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-background-light);
    border-radius: var(--border-radius);
    transition: box-shadow var(--transition-speed);
}

.resource-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.resource-item__title a {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.resource-item__description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* ---------------------------------- */
/*       11. CONTACT SECTION          */
/* ---------------------------------- */
.contact__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__info ul {
    margin-top: 1.5rem;
}

.contact__info li {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}
.contact__info li strong {
    color: var(--color-text-dark);
}

.contact__map-placeholder {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    line-height: 0; /* remove bottom space */
}

.contact__map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(58, 107, 53, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}


/* ---------------------------------- */
/*          12. FOOTER                */
/* ---------------------------------- */
.footer {
    background-color: var(--color-background-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 2rem 0;
}

.footer__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer__column--about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.footer__title {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__list li {
    margin-bottom: 0.8rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer__list a:hover {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------------------------------- */
/*    13. OTHER/SPECIAL PAGES         */
/* ---------------------------------- */
.page-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--color-background-neutral);
}

.success-page-container h1 {
    color: var(--color-accent);
}

.success-page-container a {
    margin-top: 1.5rem;
    font-weight: 600;
}

/* ---------------------------------- */
/*      14. RESPONSIVE DESIGN         */
/* ---------------------------------- */
@media (max-width: 992px) {
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
    }

    .about__container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 { font-size: 2.5rem; }
    h2, .section__title { font-size: 2.2rem; }
    .hero__title { font-size: 2.8rem; }

    .header__nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .header__nav.active {
        display: block;
    }
    
    .header__nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }

    .header__nav-link {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
    }
    
    .header__nav-link::after {
        display: none;
    }

    .header__burger-menu {
        display: block;
    }
    
    .header.nav-open .header__burger-menu span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .header.nav-open .header__burger-menu span:nth-child(2) {
        opacity: 0;
    }
    .header.nav-open .header__burger-menu span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .footer__container {
        text-align: center;
    }

    .footer__column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 1rem;
    }

    .hero {
        height: 80vh;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
    
    .accolades__container {
        grid-template-columns: 1fr;
    }
}