/**
 * Estilos personalizados para la Calculadora
 * 
 * Agrega aquí tus estilos CSS personalizados para la calculadora
 */

.calculadora-custom-content {
    max-width: 100% !important;
}

.calculadora-custom-content-container {
    max-width: 1600px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Styles - Usa las mismas clases que el header para tener el mismo ancho */
.calculadora-banner {
    /* Fondo gris claro como el template original */
    padding: 48px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    /* Heredará automáticamente el mismo padding y ancho que .site-header */
}

/* El header-inner dentro del banner tendrá el mismo ancho que el header-inner del header */
.calculadora-banner.site-header .header-inner.calculadora-banner-inner {
    /* Heredará automáticamente el mismo ancho que .site-header .header-inner */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor interno con fondo verde oscuro y bordes redondeados */
.calculadora-banner-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 200px;
    background-color: #0A3B1B;
    /* Verde oscuro del tema */
    border-radius: 16px;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .calculadora-banner-content {
        min-height: 296px;
    }
}

@media (max-width: 767px) {
    .calculadora-banner-content {
        min-height: 256px;
    }
}

.calculadora-banner-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 78px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    word-spacing: 10px;
    color: #FFFFFF !important;
    text-align: center;
    margin: 0;
}

@media (max-width: 1024px) {
    .calculadora-banner-title {
        font-size: 72px;
        letter-spacing: -1.2px;
    }
}

@media (max-width: 767px) {
    .calculadora-banner-title {
        font-size: 44px;
    }
}

.calculadora-main {
    padding: 2rem 0;
}

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

.calculadora-container {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calculadora-wrapper {
    width: 100%;
    /* Agrega aquí tus estilos específicos para la calculadora */
}

.calculadora-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.calculadora-placeholder h2 {
    color: #0A3B1B;
    margin-bottom: 20px;
}

.calculadora-placeholder p {
    color: #666;
    font-size: 18px;
}

/* Ejemplo de estilos para formularios */
.calculadora-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculadora-wrapper input,
.calculadora-wrapper select,
.calculadora-wrapper textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.calculadora-wrapper button {
    padding: 0.75rem 1.5rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.calculadora-wrapper button:hover {
    background-color: #005a87;
}

/* Bloque de bienvenida con Eco */
/* Contenedor verde sólido al 100% */
.eco-welcome-block {
    width: 100%;
    background: #0A3B1B;
    padding: 40px 40px;
    margin: 0 0 2rem 0;
    border-radius: 16px;
}

/* Contenedor blanco interno */
.eco-welcome-container {
    width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 40px;
}

/* Personaje Eco */
.eco-character {
    flex: 0 0 40%;
    width: 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eco-character-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
    aspect-ratio: 1;
    background: #FFE5D4;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    @media (max-width: 767px) {
        width: 100%;
        height: 80%;
        max-width: max-content;
        max-height: 200px;
    }
}

.eco-mascot-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Animaciones para cambio de imagen */
.eco-mascot-img.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.eco-mascot-img.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Contenido de bienvenida */
.eco-welcome-content {
    padding: 0 50px;
    flex: 0 0 60%;
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (max-width: 767px) {
        padding: 0 0px;
        width: 100%;
    }
}

.eco-welcome-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    color: #212A24;
    margin: 0;
    font-weight: 600;
}

/* Formulario */
.eco-welcome-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eco-form-label {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #212A24;
}

.eco-form-input {
    padding: 12px 16px;
    border: 2px solid #d8ece1;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #212A24;
    background: #FFFFFF;
    transition: border-color 0.3s;
    width: 100%;
    max-width: 400px;
}

.eco-form-input:focus {
    outline: none;
    border-color: #0A3B1B;
}

.eco-form-input::placeholder {
    color: #999;
}

.eco-form-button {
    padding: 12px 32px;
    background-color: #E76621 !important;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
}

.eco-form-button:hover {
    background-color: #0A3B1B !important;
}

/* Paso 2: Formulario de cantidades */
.eco-step {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eco-greeting {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #199e47 !important;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.eco-instruction-text {
    width: 60%;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #000;
    margin: 0;
    font-weight: 400;
}

/* Grid de inputs de materiales */
.eco-inputs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.eco-inputs-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.eco-inputs-grid-summary {
    grid-template-columns: repeat(4, 1fr);
}

.eco-input-box {
    background: #d8ece1;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.eco-input-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-material-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
}

.eco-material-label {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 25px !important;
    font-weight: 700 !important;
    color: #0A3B1B !important;
    margin: 0;
}

.eco-material-input {
    width: 100%;
    padding: 0px !important;
    border: none !important;
    border-radius: 8px;
    font-size: 18px !important;
    font-weight: 600 !important;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0A3B1B !important;
    background: #FFFFFF !important;
    text-align: center;
}

.eco-material-input:focus {
    outline: none;
}

.eco-material-input::placeholder {
    color: transparent;
}

.eco-material-unit {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #0A3B1B !important;
    font-weight: 800 !important;
}

/* Estilos para inputs de solo lectura */
.eco-material-input-readonly {
    cursor: default;
    background: #FFFFFF !important;
    opacity: 1;
}

.eco-material-input-readonly:focus {
    outline: none;
    border: none !important;
}

/* Estilos para el resumen (Paso 5) */
.eco-summary-header {
    text-align: center;
    margin-bottom: 32px;
}

.eco-summary-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #199e47;
    margin: 0 0 8px 0;
}

.eco-summary-subtitle {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.eco-continue-button {
    align-self: center;
    margin-top: 10px;
}

/* Responsive para grid de inputs */
@media (max-width: 1024px) {
    .eco-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .eco-inputs-grid-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .eco-inputs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eco-inputs-grid-summary {
        grid-template-columns: 1fr;
    }

    .eco-greeting {
        font-size: 1.5rem;
    }

    .eco-instruction-text {
        width: 100%;
        font-size: 1rem;
    }

    .eco-summary-title {
        font-size: 2rem;
    }

    .eco-summary-subtitle {
        font-size: 1rem;
    }
}

.eco-form-button:active {
    transform: translateY(1px);
}

/* Responsive */
@media (max-width: 1024px) {
    .eco-welcome-container {
        flex-direction: column;
        padding: 32px;
        gap: 32px;
    }

    .eco-character {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .eco-welcome-block {
        padding: 20px;
    }

    .eco-welcome-container {
        padding: 24px;
        gap: 24px;
    }

    .eco-character {
        width: 100%;
        height: auto;
    }

    .eco-welcome-text {
        font-size: 16px;
    }

    .eco-form-input {
        max-width: 100%;
    }

    .eco-form-button {
        width: 100%;
    }
}

/* Bloque de Beneficios Medioambientales */
.eco-benefits-block {
    background: #009539 !important;
    padding: 30px 0 !important;
    width: 100%;
    border-radius: 16px;
    margin: 2rem 0;
}

.eco-benefits-container {
    max-width: 1600px;
    margin: 0 auto;
}

.eco-benefits-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-align: left;
    margin: 0 0 0 2rem;
}

.eco-benefits-description {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #FFFFFF !important;
    text-align: left;
    margin: 0 0 0 2rem;
}

.eco-benefits-description #eco-total-kg {
    font-weight: 700;
}

.eco-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
    padding: 2rem !important;
}

.eco-benefit-item {
    aspect-ratio: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eco-benefit-image-placeholder {
    width: 100%;
    height: 330px;
    flex-shrink: 0;
    background: #FFFFFF;
    border: 2px solid #199e47;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.eco-benefit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eco-benefit-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #FFFFFF;
    text-align: center;
    margin-top: 16px;
    padding: 0 10px;
}

.eco-benefit-value {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-top: 12px;
}

.eco-benefit-unit {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: #FFFFFF;
    text-align: center;
    margin-top: 4px;
}

.eco-benefit-text #eco-benefit-co2 {
    font-weight: 700;
}

/* Responsive para bloque de beneficios */
@media (max-width: 1024px) {
    .eco-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .eco-benefits-title {
        font-size: 2rem;
    }

    .eco-benefits-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .eco-benefits-block {
        padding: 40px 20px;
    }

    .eco-benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eco-benefits-title {
        font-size: 1.75rem;
    }

    .eco-benefits-description {
        font-size: 1rem;
    }
}

/* Bloque de Mensaje Motivacional */
.eco-motivational-block {
    background: #E76621;
    padding: 2rem;
    width: 100%;
    margin: 2rem 0;
}

.eco-motivational-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eco-motivational-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px 60px;
    max-width: 1300px;
    width: 100%;
    text-align: center;
}

.eco-motivational-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: #199e47 !important;
    line-height: 1.4;
    margin: 0;
}

/* Responsive para bloque motivacional */
@media (max-width: 1024px) {
    .eco-motivational-block {
        padding: 60px 20px;
    }

    .eco-motivational-box {
        padding: 32px 40px;
    }

    .eco-motivational-text {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 767px) {
    .eco-motivational-block {
        padding: 40px 20px;
    }

    .eco-motivational-box {
        padding: 24px 32px;
    }

    .eco-motivational-text {
        font-size: 1.25rem !important;
    }
}

/* Bloque de Tips */
.eco-tips-block {
    background: #D9EAD3;
    padding: 60px 20px;
    width: 100%;
    margin: 2rem 0;
}

.eco-tips-container {
    max-width: 1600px;
    margin: 0 auto;
}

.eco-tips-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0A3B1B;
    text-align: center;
    margin: 0 0 40px 0;
}

.eco-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.eco-tip-item {
    display: flex;
    align-items: center;
}

.eco-tip-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E76621;
    color: #FFFFFF;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.eco-tip-box {
    flex: 1;
    background: #F8F8F8;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 1px 20px 1px 60px;
    height: 43px;
    display: flex;
    align-items: center;
}

.eco-tip-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #0A3B1B;
    margin: 0;
}

/* Responsive para bloque de tips */
@media (max-width: 1024px) {
    .eco-tips-title {
        font-size: 2rem;
    }

    .eco-tips-grid {
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .eco-tips-block {
        padding: 40px 20px;
    }

    .eco-tips-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .eco-tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eco-tip-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .eco-tip-box {
        padding: 5px 53px;
        height: 43px;
    }

    .eco-tip-text {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Bloque Final */
.eco-final-block {
    background: #FFFFFF;
    padding: 60px 20px;
    width: 100%;
    margin: 2rem 0;
}

.eco-final-container {
    max-width: 1600px;
    margin: 0 auto;
}

.eco-final-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.eco-final-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    line-height: 1.6;
    color: #0A3B1B;
    margin: 0 0 24px 0;
    font-weight: 800 !important;
}

.eco-final-text:last-of-type {
    margin-bottom: 40px;
}

.eco-final-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.eco-final-button {
    padding: 8px 60px;
    background-color: #199e47;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem !important;
    font-weight: 600;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.eco-final-button:hover {
    background-color: #0A3B1B;
}

/* Responsive para bloque final */
@media (max-width: 767px) {
    .eco-final-block {
        padding: 40px 20px;
    }

    .eco-final-text {
        font-size: 1rem;
    }

    .eco-final-button {
        font-size: 1rem;
        padding: 12px 32px;
    }
}