/* Estilos específicos para calculo-por-terreno */

.panel-terreno {
    width: min(700px, 92vw);
    margin: 32px auto 32px;
    padding: 28px 24px 28px;
    border-radius: var(--radius-xl);
    background-color: white;
}

.volver-inicio-container {
    width: min(700px, 92vw);
    margin: 0 auto 16px;
    padding-left: 12px;
}

.volver-inicio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.volver-inicio:hover {
    opacity: 0.8;
}

.volver-inicio img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.terreno-form-section {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-inputs-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
}

.input-terreno {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-terreno::placeholder {
    color: #9ca3af;
}

.input-terreno:focus {
    outline: none;
}

.info-box {
    border: 1px solid #cbd6f3;
    background: #cbd6f333;
    border-radius: 12px;
    padding: 16px;
}

.svg-container {
    background-color: #cbd6f380;
    padding: 10px;
    border-radius: 8px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-header svg {
    color: #2563eb;
    flex-shrink: 0;
}

.info-header h3 {
    color: #1e40af;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.info-text {
    color: #6877a0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.info-text span {
    color: #15326c;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-legal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #b4dbfc;
    border: 2px solid #d0e1ff;
    border-radius: 10px;
    padding: 10px 20px;
    color: #0e2a59;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
}

.btn-legal-link svg {
    flex-shrink: 0;
}

.btn-legal-link:hover {
    background: #dbe9ff;
    border-color: #a8c8ff;
}

.btn-calcular {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: #1e293b;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

.btn-calcular:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .form-inputs-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .btn-legal-link {
        justify-content: center;
    }

    .volver-inicio-container {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .panel-terreno {
        padding: 20px 16px;
    }

    .terreno-form-section {
        gap: 24px;
    }

    .info-box {
        padding: 16px;
    }

    .info-header h3 {
        font-size: 16px;
    }

    .info-text {
        font-size: 13px;
    }
}

/* Estilos para la página de resultados */

.resultado-section {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.datos-ingresados {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.linea-division {
    height: 2px;
    width: 100%;
    background-color: #0e2a59;
}

.section-title {
    color: #3275bb;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0;
}

.datos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dato-card {
    background: #ebf4ff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.dato-label {
    color: #3275bb;
    font-size: 14px;
    font-weight: 900;
    text-align: start;
}

.dato-value {
    color: #15326c;
    font-size: 32px;
    font-weight: 900;
}

.resultados-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.resultado-card {
    background: #f8faff;
    border: 1px solid #d0e1ff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.resultado-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #e5efff;
    border-radius: 10px;
}

.resultado-value {
    color: #15326c;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.resultado-label {
    color: #5a6f8c;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.area-card {
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.area-libre {
    background: rgba(255, 178, 4, 0.1);
    border: 1px solid rgba(255, 178, 4, 0.3);
}

.area-construida {
    background: rgba(50, 117, 187, 0.1);
    border: 1px solid rgba(50, 117, 187, 0.3);
}

.area-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    flex-shrink: 0;
}

.area-libre .area-icon {
    background: rgba(255, 178, 4, 0.2);
}

.area-construida .area-icon {
    background: rgba(50, 117, 187, 0.2);
}

.area-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.area-label {
    color: #5a6f8c;
    font-size: 12px;
    font-weight: 900;
}

.area-value {
    color: #15326c;
    font-size: 28px;
    line-height: 32px;
    font-weight: 800;
}

.area-unit {
    font-size: 14px;
    font-weight: 600;
}

.edificacion-banner {
    background: rgba(255, 178, 4, 0.15);
    border: 2px solid rgba(255, 178, 4, 0.4);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edificacion-banner span {
    color: #5a6f8c;
    font-size: 12px;
    font-weight: 900;
    line-height: 14px;
}

.edificacion-banner strong {
    color: #15326c;
    font-size: 32px;
    font-weight: 900;
    line-height: 35xapx;
}

.edificacion-banner .unit {
    font-size: 16px;
    font-weight: 600;
}

.btn-finalizar {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: #1e293b;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition:
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

.btn-finalizar:active {
    transform: translateY(0);
}

/* Responsive para resultados */
@media (max-width: 768px) {
    .datos-grid {
        grid-template-columns: 1fr;
    }

    .resultados-cards {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .resultado-value {
        font-size: 36px;
    }

    .dato-value {
        font-size: 28px;
    }

    .area-value {
        font-size: 24px;
    }

    .edificacion-banner strong {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .resultado-section {
        gap: 24px;
    }

    .dato-card {
        padding: 16px;
    }

    .resultado-card {
        padding: 20px 12px;
    }

    .area-card {
        padding: 16px;
    }

    .edificacion-banner {
        padding: 16px;
    }
}
