/* Prefijo único para este sitio: lce- (Líderes del Cambio Energético) */

/* Reset y base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colores principales */
    --lce-color-primary: #b14300;
    --lce-color-primary-light: #e46c26;
    --lce-color-primary-dark: #8a3400;
    --lce-color-secondary: #005b82;
    --lce-color-secondary-light: #0082b8;
    --lce-color-secondary-dark: #003f58;

    /* Colores neutros */
    --lce-color-black: #121212;
    --lce-color-dark: #333333;
    --lce-color-gray: #666666;
    --lce-color-light-gray: #f5f5f5;
    --lce-color-white: #ffffff;

    /* Tipografía */
    --lce-font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Espaciado */
    --lce-spacing-xs: 0.5rem;
    --lce-spacing-sm: 1rem;
    --lce-spacing-md: 2rem;
    --lce-spacing-lg: 4rem;
    --lce-spacing-xl: 6rem;

    /* Sombras */
    --lce-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Bordes */
    --lce-border-radius: 0;
}

/* Estilos generales */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--lce-color-light-gray);
    color: var(--lce-color-dark);
    font-family: var(--lce-font-family);
    line-height: 1.6;
}

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

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

a:hover,
a:focus {
    color: var(--lce-color-primary-light);
    outline: none;
}

/* Focus personalizado */
a:focus,
button:focus,
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px var(--lce-color-primary-light);
    outline: none;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    color: var(--lce-color-black);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--lce-spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--lce-spacing-md);
}

/* Contenedores */
.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding-left: var(--lce-spacing-md);
    padding-right: var(--lce-spacing-md);
    width: 100%;
}

/* Navbar */
.main-menu {
    background-color: var(--lce-color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    transition: transform 0.3s ease;
    width: 100%;
    z-index: 100;
}

.navbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: var(--lce-spacing-sm) 0;
    position: relative;
}

.navbar-brand {
    display: block;
    max-width: 180px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    cursor: pointer;
    display: none;
    height: 24px;
    position: relative;
    width: 30px;
    z-index: 2;
}

.hamburger {
    background-color: var(--lce-color-dark);
    height: 3px;
    position: relative;
    transition: all 0.3s ease;
    width: 30px;
}

.hamburger::before,
.hamburger::after {
    background-color: var(--lce-color-dark);
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    transition: all 0.3s ease;
    width: 30px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-list {
    display: flex;
    gap: var(--lce-spacing-md);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    border-radius: 20px;
    color: var(--lce-color-dark);
    display: inline-block;
    font-weight: 500;
    padding: var(--lce-spacing-xs) var(--lce-spacing-sm);
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--lce-color-primary);
}

.nav-link.active {
    background-color: var(--lce-color-primary);
    color: var(--lce-color-white);
}

/* Hero Section */
.hero-section {
    background-color: var(--lce-color-secondary-dark);
    color: var(--lce-color-white);
    height: 40vh;
    min-height: 300px;
    padding: var(--lce-spacing-lg) 0;
}

.hero-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: var(--lce-spacing-lg);
    height: 100%;
}

.hero-image {
    flex: 1;
    overflow: hidden;
}

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

.hero-content {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    color: var(--lce-color-white);
    margin-bottom: 0;
}

/* Secciones generales */
section {
    padding: var(--lce-spacing-xl) 0;
}

section h2 {
    margin-bottom: var(--lce-spacing-lg);
    position: relative;
    text-align: center;
}

section h2::after {
    background-color: var(--lce-color-primary);
    bottom: -15px;
    content: '';
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 80px;
}

/* Masonry Layout */
.masonry-layout {
    column-count: 3;
    column-gap: var(--lce-spacing-md);
    margin: 0 auto;
    width: 100%;
}

.card {
    background-color: var(--lce-color-white);
    border-left: 4px solid var(--lce-color-primary);
    break-inside: avoid;
    margin-bottom: var(--lce-spacing-md);
    opacity: 0;
    padding: var(--lce-spacing-md);
    shadow: var(--lce-shadow-card);
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animación de fade-in para las cards */
.card {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Delay para animación escalonada */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card h3 {
    color: var(--lce-color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--lce-spacing-sm);
}

.card p:last-child {
    margin-bottom: 0;
}

.tall-card {
    padding-bottom: var(--lce-spacing-lg);
    padding-top: var(--lce-spacing-lg);
}

.wide-card {
    column-span: 2;
}

/* Accordion */
.accordion-container {
    margin: 0 auto;
    max-width: 800px;
}

.accordion-item {
    background-color: var(--lce-color-white);
    border-left: 4px solid var(--lce-color-primary);
    margin-bottom: var(--lce-spacing-sm);
    overflow: hidden;
}

.accordion-header {
    background-color: var(--lce-color-white);
    cursor: pointer;
    padding: var(--lce-spacing-md);
    position: relative;
}

.accordion-header::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--lce-color-primary);
    content: '';
    position: absolute;
    right: var(--lce-spacing-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--lce-color-light-gray);
}

.accordion-header h3 {
    color: var(--lce-color-primary);
    margin-bottom: 0;
}

.accordion-content {
    background-color: var(--lce-color-white);
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--lce-spacing-md);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item:hover .accordion-content {
    max-height: 200px;
    padding: var(--lce-spacing-md);
}

.accordion-item:hover .accordion-header::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Testimonios */
.testimonios-section {
    background-color: var(--lce-color-secondary-dark);
    color: var(--lce-color-white);
}

.testimonios-section h2 {
    color: var(--lce-color-white);
}

.testimonios-section h2::after {
    background-color: var(--lce-color-white);
}

.testimonio-card {
    background-color: var(--lce-color-secondary);
    border-left: 4px solid var(--lce-color-white);
    color: var(--lce-color-white);
}

.testimonio-texto {
    font-style: italic;
}

.testimonio-autor {
    font-weight: bold;
    text-align: right;
}

/* CTA Section */
.cta-section {
    background-color: var(--lce-color-primary);
    color: var(--lce-color-white);
    padding: var(--lce-spacing-lg) 0;
}

.cta-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.cta-section h2 {
    color: var(--lce-color-white);
}

.cta-section h2::after {
    background-color: var(--lce-color-white);
}

.btn-primary {
    background-color: var(--lce-color-white);
    color: var(--lce-color-primary);
    display: inline-block;
    font-weight: bold;
    margin-top: var(--lce-spacing-md);
    padding: var(--lce-spacing-sm) var(--lce-spacing-lg);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--lce-color-light-gray);
    color: var(--lce-color-primary-dark);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--lce-color-light-gray);
    padding-bottom: var(--lce-spacing-lg);
    padding-top: var(--lce-spacing-xl);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lce-spacing-lg);
    justify-content: center;
    margin-bottom: var(--lce-spacing-lg);
}

.footer-info,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: var(--lce-color-primary);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: var(--lce-spacing-xs);
}

.footer-bottom {
    border-top: 1px solid var(--lce-color-gray);
    margin-top: var(--lce-spacing-lg);
    padding-top: var(--lce-spacing-md);
    text-align: center;
}

/* Formulario */
.form-group {
    margin-bottom: var(--lce-spacing-md);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--lce-spacing-xs);
}

input,
textarea {
    background-color: var(--lce-color-white);
    border: 1px solid var(--lce-color-gray);
    display: block;
    padding: var(--lce-spacing-xs);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

input:hover,
textarea:hover {
    border-color: var(--lce-color-primary);
}

.btn-submit {
    background-color: var(--lce-color-primary);
    border: none;
    color: var(--lce-color-white);
    cursor: pointer;
    font-weight: bold;
    padding: var(--lce-spacing-sm) var(--lce-spacing-lg);
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: var(--lce-color-primary-dark);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--lce-color-light-gray);
}

::-webkit-scrollbar-thumb {
    background-color: var(--lce-color-primary);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--lce-color-primary-dark);
}

/* Media queries */
@media screen and (max-width: 992px) {
    .masonry-layout {
        column-count: 2;
    }

    .wide-card {
        column-span: 1;
    }
}

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

    section {
        padding: var(--lce-spacing-lg) 0;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-wrapper {
        background-color: var(--lce-color-white);
        flex-direction: column;
        height: 100vh;
        left: -100%;
        padding-top: 80px;
        position: fixed;
        top: 0;
        transition: all 0.3s ease;
        width: 100%;
    }

    .nav-list {
        align-items: center;
        flex-direction: column;
        padding: var(--lce-spacing-md);
        width: 100%;
    }

    .nav-item {
        margin: var(--lce-spacing-sm) 0;
        text-align: center;
        width: 100%;
    }

    .nav-link {
        display: block;
        font-size: 1.2rem;
        padding: var(--lce-spacing-sm);
        width: 100%;
    }

    .nav-toggle:checked ~ .nav-wrapper {
        left: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger {
        background-color: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

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

    .hero-image,
    .hero-content {
        flex: auto;
    }
}

/* Reset y base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colores principales */
    --color-primary: #b14300;
    --color-primary-light: #e46c26;
    --color-primary-dark: #8a3400;
    --color-secondary: #005b82;
    --color-secondary-light: #0082b8;
    --color-secondary-dark: #003f58;

    /* Colores neutros */
    --color-black: #121212;
    --color-dark: #333333;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;
    --color-white: #ffffff;

    /* Tipografía */
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Sombras */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Bordes */
    --border-radius: 0;

    /* Variable para texto (usado en nav-link) */
    --text-color: #333333;
}

/* Estilos generales */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-light-gray);
    color: var(--color-dark);
    font-family: var(--font-family);
    line-height: 1.6;
}

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

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

a:hover,
a:focus {
    color: var(--color-primary-light);
    outline: none;
}

/* Focus personalizado */
a:focus,
button:focus,
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px var(--color-primary-light);
    outline: none;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-black);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Contenedores */
.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    width: 100%;
}

/* Navbar y menú principal */
.main_menu {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    transition: transform 0.3s ease;
    width: 100%;
    z-index: 100;
}

.navbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
}

.navbar-brand {
    display: block;
    max-width: 180px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.hamburger {
    background: #000;
    height: 3px;
    position: relative;
    transition: all 0.3s ease;
    width: 30px;
}

.hamburger:before,
.hamburger:after {
    background: #000;
    content: '';
    height: 3px;
    position: absolute;
    transition: all 0.3s ease;
    width: 30px;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    top: 8px;
}

.nav-wrapper {
    align-items: center;
    display: flex;
    gap: 20px;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.nav-link.active {
    background-color: var(--color-primary);
    border-radius: 20px;
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    height: 40vh;
    min-height: 300px;
    padding: var(--spacing-lg) 0;
}

.hero-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: var(--spacing-lg);
    height: 100%;
}

.hero-image {
    flex: 1;
    overflow: hidden;
}

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

.hero-content {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 0;
}

/* Secciones generales */
section {
    padding: var(--spacing-xl) 0;
}

section h2 {
    margin-bottom: var(--spacing-lg);
    position: relative;
    text-align: center;
}

section h2::after {
    background-color: var(--color-primary);
    bottom: -15px;
    content: '';
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 80px;
}

/* Masonry Layout */
.masonry-layout {
    column-count: 3;
    column-gap: var(--spacing-md);
    margin: 0 auto;
    width: 100%;
}

.card {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-primary);
    break-inside: avoid;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animación de fade-in para las cards */
.card {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Delay para animación escalonada */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.card p:last-child {
    margin-bottom: 0;
}

.tall-card {
    padding-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
}

.wide-card {
    column-span: 2;
}

/* Accordion */
.accordion-container {
    margin: 0 auto;
    max-width: 800px;
}

.accordion-item {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-primary);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.accordion-header {
    background-color: var(--color-white);
    cursor: pointer;
    padding: var(--spacing-md);
    position: relative;
}

.accordion-header::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--color-primary);
    content: '';
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--color-light-gray);
}

.accordion-header h3 {
    color: var(--color-primary);
    margin-bottom: 0;
}

.accordion-content {
    background-color: var(--color-white);
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--spacing-md);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item:hover .accordion-content {
    max-height: 200px;
    padding: var(--spacing-md);
}

.accordion-item:hover .accordion-header::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Testimonios */
.testimonios-section {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
}

.testimonios-section h2 {
    color: var(--color-white);
}

.testimonios-section h2::after {
    background-color: var(--color-white);
}

.testimonio-card {
    background-color: var(--color-secondary);
    border-left: 4px solid var(--color-white);
    color: var(--color-white);
}

.testimonio-texto {
    font-style: italic;
}

.testimonio-autor {
    font-weight: bold;
    text-align: right;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.cta-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
}

.cta-section h2::after {
    background-color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    display: inline-block;
    font-weight: bold;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-light-gray);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--color-light-gray);
    padding-bottom: var(--spacing-lg);
    padding-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.footer-info,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: var(--color-primary);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    text-align: center;
}

/* Formulario */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

input,
textarea {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray);
    display: block;
    padding: var(--spacing-xs);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

input:hover,
textarea:hover {
    border-color: var(--color-primary);
}

.btn-submit {
    background-color: var(--color-primary);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-weight: bold;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: var(--color-primary-dark);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
}

/* Media queries adicionales */
@media screen and (max-width: 768px) {
    .hero-content {
        margin-top: var(--spacing-md);
        padding: 0 var(--spacing-sm);
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info,
    .footer-links,
    .footer-contact {
        margin-bottom: var(--spacing-lg);
        width: 100%;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .masonry-layout {
        column-count: 1;
    }

    .card img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger:before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger:after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* Estilos adicionales para imágenes */
.card img {
    margin-bottom: var(--spacing-sm);
    width: 100%;
}

/* Estilos para las secciones adicionales */
.enfoque-section,
.casos-section,
.especializacion-section {
    background-color: var(--color-white);
}

.enfoque-section h2::after,
.casos-section h2::after,
.especializacion-section h2::after {
    background-color: var(--color-primary);
}

/* Ajustes específicos para el menú de navegación */
@media screen and (max-width: 768px) {
    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        transition: all 0.3s ease;
        padding-top: 80px;
        flex-direction: column;
        align-items: center;
    }

    .nav-toggle:checked ~ .nav-wrapper {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 10px 20px;
        font-size: 18px;
    }

    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 15px;
        z-index: 2;
    }
}

/* Correcciones para scroll */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-dark);
}

/* Ajustes para el formulario en el footer */
.footer-contact {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: var(--spacing-md);
}

/* Correcciones adicionales */
.card {
    box-shadow: var(--shadow-card);
    opacity: 1;
}

/* Ajustes para mejorar accesibilidad */
input:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

/* Animaciones de fade-in y comportamiento de scroll */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .card {
        opacity: 0;
        animation: fadeIn 0.5s ease forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card {
        opacity: 1;
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

.navbar-brand img {
    height: 40px;
}

/* Sección CTA Transición Estratégica */
.transition-cta {
    background-color: var(--color-dark);
    background-image: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.transition-cta::before {
    background-color: rgba(177, 67, 0, 0.05);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.transition-cta-wrapper {
    position: relative;
    z-index: 1;
}

.transition-cta h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.transition-cta h2::after {
    background-color: var(--color-primary);
}

.transition-stages {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.stage {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    display: flex;
    flex: 1;
    min-width: 280px;
    overflow: hidden;
    padding: var(--spacing-md);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stage:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stage-number {
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-right: var(--spacing-md);
    opacity: 0.8;
}

.stage-content h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.stage-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.cta-action {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: var(--spacing-lg);
    text-align: center;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
}

.btn-gradient {
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(177, 67, 0, 0.3);
    color: var(--color-white);
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: 0 6px 20px rgba(177, 67, 0, 0.4);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-gradient:active {
    transform: translateY(-1px);
}

/* Sección de Contacto */
.contact-section {
    background-color: var(--color-light-gray);
    padding: var(--spacing-xl) 0;
}

.contact-section h2 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.contact-section h2::after {
    background-color: var(--color-primary);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.contact-info h3 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    color: var(--color-dark);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.contact-benefits {
    margin-top: var(--spacing-lg);
}

.benefit-item {
    align-items: center;
    display: flex;
    margin-bottom: var(--spacing-sm);
}

.benefit-icon {
    background-color: var(--color-primary);
    border-radius: 50%;
    height: 10px;
    margin-right: var(--spacing-sm);
    width: 10px;
}

.benefit-text {
    color: var(--color-dark);
    font-size: 1rem;
}

.contact-form {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    overflow: hidden;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.form-header {
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    padding: var(--spacing-md);
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}

.contact-form .form-group:first-of-type {
    margin-top: var(--spacing-md);
}

.contact-form label {
    color: var(--color-dark);
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: var(--color-dark);
    font-size: 1rem;
    padding: 12px var(--spacing-sm);
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background-color: #ffffff;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(177, 67, 0, 0.1);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-position: calc(100% - 15px) center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-right: 40px;
}

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

.form-privacy {
    align-items: flex-start;
    display: flex;
    margin-top: var(--spacing-md);
}

.form-privacy input {
    height: 18px;
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
}

.form-privacy label {
    display: inline;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.4;
}

.form-privacy a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.contact-form .btn-submit {
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border: none;
    border-radius: 0;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .btn-submit:hover {
    background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

/* Media queries para las nuevas secciones */
@media screen and (max-width: 992px) {
    .transition-stages {
        flex-direction: column;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .stage {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .transition-cta h2 {
        font-size: 2rem;
    }

    .stage-number {
        font-size: 2rem;
    }

    .stage-content h3 {
        font-size: 1.3rem;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    .contact-form {
        max-width: 100%;
        width: 100%;
    }

    .contact-info {
        margin-bottom: var(--spacing-md);
        text-align: center;
    }

    .benefit-item {
        justify-content: center;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .btn-gradient,
    .contact-form .btn-submit {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Estilos específicos para about.html */
.about-hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.about-content {
    background-color: var(--color-white);
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    margin: 0 auto var(--spacing-lg);
    max-width: 900px;
    padding: var(--spacing-lg);
}

.about-content p {
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.historia-section {
    background-color: var(--color-light-gray);
    padding: var(--spacing-xl) 0;
}

.equipo-section {
    background-color: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.valores-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin: var(--spacing-lg) auto 0;
    max-width: 1000px;
}

.valor-item {
    background-color: var(--color-light-gray);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    flex: 1;
    min-width: 250px;
    padding: var(--spacing-md);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
}

.valor-item h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.valor-item p {
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Media queries para about.html */
@media screen and (max-width: 768px) {
    .about-hero .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-content {
        padding: var(--spacing-md);
    }

    .about-content p {
        font-size: 1rem;
    }

    .valores-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .valor-item {
        width: 100%;
    }
}

/* Estilos para la página de agradecimiento */
.thankyou-section {
    background-color: var(--color-light-gray);
    min-height: 80vh;
    padding: var(--spacing-xl) 0;
}

.thankyou-wrapper {
    align-items: center;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 800px;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

.thankyou-icon {
    margin-bottom: var(--spacing-lg);
}

.checkmark-circle {
    background-color: #4CAF50;
    border-radius: 50%;
    height: 80px;
    margin: 0 auto;
    position: relative;
    width: 80px;
}

.checkmark-stem {
    background-color: white;
    height: 40px;
    left: 40px;
    position: absolute;
    top: 16px;
    transform: rotate(45deg);
    width: 6px;
}

.checkmark-kick {
    background-color: white;
    height: 6px;
    left: 24px;
    position: absolute;
    top: 50px;
    transform: rotate(45deg);
    width: 20px;
}

.thankyou-wrapper h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.thankyou-message {
    color: var(--color-dark);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.thankyou-details {
    background-color: var(--color-light-gray);
    border-radius: 6px;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    width: 100%;
}

.thankyou-details h3 {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.step {
    display: flex;
    text-align: left;
}

.step-number {
    align-items: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    font-size: 1.2rem;
    font-weight: bold;
    height: 36px;
    justify-content: center;
    margin-right: var(--spacing-md);
    min-width: 36px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Estilos para el cookie disclaimer */
.cookie-banner {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
    border-top: 4px solid var(--color-primary);
    bottom: 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.cookie-text p {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 800px;
}

.btn-cookie {
    background-color: var(--color-white);
    border: none;
    border-radius: 4px;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background-color: var(--color-light-gray);
    transform: translateY(-2px);
}

/* Media queries */
@media screen and (max-width: 768px) {
    .thankyou-wrapper {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .thankyou-wrapper h1 {
        font-size: 2rem;
    }

    .thankyou-message {
        font-size: 1.1rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cookie-text p {
        margin-bottom: 15px;
    }
}